One strange 'o' jumped in..

This commit is contained in:
paca70 2003-02-25 07:24:48 +00:00
parent 5b337cdf3b
commit 38620c460b

View File

@ -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();