Skip to content

Commit

Permalink
One strange 'o' jumped in..
Browse files Browse the repository at this point in the history
  • Loading branch information
paca70 committed Feb 25, 2003
1 parent 5b337cd commit 38620c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/ldap/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand All @@ -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();
Expand Down

0 comments on commit 38620c4

Please sign in to comment.