Bläddra i källkod

some minor fixes regarding anonymous binds

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18923 44c647ce-9c0f-0410-b52a-842ac1e357ba
sgehrig 16 år sedan
förälder
incheckning
8f58c4a6fc
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      library/Zend/Ldap.php

+ 2 - 1
library/Zend/Ldap.php

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