support country and organisation as account containers

This commit is contained in:
Roland Gruber 2012-07-22 10:39:17 +00:00
parent a213beb902
commit 3067e4be62
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class baseType {
public function getSuffixList() {
$suffix = $_SESSION["config"]->get_Suffix(get_class($this));
$ret = array();
$sr = @ldap_search($_SESSION["ldap"]->server(), escapeDN($suffix), "objectClass=organizationalunit", array("DN"), 0, 0, 0, LDAP_DEREF_NEVER);
$sr = @ldap_search($_SESSION["ldap"]->server(), escapeDN($suffix), "(|(objectClass=organizationalunit)(objectClass=country)(objectClass=organization))", array("DN"), 0, 0, 0, LDAP_DEREF_NEVER);
if ($sr) {
$units = ldap_get_entries($_SESSION["ldap"]->server(), $sr);
cleanLDAPResult($units);