fix LDAP bug

This commit is contained in:
Roland Gruber 2012-11-11 11:33:11 +00:00
parent b53d9da9e8
commit 9e06230f8b
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)(objectClass=country)(objectClass=organization))", array("DN"), 0, 0, 0, LDAP_DEREF_NEVER);
$sr = @ldap_search($_SESSION["ldap"]->server(), escapeDN($suffix), "(|(objectClass=organizationalunit)(objectClass=country)(objectClass=organization)(objectClass=krbRealmContainer))", array("DN"), 0, 0, 0, LDAP_DEREF_NEVER);
if ($sr) {
$units = ldap_get_entries($_SESSION["ldap"]->server(), $sr);
cleanLDAPResult($units);