From 0e8eea93408a7534114ae0875e0eff94bc67bc01 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jul 2010 13:54:52 +0000 Subject: [PATCH] Updated object handling, special chars in obejct dns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19268 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../rolemanagement/admin/roleManagement/tabs_roles.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/rolemanagement/admin/roleManagement/tabs_roles.inc b/gosa-plugins/rolemanagement/admin/roleManagement/tabs_roles.inc index 8346d9b1b..93d269141 100644 --- a/gosa-plugins/rolemanagement/admin/roleManagement/tabs_roles.inc +++ b/gosa-plugins/rolemanagement/admin/roleManagement/tabs_roles.inc @@ -55,9 +55,9 @@ class roletabs extends tabs /* Check for new 'dn', in order to propagate the 'dn' to all plugins */ - $nAV = preg_replace('/,/', '\,', $baseobject->cn); - $nAV = preg_replace('/"/', '\"', $nAV); - $new_dn= 'cn='.$nAV.','.get_ou("roleGeneric", "roleRDN").$baseobject->base; + $cn = preg_replace('/,/', '\,', $baseobject->cn); + $cn = preg_replace('/"/', '\"', $cn); + $new_dn= @LDAP::convert('cn='.$cn.','.get_ou("roleGeneric", "roleRDN").$baseobject->base); /* Move role? */ if ($this->dn != $new_dn){ -- 2.30.2