From 04f3bb42f92dff5004a819bc0394c315cc01df69 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 19 Jan 2007 08:31:53 +0000 Subject: [PATCH] Fixed copy'n paste with existing unit-tags git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5586 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPartitionTable.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/admin/fai/class_faiPartitionTable.inc b/plugins/admin/fai/class_faiPartitionTable.inc index 793475456..d85152d51 100644 --- a/plugins/admin/fai/class_faiPartitionTable.inc +++ b/plugins/admin/fai/class_faiPartitionTable.inc @@ -533,6 +533,9 @@ class faiPartitionTable extends plugin $ldap->cd($this->config->current['BASE']); $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $partition_dn)); $ldap->cd($partition_dn); + if (isset($partition_attrs['gosaUnitTag']) && !in_array_ics("gosaAdministrativeUnitTag",$partition_attrs['objectClass'])){ + $partition_attrs['objectClass'][]= "gosaAdministrativeUnitTag"; + } $ldap->add($partition_attrs); show_ldap_error($ldap->get_error(), _("Saving FAI partition table entry failed")); } -- 2.30.2