Code

Fixed dn convert
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Apr 2006 06:45:39 +0000 (06:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Apr 2006 06:45:39 +0000 (06:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3039 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index c47e31b20aec827a2c0415238df88c92e547e185..2de43011a4a95a2f881559cf41b41c26c0c5449e 100644 (file)
@@ -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;
       }