diff options
Diffstat (limited to 'modules/vauth/auth.lib.php')
-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; |