From bad714adeceb56e92c97a4c9a14708274969c25e Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 17 Mar 2008 17:06:59 +0000 Subject: [PATCH] Removed old FAIstate stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9905 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/ogroups/goto/class_termgroup.inc | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc b/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc index 91acd6c97..852a3622c 100644 --- a/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc +++ b/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc @@ -134,44 +134,6 @@ class termgroup extends plugin } - function update_term_member_FAIstate($act) - { - /* Get required informations */ - $og = $this->parent->by_object['ogroup']; - $allobs = $og->objcache; - - /* Get correct value for FAIstate */ - $action = $this->mapActions[$act]; - - /* Get ldap connection */ - $ldap = $this->config->get_ldap_link(); - $ldap->cd ($this->config->current['BASE']); - - /* Foreach member of mthis ogroup ... */ - foreach($og->member as $key ){ - - /* check objectClasses and create attributes array */ - $attrs = array("FAIstate"=>$action); - for($i = 0; $i < $allobs[$key]['objectClass']['count'] ; $i ++){ - $attrs['objectClass'][] = $allobs[$key]['objectClass'][$i]; - } - if(($attrs['FAIstate'] != "") && (!in_array("FAIobject",$attrs['objectClass']))){ - $attrs['objectClass'][] = "FAIobject"; - } - if($attrs['FAIstate'] == ""){ - $attrs['FAIstate'] = array(); - } - - /* If this objects is workstation,terminal or server upodate FAIstate */ - if(preg_match("/(w|t|s)/i",$allobs[$key]['type'])){ - $ldap->cd ($key); - $ldap->modify($attrs); - if (!$ldap->success()){ - msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $key->dn, LDAP_MOD, get_class())); - } - } - } - } function execute() { -- 2.30.2