From 7dd52f82196e9fe0209fd0cd16e473b983b23e5e Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 27 Jul 2009 17:19:53 +1000 Subject: [PATCH] More issues for anon login to LDAP server to get user details --- lib/ds_ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ds_ldap.php b/lib/ds_ldap.php index 2c0a527..5bff6d1 100644 --- a/lib/ds_ldap.php +++ b/lib/ds_ldap.php @@ -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