From 01d518e79e9311b1c9eb59568005580b8ed6ab96 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Fri, 27 Jul 2012 23:20:51 +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') diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 29a698c..1e6f26a 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -1027,7 +1027,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