summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2012-07-27 23:20:51 +0200
committerWarren Baker <warren@decoy.co.za>2012-07-27 23:20:51 +0200
commit01d518e79e9311b1c9eb59568005580b8ed6ab96 (patch)
tree05c4eeb25166fe437a642dd55675e0d711df1a97
parent601c91a7f257ab5dcc36787fec839f5d6881c6b8 (diff)
downloadpfsense-01d518e79e9311b1c9eb59568005580b8ed6ab96.zip
pfsense-01d518e79e9311b1c9eb59568005580b8ed6ab96.tar.gz
Supress the error message if the ldap bind doesnt happen
-rw-r--r--etc/inc/auth.inc2
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) {
OpenPOWER on IntegriCloud