Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

One strange 'o' jumped in..

  • Loading branch information...
commit 38620c460b37ca283bf7bb3ff29b069775f76d87 1 parent 5b337cd
paca70 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 auth/ldap/lib.php
View
4 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();
Please sign in to comment.
Something went wrong with that request. Please try again.