From 57afa479a5d2853a640299de3d05d6ac41da0183 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 24 Feb 2010 14:46:24 +0000 Subject: [PATCH] Reaaded ogrup stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15697 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_systemManagement.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 5d8fc6977..770591e84 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -870,6 +870,15 @@ class systemManagement extends management msg_dialog::display(_("Internal error"), _("Cannot set mode to 'active'!"), ERROR_DIALOG); } + // Update object group membership + $og = new ogroup($this->config,$data['OG']); + if($og){ + $og->AddDelMembership($this->tabObject->dn); + $og->save(); + @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, + $og->dn, "Adding system to ogroup"); + } + // Set default system specific attributes foreach (array("workgeneric", "termgeneric") as $cls){ if (isset($this->tabObject->by_object[$cls])){ -- 2.30.2