git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18923 44c647ce-9c0f-0410-b52a-842ac1e357ba
@@ -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.