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

LDAP: make sure, configuration is read when a public method needs it

parent 5dee914e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment