diff options
author | Warren Baker <warren@decoy.co.za> | 2012-07-27 23:20:51 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2012-07-27 23:20:51 +0200 |
commit | 01d518e79e9311b1c9eb59568005580b8ed6ab96 (patch) | |
tree | 05c4eeb25166fe437a642dd55675e0d711df1a97 | |
parent | 601c91a7f257ab5dcc36787fec839f5d6881c6b8 (diff) | |
download | pfsense-01d518e79e9311b1c9eb59568005580b8ed6ab96.zip pfsense-01d518e79e9311b1c9eb59568005580b8ed6ab96.tar.gz |
Supress the error message if the ldap bind doesnt happen
-rw-r--r-- | etc/inc/auth.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |