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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

LeafLin created an issue. See original summary.

LeafLin’s picture

Sorry,

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.

jwillard’s picture

Yes, 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.

mmarler’s picture

I can confirm this too. Also, after updating from beta8 the status report is saying, "Connection: Failed, check logs for details."

mmarler’s picture

FileSize
806 bytes

Here'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.

GaëlG’s picture

Status: Active » Reviewed & tested by the community

The last patch works. Thank you!

PascalAnimateur’s picture

grahl’s picture

Right, 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?

grahl’s picture

Status: Reviewed & tested by the community » Closed (duplicate)
Related issues: +#2838389: ldap_servers_requirements will always fail to bind when using Bind with Users Credentials option

I'm marking this as a duplicate of https://www.drupal.org/node/2838389, let's fix it over there.