Code

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

gosa-core/plugins/admin/acl/tabs_acl_role.inc

index faa8214da81e2bdc3d32bf05e4dd6f591f973eb0..1a4c36ecb82e7d67ecf83fe77b53d6a5a9185c05 100644 (file)
@@ -32,10 +32,12 @@ class aclroletab extends tabs
   function save($ignore_account= FALSE)
   {
     $baseobject= $this->by_object['aclrole'];
+    $cn      = preg_replace('/,/', '\,', $baseobject->cn); 
+    $cn      = preg_replace('/"/', '\"', $cn); 
 
     /* Check for new 'dn', in order to propagate the
        'dn' to all plugins */
-    $new_dn= 'cn='.$baseobject->cn.",".get_ou("aclrole", "aclRoleRDN").$baseobject->base;
+    $new_dn=  @LDAP::convert('cn='.$cn.",".get_ou("aclrole", "aclRoleRDN").$baseobject->base);
 
     if ($this->dn != $new_dn){