From 323dc2e792487a06cb90f879160325af22cd89bc Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Fri, 27 Jul 2012 23:19:41 +0200 Subject: Supress the error message if the ldap bind doesnt happen --- etc/inc/auth.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/auth.inc') diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 7158b78..6f1f46f 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) { -- cgit v1.1