summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d077ee)
raw | patch | inline | side by side (parent: 7d077ee)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 Jun 2008 11:02:04 +0000 (11:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 Jun 2008 11:02:04 +0000 (11:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11294 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/setup/class_setupStep_Migrate.inc | patch | blob | history |
diff --git a/gosa-core/setup/class_setupStep_Migrate.inc b/gosa-core/setup/class_setupStep_Migrate.inc
index 5b55c7ce3e6a040798b5f97c6a0c3a86b0f3130f..e5679fd5b26e905b2a629988ea0a2f2c626c8a60 100644 (file)
/* Search for all groups */
$ldap->cd($cv['base']);
$ldap->search("(&(objectClass=gosaApplicationGroup)(objectClass=posixGroup)(FAIrelease=*))",
- array("gosaMemberApplication","gosaApplicationParameter","FAIrelease","objectClass"));
+ array("gosaMemberApplication","gosaApplicationParameter","FAIrelease","objectClass","gosaUnitTag"));
$appgroups = array();
/* Create readable prefix for "What will be done" infos
$current = "";
$after ="";
+ /* Get unit tag
+ */
+ $tag ="";
+ if(isset($info['gosaUnitTag'])){
+ $tag = $info['gosaUnitTag'][0];
+ }
+
/* Collect application parameter for this group
*/
$params= array();
$after .= $s_add."objectClass: top\n";
$after .= $s_add."objectClass: FAIbranch\n";
$after .= $s_add."objectClass: organizationalUnit\n";
+
+ /* Append UnitTag
+ */
+ if($tag != ""){
+ $after .= $s_add."objectClass: gosaAdministrativeUnitTag\n";
+ $after .= $s_add."gosaUnitTag: $tag\n";
+ }
$after .= $s_add."ou: $part\n";
/* Appen release data to ldap actions
*/
$d = array();
$d['objectClass'] = array("top","FAIbranch","organizationalUnit");
+ if(!empty($tag)){
+ $d['objectClass'][] = "gosaAdministrativeUnitTag";
+ $d['gosaUnitTag'] = $tag;
+ }
$d['ou'] = $part;
$data['ADD'][$release_dn]= $d;
}
if(isset($info['FAIrelease'])){
$d['FAIrelease'] = array();
}
+
$d['objectClass'] = array_remove_entries(array("gosaApplicationGroup","FAIreleaseTag"),$info['objectClass']);
$data['MODIFY'][$info['dn']] = $d;
$after .= "\n";
$after .= $s_add."dn: $location_dn$release_dn\n";
$after .= $s_add."objectClass: gotoSubmenuEntry\n";
- $after .= $s_add."cn: $location\n";
+ /* Append UnitTag
+ */
+ if($tag != ""){
+ $after .= $s_add."objectClass: gosaAdministrativeUnitTag\n";
+ $after .= $s_add."gosaUnitTag: $tag\n";
+ }
+ $after .= $s_add."cn: $location\n";
+
+ /* Create ldap entry to append
+ */
$d = array();
$d['cn'] = $location;
$d['objectClass'] = array("gotoSubmenuEntry");
+ if(!empty($tag)){
+ $d['objectClass'][] = "gosaAdministrativeUnitTag";
+ $d['gosaUnitTag'] = $tag;
+ }
$data['ADD'][$location_dn.$release_dn] = $d;
}
-
/* Append missing menu entry to "What is done info"
*/
if(empty($name)){
$after .= "\n";
$after .= $s_add."dn: cn=$name,$location_dn$release_dn\n";
$after .= $s_add."objectClass: gotoMenuEntry\n";
+ if($tag != ""){
+ $after .= $s_add."objectClass: gosaAdministrativeUnitTag\n";
+ $after .= $s_add."gosaUnitTag: $tag\n";
+ }
$after .= $s_add."cn: $name\n";
$after .= $s_add."gosaApplicationPriority: $priority\n";
+ /* Create ldap entry
+ */
$d= array();
$d['objectClass'] = array("gotoMenuEntry");
+ if(!empty($tag)){
+ $d['objectClass'][] = "gosaAdministrativeUnitTag";
+ $d['gosaUnitTag'] = $tag;
+ }
$d['cn'] = $name;
$d['gosaApplicationPriority'] = $priority;
}
}
}
+ $this->check_menus();
}
}