Supress the error message if the ldap bind doesnt happen

This commit is contained in:
Warren Baker 2012-07-27 23:19:41 +02:00
parent 9af5f4591d
commit 323dc2e792

View File

@ -1059,7 +1059,7 @@ function ldap_backed($username, $passwd, $authcfg) {
if ($ldapanon == true) {
if (!($res = @ldap_bind($ldap)))
$error = true;
} else if (!($res = ldap_bind($ldap, $ldapbindun, $ldapbindpw)))
} else if (!($res = @ldap_bind($ldap, $ldapbindun, $ldapbindpw)))
$error = true;
if ($error == true) {