There is currently erroneous watchdog errors thrown if you set up a server to use anonymous bind, and create a view to use that server, as there is no current way to have server->bind() with no arguments know that you are actually using anonymous bind.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Examining the bind function, there appears to be some logic to allow $anon_bind to be set, but the if statement to allow $anon_bind to be set to TRUE doesn't make logical sense. If $anon_bind was already TRUE, why would it need to be set to TRUE again.

The following patch simple re-writes the if statement to allow $anon_bind to be set appropriately based on all arguments being default, and the server bind method being set to anonymous.

Anonymous’s picture

grahl’s picture

Status: Active » Needs review

Anyone else using this patch?

Status: Needs review » Needs work

The last submitted patch, 2: erroneus_watchdog_anonymous_bind_views-2356649-1.patch, failed testing.

grahl’s picture

Status: Needs work » Needs review
matthewn’s picture

I am using this patch; it seems to do the trick.

grahl’s picture

Status: Needs review » Fixed

Reviewed, makes sense, thanks.

  • grahl committed 875ef9f on 7.x-2.x authored by rsmylski
    Issue #2356649 by rsmylski: Errors thrown about LDAP bind failure if...

  • grahl committed a5da58c on 8.x-3.x authored by rsmylski
    Issue #2356649 by rsmylski: Errors thrown about LDAP bind failure if...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.