More issues for anon login to LDAP server to get user details

This commit is contained in:
Deon George 2009-07-27 17:19:53 +10:00
parent 29cb490571
commit 7dd52f8219

View File

@ -145,7 +145,7 @@ class ldap extends DS {
$bind['pass'] = is_null($this->getPassword($method)) && $method != 'anon' ? $this->getPassword('user') : $this->getPassword($method);
# If our bind id is still null, we are not logged in.
if (is_null($bind['id']))
if (is_null($bind['id']) && $method != 'anon')
return null;
# If we bound to the LDAP server with these details for a different connection, return that resource