T1521: kolab_auth: Add possibility to close LDAP connection on request
This commit is contained in:
parent
7925f2045b
commit
cbf4fa90d6
1 changed files with 11 additions and 0 deletions
|
@ -768,6 +768,17 @@ class kolab_auth extends rcube_plugin
|
||||||
return self::$ldap;
|
return self::$ldap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Close LDAP connection
|
||||||
|
*/
|
||||||
|
public static function ldap_close()
|
||||||
|
{
|
||||||
|
if (self::$ldap) {
|
||||||
|
self::$ldap->close();
|
||||||
|
self::$ldap = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses LDAP DN string with replacing supported variables.
|
* Parses LDAP DN string with replacing supported variables.
|
||||||
* See kolab_auth_ldap::parse_vars()
|
* See kolab_auth_ldap::parse_vars()
|
||||||
|
|
Loading…
Add table
Reference in a new issue