Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

One strange 'o' jumped in..

  • Loading branch information...
commit 38620c460b37ca283bf7bb3ff29b069775f76d87 1 parent 5b337cd
authored February 25, 2003

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  auth/ldap/lib.php
4  auth/ldap/lib.php
@@ -38,7 +38,6 @@ function auth_user_login ($username, $password) {
38 38
     $ldap_connection = auth_ldap_connect();
39 39
 
40 40
     if ($ldap_connection) {
41  
-      
42 41
         $ldap_user_dn = auth_ldap_find_userdn($ldap_connection, $username);
43 42
       
44 43
         //if ldap_user_dn is empty, user does not exist
@@ -51,6 +50,7 @@ function auth_user_login ($username, $password) {
51 50
         $ldap_login = @ldap_bind($ldap_connection, $ldap_user_dn, $password);
52 51
         ldap_close($ldap_connection);
53 52
         if ($ldap_login) {
  53
+            ldap_close($ldap_connection);
54 54
             return true;
55 55
         }
56 56
     } else {
@@ -66,7 +66,7 @@ function auth_get_userinfo($username){
66 66
 /// reads userinformation from ldap and return it in array()
67 67
     global $CFG;
68 68
 
69  
-    $config = (array)$CFGo;
  69
+    $config = (array)$CFG;
70 70
     $moodleattributes = auth_ldap_attributes();
71 71
    
72 72
     $ldap_connection=auth_ldap_connect();

0 notes on commit 38620c4

Please sign in to comment.
Something went wrong with that request. Please try again.