From 137b11a2acc04d398325969967dc83b471e0d02d Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 May 2006 06:45:02 +0000 Subject: [PATCH] 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 --- include/class_plugin.inc | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- 2.30.2