summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 11e0877)
raw | patch | inline | side by side (parent: 11e0877)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Sep 2008 09:18:39 +0000 (09:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Sep 2008 09:18:39 +0000 (09:18 +0000) |
-Ensure that a profile name is only used by profiles.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12320 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12320 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 417b1fd77c9add9f52189df7c70579b55f3fb9c7..6f99ab6de56efe05ff0a00e3934949d5d088310c 100644 (file)
static function check_class_name($oc,$name,$dn)
{
$base = FAI::get_release_dn($dn);
- $res = FAI::get_all_objects_for_given_base($base,"(objectClass=".$oc.")",TRUE);
+
+ if($oc == "FAIprofile"){
+ $f = "";
+ $ocs = array("FAItemplate","FAIhook","FAIpartitionTable","FAIpackageList","FAIscript","FAIvariable");
+ foreach($ocs as $oc){
+ $f .= "(objectClass=".$oc.")";
+ }
+ $res = FAI::get_all_objects_for_given_base($base,"(|".$f.")",TRUE);
+ }else{
+ $res = FAI::get_all_objects_for_given_base($base,"(objectClass=".$oc.")",TRUE);
+ }
$delete = array();
$used = array();
foreach($res as $object){