mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[GH-ISSUE #1481] 💬 [Question] How to config LDAP auth #664
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#664
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 @kevinend51 on GitHub (Mar 24, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1481
Originally assigned to: @IrAlfred on GitHub.
💬 Question
I want to login cypht with my ldap server, here is my docker-compose.yml:
While I am able to bind the user with the following command:
I'm not able to login cypht with the same username and password, as the following screenshot:
And from my ldap server's (authentik ldap outpost) log, it seems that cypht is not reaching out to ldap server. Is there an example about how to config cyptht to login with ldap server?
@marclaporte commented on GitHub (Apr 21, 2025):
@kevinend51
I don't use Cypht this way. And because it involves another piece of software, it's tricky to reproduce for developers.
Could you do a screenshare with a Cypht developer about this? Ideally they could have access to a system without confidential data, which exhibits the issue.
Please join us in the community chat room:
https://gitter.im/cypht-org/community
@tablebird commented on GitHub (Jul 17, 2025):
you config
In cypht it is actually similar to
And the official cypht image does not install the ldap support library, you need to modify Dockerfile to add ldap dependency. You can refer to the changes to Dockerfile in this commit
If you want to log in by searching for sub-users, you can use my modified image,
https://hub.docker.com/r/tablebird/cypht
If you want to log in by searching for sub-users, you can use my modified image. To use my image, you need to configure the following environment variables
Instructions for configuration can be found in ldap.php
@kevinend51 commented on GitHub (Jul 21, 2025):
@marclaporte May I ask why the official image doesn’t support LDAP login out of the box, and requires additional patches like the one provided by tablebird to make it work? Based solely on the official documentation, it seems LDAP is already supported, but after configuration it appears to have no effect.
@marclaporte commented on GitHub (Jul 21, 2025):
@kevinend51 I have no objection to add LDAP out of the box.
Can you prepare a PR or do you need a developer to help you?
@kevinend51 commented on GitHub (Jul 23, 2025):
By looking at this line:
https://github.com/cypht-org/cypht/blob/master/config/app.php#L56
I think cypht has LDAP support out of the box via proper configuration
Am I mistaking something?
@IrAlfred commented on GitHub (Aug 26, 2025):
https://github.com/cypht-org/cypht/wiki/How-to-setup-LDAP-Authentication
@IrAlfred commented on GitHub (Sep 24, 2025):
Hello @kevinend51,
We have a good news for you !
We have addressed this issue. The required LDAP libraries have been added to the docker image configuration on development branch (master), and the underlying LDAP authentication logic has also been improved.
It would be great if you can retest and provide your feedback. Here are your options to get a working LDAP setup:
We now publish daily Docker images from the master branch to our Docker Hub registry. This is the quickest and easiest way to test the latest fixes without building the image yourself. You can update your docker-compose.yml file to use the
cypht/cypht:dailyimage. Please note that while these images contain the latest code, they are considered "unstable" as they are development builds.If you are comfortable building a Docker image yourself, you can test the fix immediately. You would need to:
While this is the fastest way to verify the fix, we acknowledge it's not straightforward for all users.
The simpler option is to wait for the next official Docker image release, which will include both the LDAP dependency and the authentication fixes. This will provide a stable, ready-to-use solution without any extra steps on your part. The release is scheduled for the near future https://github.com/cypht-org/cypht/issues/1624.
Meanwhile, we are closing this issue as the fix has been implemented. Please feel free to reopen the issue if you still encounter the error after testing with the daily Docker image or the official release. We appreciate you sharing your findings with us.
Thank you for your contribution to improving Cypht !