From: hickert Date: Wed, 12 Apr 2006 06:45:39 +0000 (+0000) Subject: Fixed dn convert X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5b3c82c2ca310dfe6cf6fd657a148af68f6e0668;p=gosa.git Fixed dn convert git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3039 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index c47e31b20..2de43011a 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -514,7 +514,10 @@ function get_list2($subtreeACL, $filter, $subsearch= TRUE, $base="", $attrs= arr $dn= $ldap->getDN(); foreach ($subtreeACL as $key => $value){ if (preg_match("/$key/", $dn)){ - $attrs["dn"]= convert_department_dn($dn); + $dnAlias = preg_replace("/^ou=/","",$dn); + $dnAlias = preg_replace("/,o.*$/","",$dnAlias); + $dnAlias = preg_replace('/###GOSAREPLACED###/', ',', $dnAlias); + $attrs["dn"]=$dnAlias; $result[]= $attrs; break; }