From d01db3a8079eb792174b18efbaf99e8537756730 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 8 May 2012 14:02:16 +0200 Subject: [PATCH] LDAP: make sure, configuration is read when a public method needs it --- apps/user_ldap/lib_ldap.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php index 505181ff882..9de03a07fef 100755 --- a/apps/user_ldap/lib_ldap.php +++ b/apps/user_ldap/lib_ldap.php @@ -120,6 +120,7 @@ class OC_LDAP { return $dn; } else { //fallback: user is not mapped + self::init(); $filter = self::combineFilterWithAnd(array( self::$ldapUserFilter, self::$ldapUserDisplayName . '=' . $name, @@ -431,6 +432,7 @@ class OC_LDAP { * Executes an LDAP search */ static public function searchUsers($filter, $attr = null) { + self::init(); return self::search($filter, self::$ldapBaseUsers, $attr); } @@ -443,6 +445,7 @@ class OC_LDAP { * Executes an LDAP search */ static public function searchGroups($filter, $attr = null) { + self::init(); return self::search($filter, self::$ldapBaseGroups, $attr); } -- 2.39.5