Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
$len = strlen($key) - strlen($referenceConfigkey);
$prefixes[] = substr($key, 0, $len);
}
+ asort($prefixes);
return $prefixes;
}
return $domain;
}
-
+
/**
*
* Set the LDAPProvider in the config
\OC::$server->getConfig()->setSystemValue('ldapProviderFactory', LDAPProviderFactory::class);
}
}
-
+
/**
* sanitizes a DN received from the LDAP server
* @param array $dn the DN in question
return $dn;
}
-
+
/**
* converts a stored DN so it can be used as base parameter for LDAP queries, internally we store them for usage in LDAP filters
* @param string $dn the DN