From: paca70 Date: Tue, 25 Feb 2003 07:24:48 +0000 (+0000) Subject: One strange 'o' jumped in.. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=38620c460b37ca283bf7bb3ff29b069775f76d87;p=moodle.git One strange 'o' jumped in.. --- diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index bd46277829..ba71230933 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -38,7 +38,6 @@ function auth_user_login ($username, $password) { $ldap_connection = auth_ldap_connect(); if ($ldap_connection) { - $ldap_user_dn = auth_ldap_find_userdn($ldap_connection, $username); //if ldap_user_dn is empty, user does not exist @@ -51,6 +50,7 @@ function auth_user_login ($username, $password) { $ldap_login = @ldap_bind($ldap_connection, $ldap_user_dn, $password); ldap_close($ldap_connection); if ($ldap_login) { + ldap_close($ldap_connection); return true; } } else { @@ -66,7 +66,7 @@ function auth_get_userinfo($username){ /// reads userinformation from ldap and return it in array() global $CFG; - $config = (array)$CFGo; + $config = (array)$CFG; $moodleattributes = auth_ldap_attributes(); $ldap_connection=auth_ldap_connect();