support country and organisation as account containers
This commit is contained in:
parent
a213beb902
commit
3067e4be62
|
@ -137,7 +137,7 @@ class baseType {
|
||||||
public function getSuffixList() {
|
public function getSuffixList() {
|
||||||
$suffix = $_SESSION["config"]->get_Suffix(get_class($this));
|
$suffix = $_SESSION["config"]->get_Suffix(get_class($this));
|
||||||
$ret = array();
|
$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) {
|
if ($sr) {
|
||||||
$units = ldap_get_entries($_SESSION["ldap"]->server(), $sr);
|
$units = ldap_get_entries($_SESSION["ldap"]->server(), $sr);
|
||||||
cleanLDAPResult($units);
|
cleanLDAPResult($units);
|
||||||
|
|
Loading…
Reference in New Issue