summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-28 00:46:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-28 00:46:26 +0000
commit9d265058e7693c830f80be173ab09d3ee850ec00 (patch)
tree3552b4d04fccff8a632068337229023f1f124c64 /etc/inc/auth.inc
parent48e2304370eb988514013acae1bad0b483371c76 (diff)
downloadpfsense-9d265058e7693c830f80be173ab09d3ee850ec00.zip
pfsense-9d265058e7693c830f80be173ab09d3ee850ec00.tar.gz
* Hide search base
* Use correct variable name Work sponsored-by: Centipede Networks
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 9f3dcb5..0245a1c 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -587,7 +587,7 @@ function ldap_backed($username, $passwd) {
return $status;
}
- if (!($res = @ldap_bind($ldap, $ldapsearchbase, $passwd))) {
+ if (!($res = @ldap_bind($ldap, $username, $passwd))) {
log_error("ERROR! LDAP could not bind to {$ldapserver} - {$dn}. Defaulting to built-in htpasswd_backed()");
$status = htpasswd_backed($username, $passwd);
return $status;
OpenPOWER on IntegriCloud