From: hickert Date: Fri, 12 May 2006 06:45:02 +0000 (+0000) Subject: Added fix to allow FAIdebconfInfo to be moved recursive X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=137b11a2acc04d398325969967dc83b471e0d02d;p=gosa.git Added fix to allow FAIdebconfInfo to be moved recursive git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3307 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 1a74a7538..bd30dfd7b 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -738,7 +738,15 @@ class plugin /* Save copy */ $ldap->connect(); $ldap->cd($this->config->current['BASE']); + $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $dst_dn)); + + /* FAIvariable=.../..., cn=.. + could not be saved, because the attribute FAIvariable was different to + the dn FAIvariable=..., cn=... */ + if(in_array_ics("FAIdebconfInfo",$new['objectClass'])){ + $new['FAIvariable'] = $ldap->fix($new['FAIvariable']); + } $ldap->cd($dst_dn); $ldap->add($new);