Explorar el Código

some minor fixes regarding anonymous binds

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18923 44c647ce-9c0f-0410-b52a-842ac1e357ba
sgehrig hace 16 años
padre
commit
8f58c4a6fc
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      library/Zend/Ldap.php

+ 2 - 1
library/Zend/Ldap.php

@@ -817,9 +817,10 @@ class Zend_Ldap
             $moreCreds = false;
         }
 
-        if ($username === null) {
+        if (empty($username)) {
             /* Perform anonymous bind
              */
+            $username = null;
             $password = null;
         } else {
             /* Check to make sure the username is in DN form.