From: cajus Date: Fri, 22 Jul 2005 10:20:20 +0000 (+0000) Subject: Fixed problems with removed applications, that don't remove themselves from group... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0c8f0813c0f0e18e3cd99f023c8cef94d1b0782e;p=gosa.git Fixed problems with removed applications, that don't remove themselves from group assignements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@998 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/Changelog b/Changelog index 579171152..3eea26c36 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,18 @@ GOsa2 changelog =============== + +* gosa 2.4beta3 + - Fixed application removal + - Improved accessibility for disabled persons + - Added intranet account to list of connectivity plugins + - Several kolab related fixes for server objects + - Corrected contributed slapd.conf + - Fixed kolab mode where GOsa saves KB quotas, interprets quotas as kolab MB + - Increased robustnes for non set fields + - Fixed IE issues with W3C compatibilty where IE posts disabled fields + - Fixed problems with existing samba accounts and password changed fields + - Removed login problems with undefined ldap_conf variable + * gosa 2.4beta2 - Fixed error handler to be PHP 4.x compatible - Fixed PHP compatibility problem in setup.php, using ini_get() diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index 27cf79eb1..8ef8bb24e 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -98,6 +98,7 @@ class application extends plugin return($smarty->fetch (get_template_path('generic.tpl', TRUE))); } + function remove_from_parent() { $ldap= $this->config->get_ldap_link(); @@ -114,6 +115,12 @@ class application extends plugin unset($og->member[$this->dn]); $og->save (); } + $ldap->search ("(&(objectClass=posixGroup)(gosaMemberApplication=".$this->cn."))", array("cn")); + while ($attrs= $ldap->fetch()){ + $ag= new appgroup($this->config, $ldap->getDN()); + $ag->removeApp($this->cn); + $ag->save (); + } }