diff --git a/plugins/kolab_auth/kolab_auth.php b/plugins/kolab_auth/kolab_auth.php index e223adbc..fadd3d2b 100644 --- a/plugins/kolab_auth/kolab_auth.php +++ b/plugins/kolab_auth/kolab_auth.php @@ -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()