Code

Updated object handling, special chars in obejct dns
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 13:54:52 +0000 (13:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 13:54:52 +0000 (13:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19268 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/rolemanagement/admin/roleManagement/tabs_roles.inc

index 8346d9b1b55d226034ad499fbd75f95bf94d39d1..93d2691413d837c27be3384121b3328ddfb99013 100644 (file)
@@ -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){