T1521: kolab_auth: Add possibility to close LDAP connection on request

This commit is contained in:
Aleksander Machniak 2016-09-21 11:13:31 -04:00
parent 7925f2045b
commit cbf4fa90d6

View file

@ -768,6 +768,17 @@ class kolab_auth extends rcube_plugin
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.
* See kolab_auth_ldap::parse_vars()