Code

Updated ACL handling in case of renaming of container objects.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Oct 2009 14:04:22 +0000 (14:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Oct 2009 14:04:22 +0000 (14:04 +0000)
-Fixed DN modifications.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14584 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_plugin.inc

index f03490a03b4f6423af8acf73ddf8e291e84e1b96..ae5193b0e49eac04f7f8fecfd09ce8a876f9aa8b 100644 (file)
@@ -976,7 +976,7 @@ class plugin
           array("dn","objectClass"),GL_SUBSEARCH | GL_NO_ACL_CHECK);
     foreach($leaf_objs as $obj){
       $new_dn = $obj['dn'];
-      $old_dn = preg_replace("/".preg_quote($dst_dn, '/')."$/i",$src_dn,$new_dn);
+      $old_dn = preg_replace("/".preg_quote(LDAP::convert($dst_dn), '/')."$/i",$src_dn,LDAP::convert($new_dn));
       $this->update_acls($old_dn,$new_dn); 
     }