From 8974f60e279aec55020c6a509de95d2c568befab Mon Sep 17 00:00:00 2001 From: psc Date: Wed, 15 Jul 2009 08:57:41 +0000 Subject: [PATCH] Added a new special casing for debconf variables git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13929 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-plugins/fai/admin/fai/class_FAI.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc b/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc index 9f0805f7f..292269497 100644 --- a/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -1284,8 +1284,8 @@ class FAI global $config; $Current_DN = $dn; - /* special case partitions, as they don't start with cn= in their DN (schema bug?) */ - if (preg_match('/^FAIpartitionNr=/', $Current_DN)){ + /* special case partitions and debconf variables, as they don't start with cn= in their DN */ + if (preg_match('/^(FAIpartitionNr|FAIvariable)=/', $Current_DN)){ return false; } @@ -1333,8 +1333,8 @@ class FAI $tmp_dn = $Current_DN; $parent_dn = array(); - /* special case partitions, as they don't start with cn= in their DN (schema bug?) */ - $tmp_dn = preg_replace('/^FAIpartitionNr=/', 'cn=', $tmp_dn); + /* special case partitions and debconf variables, as they don't start with cn= in their DN */ + $tmp_dn = preg_replace('/^(FAIpartitionNr|FAIvariable)=/', 'cn=', $tmp_dn); $tmp_dn = gosa_ldap_explode_dn($tmp_dn); while(preg_match('/^cn=/', $tmp_dn[$i])) { -- 2.30.2