summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e46b384)
raw | patch | inline | side by side (parent: e46b384)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Apr 2006 06:45:39 +0000 (06:45 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index c47e31b20aec827a2c0415238df88c92e547e185..2de43011a4a95a2f881559cf41b41c26c0c5449e 100644 (file)
--- 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;
}