From 5b3c82c2ca310dfe6cf6fd657a148af68f6e0668 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 12 Apr 2006 06:45:39 +0000 Subject: [PATCH] Fixed dn convert git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3039 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.30.2