Skip to content
Snippets Groups Projects
Commit 4beabe23 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

ldap: enable the destructor

parent d28e0f4d
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,8 @@ class OC_LDAP { ...@@ -52,6 +52,8 @@ class OC_LDAP {
static protected $ldapGroupDisplayName; static protected $ldapGroupDisplayName;
static protected $ldapLoginFilter; static protected $ldapLoginFilter;
static protected $__d;
/** /**
* @brief initializes the LDAP backend * @brief initializes the LDAP backend
* @param $force read the config settings no matter what * @param $force read the config settings no matter what
...@@ -59,6 +61,9 @@ class OC_LDAP { ...@@ -59,6 +61,9 @@ class OC_LDAP {
* initializes the LDAP backend * initializes the LDAP backend
*/ */
static public function init($force = false) { static public function init($force = false) {
if(is_null(self::$__d)) {
self::$__d = new OC_LDAP_DESTRUCTOR();
}
self::readConfiguration($force); self::readConfiguration($force);
self::establishConnection(); self::establishConnection();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment