Reuse ldap connections for the default config
This commit is contained in:
@@ -160,6 +160,10 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin
|
||||
|
||||
function ldap_get_connection($config = null){
|
||||
if($config == null){
|
||||
static $ldap = null;
|
||||
if($ldap != null){
|
||||
return $ldap;
|
||||
}
|
||||
$config = $this->ldap_get_config();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user