-
Notifications
You must be signed in to change notification settings - Fork 30
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
Anonymous binding to the ldap server when LoginLdap tries to synchronize users with ldap. #213
Comments
Same here. It would be great to have a config option to switch anonymous bind off and use bind with credentials instead. |
I guess I have the same problem:
|
Hi @doits . I just tested the plugin and see what you're talking about. I'm not sure why that warning is displaying. However, it is just a warning. When I ran the LDAP plugin with my debugger running, I could see the warning, but I also saw that the LDAP client was successfully created and that the users were correctly synced. So, the plugin appears to be working correctly, but that warning displays. Any other thoughts @AltamashShaikh ? |
It works for me, too (clients can authenticate etc.) but displays this warning at the top after every login, too. LDAP server logs this first:
... and then the second bind is done correctly right afterwards with the provided credentials:
The culprit is the first anonymous bind if I see it correctly. |
@doits The plugin tries to bind anonymously first and which fails, may be we shouldn't show it as a warning if its an obvious case. |
Same log flooding here. Seems redundant anonymous binding was introduced in because
but according to php manual Please verify and remove this hack if unnecessary (including b021706) and make sure all LDAP operations are prepared to handle LDAP exceptions. |
@pboguslawski Will check if we can remove this logging 👍 |
Hello,
When synchronizing users with the LDAP server using the command loginldap:synchronize-users, the LoginLdap plugin bind the server with an anonymous connection.
The plugin does not bind because we refuse anonymous connections to the ldap server and this causes warnings.
These warnings cause an error when the plugin manages to synchronize users to ldap.
Could you modify the behaviour of the LoginLdap plugin so that it bind the Ldap server with a non-annonymous connection please ?
Regards
The text was updated successfully, but these errors were encountered: