-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP passthrough problem #550
Comments
Comment received from elliefm on cyrusimap/cyrus-imapd#2604 |
I also did the test to validate the "LDAP server refused the authentication" case elliefm suggested, it always uses the cached data once it has it. The test is as following:
Thanks |
Hello, any update on this issue? Thanks |
Any update on this issue? Thanks |
Can some one look at this issue? Thanks |
Hello. Any update on this issue? Thanks |
Can some one please look at this issue? Thanks |
The code in lak_auth_bind (and more specifically lak_bind) seem to be explicitly always doing cached authentication. |
platform: CentOS Linux release 7.3.1611 (Core)
version of SASL: cyrus-sasl-2.1.26
I used Cyrus Sasl 2.1.26 as a LDAP passthrough to external LDAP server on CentOS 7.
I can logon using external LDAP user and password, if I stop external LDAP server, I can still logon which should not, because I did not use cache option of saslauthd.
After investigatin, I found in auth_ldap.c -> auth_ldap function the following line:
static LAK *lak = NULL;
So the user name and password is cached in this static variable, it contains the bind status is BOUND if a user logon successfully, so if the same user logon, it is not going to contact the external LDAP server since it's already bound, I don't know if it's done on purpose or it's a bug. Please clarify.
Thanks
Jerry
The text was updated successfully, but these errors were encountered: