diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 7158b78031..6f1f46fa49 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -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) {