← Back to team overview

phpdevshell team mailing list archive

[Bug 1032840] [NEW] AUTH_ldap lookupUers needs to close the ldap connection

 

Public bug reported:

AUTH_ldap class's lookupUers function should close the lpad connection
once its done authenticating/binding the user.

        if (!@ldap_bind($connect, $username, $password)) {
            ldap_close($connect);
            return false;  // if we can't bind it's likely the user is unknown or the password is wrong
        }
        $this->log('Bound');

      
        ldap_close($connect);
        return true;

** Affects: phpdevshell
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/1032840

Title:
  AUTH_ldap lookupUers needs to close the ldap connection

Status in Open Source PHP RAD Framework with UI.:
  New

Bug description:
  AUTH_ldap class's lookupUers function should close the lpad connection
  once its done authenticating/binding the user.

          if (!@ldap_bind($connect, $username, $password)) {
              ldap_close($connect);
              return false;  // if we can't bind it's likely the user is unknown or the password is wrong
          }
          $this->log('Bound');

        
          ldap_close($connect);
          return true;

To manage notifications about this bug go to:
https://bugs.launchpad.net/phpdevshell/+bug/1032840/+subscriptions


Follow ups

References