summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2012-07-27 23:19:41 +0200
committerWarren Baker <warren@decoy.co.za>2012-07-27 23:19:41 +0200
commit323dc2e792487a06cb90f879160325af22cd89bc (patch)
tree8ad661d6560ca9ebe7a904176bc4c0d6f69b341e /etc/inc/auth.inc
parent9af5f4591d41160fe6cca75d2cc2ec64c48fac26 (diff)
downloadpfsense-323dc2e792487a06cb90f879160325af22cd89bc.zip
pfsense-323dc2e792487a06cb90f879160325af22cd89bc.tar.gz
Supress the error message if the ldap bind doesnt happen
Diffstat (limited to 'etc/inc/auth.inc')
-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 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) {
OpenPOWER on IntegriCloud