diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-28 00:46:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-28 00:46:26 +0000 |
commit | 9d265058e7693c830f80be173ab09d3ee850ec00 (patch) | |
tree | 3552b4d04fccff8a632068337229023f1f124c64 /etc | |
parent | 48e2304370eb988514013acae1bad0b483371c76 (diff) | |
download | pfsense-9d265058e7693c830f80be173ab09d3ee850ec00.zip pfsense-9d265058e7693c830f80be173ab09d3ee850ec00.tar.gz |
* Hide search base
* Use correct variable name
Work sponsored-by: Centipede Networks
Diffstat (limited to 'etc')
-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 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; |