diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-14 23:23:12 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-14 23:23:12 +0000 |
commit | 0ac27764e1d5e3499a3ca2ded0018d33c42ae50b (patch) | |
tree | c3ce17c9ce82065d1008c29bb127b447adadbe05 /modules | |
parent | f3e58ba9bd907cc2c17085579d8663c17bead464 (diff) | |
download | ampache-0ac27764e1d5e3499a3ca2ded0018d33c42ae50b.tar.gz ampache-0ac27764e1d5e3499a3ca2ded0018d33c42ae50b.tar.bz2 ampache-0ac27764e1d5e3499a3ca2ded0018d33c42ae50b.zip |
fixed some bugs introduced by the ldap patch
Diffstat (limited to 'modules')
-rw-r--r-- | modules/vauth/auth.lib.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/vauth/auth.lib.php b/modules/vauth/auth.lib.php index c170e7f7..ff0ca5e8 100644 --- a/modules/vauth/auth.lib.php +++ b/modules/vauth/auth.lib.php @@ -129,7 +129,7 @@ function vauth_ldap_auth($username, $password) { ldap_set_option($ldap_link, LDAP_OPT_PROTOCOL_VERSION, 3); // bind using our auth, if we need to, for initial search for username - if (!ldap_bind($ldap_link, $ldap_dn, $ldap_password)) { + if (!ldap_bind($ldap_link, $ldap_username, $ldap_password)) { $results['success'] = false; $results['error'] = "Could not bind to LDAP server."; return $results; |