Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I updated to 7.x-2.0-beta11 from 7.x-2.0-beta8+14-dev, and now it is throwing a notice for the non-ldap user:
LDAP bind failure for user userdn=, pass=.
Which was not an issue in the past.
I have used "Bind with Users Credentials" in the server setting.
Any fix?
Comment | File | Size | Author |
---|---|---|---|
#8 | ldap-bind_failure-2780393-8.patch | 716 bytes | PascalAnimateur |
#6 | ldap-bind_failure-2780393-6-D7.patch | 806 bytes | mmarler |
Comments
Comment #2
LeafLin CreditAttribution: LeafLin commentedSorry,
Just want to clarify it was not a problem in 7.x-2.0-beta8, but has been throwing the message since 7.x-2.0-beta8+14-dev.
Comment #3
jwillard CreditAttribution: jwillard commentedYes, I can also confirm this issue. I also have the same setting of "bind with users credentials" checked. I tried beta9 and beta11 and they both appeared to be throwing this error message in the system log. I did not have this issue as of beta8.
Comment #4
mmarler CreditAttribution: mmarler commentedI can confirm this too. Also, after updating from beta8 the status report is saying, "Connection: Failed, check logs for details."
Comment #5
mmarler CreditAttribution: mmarler commentedHere's a patch. The issue only seems to be with the status report trying to bind user credentials. Since the report is generated after the user has logged in there is no user dn or password to bind with since ldap doesn't store passwords. A work around is to do an anonymous bind.
Comment #6
mmarler CreditAttribution: mmarler commentedRenaming patch
Comment #7
GaëlGThe last patch works. Thank you!
Comment #8
PascalAnimateur CreditAttribution: PascalAnimateur commentedRe-roll patch from #6 so it applies cleanly in drush make file
Comment #9
grahlRight, well, isn't the anonymous bind conditional on the specific server configuration? I think it doesn't make sense to set to anonymous for service account bind, is it?
Comment #10
grahlI'm marking this as a duplicate of https://www.drupal.org/node/2838389, let's fix it over there.