summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb0c51c)
raw | patch | inline | side by side (parent: cb0c51c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Mar 2008 17:06:59 +0000 (17:06 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Mar 2008 17:06:59 +0000 (17:06 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9905 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc b/gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc
index 91acd6c97702060de9693cfe3cec2609e305e56e..852a3622c19653c97e411ca2a08d721ce8bd615e 100644 (file)
}
- 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()
{