diff options
| author | Lester Caine <lester@lsces.co.uk> | 2009-04-21 19:03:50 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2009-04-21 19:03:50 +0000 |
| commit | 75c1e1846126762f7860b33f68aa841d05e3a48d (patch) | |
| tree | 324a617230b83c73cc8ca605c7e5a01ada9a10c6 /auth/ldap | |
| parent | 4255944ae95f1abdb34a9941125ea27f9b70c5cf (diff) | |
| download | users-75c1e1846126762f7860b33f68aa841d05e3a48d.tar.gz users-75c1e1846126762f7860b33f68aa841d05e3a48d.tar.bz2 users-75c1e1846126762f7860b33f68aa841d05e3a48d.zip | |
From witbeaver - correction to email lookup
Diffstat (limited to 'auth/ldap')
| -rw-r--r-- | auth/ldap/auth.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index 4a87556..2380947 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/auth/ldap/auth.php,v 1.11 2009/04/21 18:57:38 lsces Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/auth/ldap/auth.php,v 1.12 2009/04/21 19:03:50 lsces Exp $ * * @package users */ @@ -53,13 +53,13 @@ class LDAPAuth extends BaseAuth { $success = $a->storage->fetchData($user_utf8, $pass, false); if ($success == false) { // The user wasn't found. Try again by email address: - $a = new Auth("LDAP", $this->mConfig, "", false); - $this->mConfig['userattrsto'] = $this->mConfig['userattr']; // Keep this for later $this->mConfig['userattr'] = $this->mConfig['email']; // Tell PEAR::Auth() to look at the 'mail' attribute + + $a = new Auth("LDAP", $this->mConfig, "", false); $a->_loadStorage(); // set up connection to ldap via user details - $success = $a->storage->fetchData($user_utf8, $pass, false); + $success = $a->storage->fetchData($user_utf8, $pass, false); if ($success == false) { $this->mErrors['login'] = isset($a->storage->options['status']) ? $a->storage->options['status'] : 'Not authenticated'; return PASSWORD_INCORRECT; |
