mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-26 05:26:00 +03:00
[GH-ISSUE #1791] 💬 [Question] Connect via LDAP #711
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#711
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rfpg1 on GitHub (Nov 12, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1791
Hello everyone,
I've read the documentation in: https://github.com/cypht-org/cypht/wiki/How-to-setup-LDAP-Authentication
But still I can't login via LDAP and can't find where logs are because data/logs is empty to understand what the actual problem is.
I've tried settings the values in docker-compose.yml and .env files but still nothing
When I did docker exec -it container bash and checked .env inside the docker it has different values from my docker-compose.yml
Could this be the problem? If so, how to fix?
Thanks for the help
@IrAlfred commented on GitHub (Nov 12, 2025):
Hello @rfpg1,
Are you able to authenticate to your LDAP server using this command
@rfpg1 commented on GitHub (Nov 13, 2025):
Hello @IrAlfred,
I cannot authenticate that way. What I normally do is
My LDAP server is an Active Directory. Could that be the problem?
Edit:
Also tried changing LDAP_UID_ATTR to cn or sAMAccountName but neither worked
If I could read some logs to understand why the authentication is failing that could do it, but I can't find the log file
@IrAlfred commented on GitHub (Nov 13, 2025):
Of course no.
There are exactly two configs
@rfpg1 commented on GitHub (Nov 13, 2025):
I meant LDAP_AUTH_UID_ATTR instead of LDAP_UID_ATTR, my mistake for confusing both
LDAP_AUTH_UID_ATTR is what I'm using in compose file
This is my docker-compose.yml file:
Do you see anything wrong?
@IrAlfred commented on GitHub (Nov 13, 2025):
Thank you for providing the details. I'm investigating and will provide an update as soon as I have more information.
@IrAlfred commented on GitHub (Nov 13, 2025):
@rfpg1
Do you structure your users within Organizational Units (OUs) in your LDAP directory?
@rfpg1 commented on GitHub (Nov 13, 2025):
Yes, I do, also tried to put the OU in BASE_DN, but still not working
@IrAlfred commented on GitHub (Nov 13, 2025):
Did you provide the full path, I mean from the root OU to the current user's. For example:
From right to left. In the example Sales is in Users
@rfpg1 commented on GitHub (Nov 13, 2025):
Yes, I did an LDAP search to check the full DN of my user and put that DN in there, excluding the CN
Aren't there any logs I can read?
@IrAlfred commented on GitHub (Nov 13, 2025):
Unfortunately no application-specific logs, only generic Docker logs.
If you don't mind, you can create a test account we can use for debugging ! This would be helpful
@rfpg1 commented on GitHub (Nov 13, 2025):
Where to create the test account?
I've managed to login with AUTH_TYPE=DB (which is the default I believe) with credentials also defined in the docker-compose
But I really needed the LDAP login
@IrAlfred commented on GitHub (Nov 13, 2025):
On your LDAP server so I can try to login on my side.
@rfpg1 commented on GitHub (Nov 13, 2025):
You want an account on my LDAP server?
It is in a private network, you cannot access it even if I wanted to
@IrAlfred commented on GitHub (Nov 13, 2025):
Oh unfortunately! Maybe we can plan for a screenshare in that case. You can DM on gitter (iralfred:gitter.im) and join our Cypht Community (https://app.gitter.im/#/room/#cypht-org_community:gitter.im)
@IrAlfred commented on GitHub (Jan 9, 2026):
Hello @rfpg1,
Let's try this.
First use LDAP_AUTH_UID_ATTR="cn"
Next
This setting depends on where the user account is located in Active Directory:
Use:
This is because Active Directory places globally created users in the cn=Users container by default.
Use:
When logging into Cypht, please use the user’s full name as stored in Active Directory, not the username.
For example:
Username in AD: john
Full name in AD: John Doe
Enter in Cypht login: John Doe
@marclaporte commented on GitHub (Jan 10, 2026):
@rfpg1 I am very curious about your use of Cypht in a private network. What features are most useful, what features are missing, etc. If you'd like to chat, please reach out. My mail is my first name at my full name dot com. (And easy to find if you search my name online)
@IrAlfred commented on GitHub (Jan 16, 2026):
@rfpg1
We have improved the documentation here https://github.com/cypht-org/cypht/wiki/How-to-setup-LDAP-Authentication
@IrAlfred commented on GitHub (Jan 18, 2026):
Hello @rfpg1,
We would like to inform you that LDAP authentication support has been significantly expanded and improved in Cypht 2.6.0. This new release adds better compatibility with Active Directory environments, including support for authentication using both UPN format (user@domain) and domain\user format. These enhancements address several limitations that existed in previous versions.
We recommend upgrading to Cypht 2.6.0 and testing your LDAP configuration again with this latest release. We believe the issues you encountered are resolved by the updated authentication implementation.
Since these improvements are now available, we will close this issue for the moment. However, please feel free to test with Cypht 2.6.0, and do not hesitate to reopen this issue if you continue to experience problems or need further assistance. We will be happy to investigate further with you.
Thank you again for your feedback and for helping us improve Cypht.
@rfpg1 commented on GitHub (Feb 6, 2026):
Hello @IrAlfred
I'll take a look at this in the future
For now I'm using SOGo but thanks anyway for the effort to make this great
@marclaporte commented on GitHub (Feb 7, 2026):
@rfpg1
We are planning more enhancements for 2026. Can you suggest one or two things Cypht can learn from SOGo?
We could discuss at an upcoming https://github.com/cypht-org/cypht/wiki/Monthly-Community-Meetings
Thanks!