Page MenuHomePhabricator
Paste P1014

anon_ldap.diff
ActivePublic

Authored by epriestley on Dec 2 2013, 5:37 PM.
Tags
None
Referenced Files
F86712: anon_ldap.diff
Dec 2 2013, 5:37 PM
Subscribers
None
diff --git a/src/auth/PhutilAuthAdapterLDAP.php b/src/auth/PhutilAuthAdapterLDAP.php
index 5cf13fb..a739fe5 100644
--- a/src/auth/PhutilAuthAdapterLDAP.php
+++ b/src/auth/PhutilAuthAdapterLDAP.php
@@ -218,6 +218,8 @@ final class PhutilAuthAdapterLDAP extends PhutilAuthAdapter {
$this->bindLDAP($conn, $distinguished_name, $login_pass);
+ $this->bindLDAP($conn, $this->anonymousUsername, $this->anonymousPassword);
+
return $this->searchLDAPForUser($this->searchAttribute, $login_user);
}

Event Timeline