Code

Added check if workstation is currently installing
[gosa.git] / gosa-plugins / goto / admin / systems / goto / class_workstationGeneric.inc
1 <?php
3 class workgeneric extends plugin
4 {
5   /* Generic terminal attributes */
6   var $gotoMode= "locked";
7   var $gotoSyslogServer= "";
8   var $gotoSyslogServers= array();
9   var $gotoNtpServer= array();
10   var $gotoNtpServers= array();
11   var $gotoSndModule= "";
12   var $gotoFloppyEnable= "";
13   var $gotoCdromEnable= "";
14   var $description= "";
15   var $ghCpuType= "-";
16   var $ghMemSize= "-";
17   var $ghUsbSupport= "-";
18   var $ghNetNic= array();
19   var $ghIdeDev= array();
20   var $ghScsiDev= array();
21   var $ghGfxAdapter= "-";
22   var $ghSoundAdapter= "-";
23   var $gotoLastUser= "-";
24   var $FAIscript= "";
25   var $view_logged = FALSE;
27   /* Needed values and lists */
28   var $base= "";
29   var $cn= "";
30   var $l= "";
31   var $orig_dn= "";
33   /* Plugin side filled */
34   var $modes= array();
36   var $netConfigDNS;
38   var $inheritTimeServer = true;
40   /* attribute list for save action */
41   var $ignore_account= TRUE;
42   var $attributes= array("gotoMode", "gotoSyslogServer", "gotoNtpServer",
43       "gotoFloppyEnable", "gotoCdromEnable", "cn", "gotoSndModule",
44       "ghCpuType", "ghMemSize", "ghUsbSupport", "description",
45       "ghGfxAdapter", "ghSoundAdapter", "gotoLastUser", "l","FAIscript");
46   var $objectclasses= array("top", "gotoWorkstation", "GOhard");
48   var $validActions   = array("reboot" => "", "localboot" => "", "halt" => "", "update" => "", "reinstall" => "",
49                             "rescan" => "", "wake" => "", "memcheck" => "", "sysinfo" => "");
50   
51   var $fai_activated = FALSE;
53   var $member_of_ogroup = FALSE;
55   var $currently_installing = FALSE;
56   var $currently_installing_warned = FALSE;
58   function workgeneric (&$config, $dn= NULL, $parent= NULL)
59   {
60     $tmp= $config->search("faiManagement", "CLASS",array('menu','tabs'));
61     if(!empty($tmp)){
62       $this->fai_activated = TRUE;
63     }
65     plugin::plugin ($config, $dn, $parent);
67     if(!isset($this->parent->by_object['ogroup'])){
68       $ldap = $this->config->get_ldap_link();
69       $ldap->cd ($this->config->current['BASE']);
70       $ldap->search("(&(objectClass=gotoWorkstationTemplate)(member=".LDAP::prepare4filter($this->dn)."))",array("cn"));
71       $this->member_of_ogroup = $ldap->count() >= 1;
72     }
74     $this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses);
76     /* Check if this host is currently in installation process*/
77     $o = new gosaSupportDaemon();
78     $e_types = DaemonEvent::get_event_types(USER_EVENT | SYSTEM_EVENT | HIDDEN_EVENT);
79     $evts = $o->get_entries_by_mac(array($this->netConfigDNS->macAddress));
80     foreach($evts as $evt){
81       if(isset($e_types['QUEUED'][$evt['HEADERTAG']]) &&
82           $e_types['QUEUED'][$evt['HEADERTAG']] == "DaemonEvent_reinstall"){
83         $this->currently_installing =TRUE;
84       }
85     }
87     /* Read arrays */
88     foreach (array("ghNetNic", "ghIdeDev", "ghScsiDev") as $val){
89       if (!isset($this->attrs[$val])){
90         continue;
91       }
92       for ($i= 0; $i<$this->attrs[$val]['count']; $i++){
93         array_push($this->$val, $this->attrs[$val][$i]);
94       }
95     }
97     /* Create used ntp server array */
98     $this->gotoNtpServer= array();
99     if(isset($this->attrs['gotoNtpServer'])){
100       $this->inheritTimeServer = false;
101       unset($this->attrs['gotoNtpServer']['count']);
102       foreach($this->attrs['gotoNtpServer'] as $server){
103         $this->gotoNtpServer[$server] = $server;
104       }
105     }
107     /* Set inherit checkbox state */
108     if((in_array("default",$this->gotoNtpServer)) || (count($this->gotoNtpServer) == 0)){
109       $this->inheritTimeServer = true;
110       $this->gotoNtpServer=array();
111     }
113     /* You can't inherit the NTP service, if we are not member in an object group */
114     if(!$this->member_of_ogroup){
115       $this->inheritTimeServer = FALSE;
116     }
118     /* Create available ntp options */
119     $tmp = $this->config->data['SERVERS']['NTP'];
120     $this->gotoNtpServers = array();
121     foreach($tmp as $key => $server){
122       if($server == "default") continue;
123       $this->gotoNtpServers[$server] = $server;
124     }
126     $this->modes["active"]= _("Activated");
127     $this->modes["locked"]= _("Locked");
129     /* Set base */
130     if ($this->dn == "new"){
131       $ui= get_userinfo();
132       $this->base= dn2base($ui->dn);
133     } else {
134       $this->base= preg_replace ("/^[^,]+,[^,]+,[^,]+,/", "", $this->dn);
135     }
137     /* Create an array of all Syslog servers */
138     $tmp = $this->config->data['SERVERS']['SYSLOG'];
139     foreach($tmp as $server){
140       $visible = $server;
141       if($server == "default" && $this->member_of_ogroup) {
142         $visible = "["._("inherited")."]";
143       }
144       $this->gotoSyslogServers[$server] = $visible;
145     }
147     /* Save 'dn' for later referal */
148     $this->orig_dn= $this->dn;
149   }
152   function set_acl_base($base)
153   {
154     plugin::set_acl_base($base);
155     $this->netConfigDNS->set_acl_base($base);
156   }
158   function set_acl_category($cat)
159   {
160     plugin::set_acl_category($cat);
161     $this->netConfigDNS->set_acl_category($cat);
162   }
164   function execute()
165   {
166     /* Call parent execute */
167     plugin::execute();
169     if($this->is_account && !$this->view_logged){
170       $this->view_logged = TRUE;
171       new log("view","workstation/".get_class($this),$this->dn);
172     }
174     /* Do we need to flip is_account state? */
175     if(isset($_POST['modify_state'])){
176       if($this->is_account && $this->acl_is_removeable()){
177         $this->is_account= FALSE;
178       }elseif(!$this->is_account && $this->acl_is_createable()){
179         $this->is_account= TRUE;
180       }
181     }
183     if ((isset($_POST['action'])) && ($this->acl_is_writeable("FAIstate")) && isset($this->validActions[$_POST['saction']]) ){
184       $action= $_POST['saction'];
186       /* Check if we have an DaemonEvent for this action */ 
187       if(class_available("DaemonEvent")){
188         $events = DaemonEvent::get_event_types(SYSTEM_EVENT | HIDDEN_EVENT);
189         if(isset($events['TRIGGERED']["DaemonEvent_".$action])){
190           $evt = $events['TRIGGERED']["DaemonEvent_".$action];
191           $tmp = new $evt['CLASS_NAME']($this->config);
192           $tmp->add_targets(array($this->netConfigDNS->macAddress));
193           $tmp->set_type(TRIGGERED_EVENT);
194           $o_queue = new gosaSupportDaemon();
195           if(!$o_queue->append($tmp)){
196             msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."),
197                   $o_queue->get_error()),ERROR_DIALOG);
198           }
199         }
200       } else {
201         msg_dialog::display(_("Event error"),
202                     sprintf(_("Event '%s' is not available!"),$action),ERROR_DIALOG);
203       }
206     }
208     /* Do we represent a valid terminal? */
209     if (!$this->is_account && $this->parent === NULL){
210       $display= "<img alt=\"\" src=\"images/stop.png\" align=middle>&nbsp;<b>".
211         _("This 'dn' has no workstation features.")."</b>";
212       return($display);
213     }
215     /* Base select dialog */
216     $once = true;
217     foreach($_POST as $name => $value){
218       if(preg_match("/^chooseBase/",$name) && $once && $this->acl_is_writeable("base")){
219         $once = false;
220         $this->dialog = new baseSelectDialog($this->config,$this,$this->get_allowed_bases());
221         $this->dialog->setCurrentBase($this->base);
222       }
223     }
225     /* Dialog handling */
226     if(is_object($this->dialog)){
227       /* Must be called before save_object */
228       $this->dialog->save_object();
230       if($this->dialog->isClosed()){
231         $this->dialog = false;
232       }elseif($this->dialog->isSelected()){
234         /* A new base was selected, check if it is a valid one */
235         $tmp = $this->get_allowed_bases();
236         if(isset($tmp[$this->dialog->isSelected()])){
237           $this->base = $this->dialog->isSelected();
238         }
240         $this->dialog= false;
241       }else{
242         return($this->dialog->execute());
243       }
244     }
246     /* Add new ntp Server to our list */ 
247     if((isset($_POST['addNtpServer'])) && (isset($_POST['gotoNtpServers'])) && $this->acl_is_writeable("gotoNtpServer")){
248       $this->gotoNtpServer[$_POST['gotoNtpServers']] = $_POST['gotoNtpServers'];
249     }
251     /* Delete selected NtpServer for list of used servers  */
252     if((isset($_POST['delNtpServer'])) && (isset($_POST['gotoNtpServerSelected'])) && $this->acl_is_writeable("gotoNtpServer")){
253       foreach($_POST['gotoNtpServerSelected'] as $name){
254         unset($this->gotoNtpServer[$name]);
255       }
256     }
258     /* Fill templating stuff */
259     $smarty= get_smarty();
261     /* Set acls */
262     $tmp = $this->plInfo();
263     foreach($tmp['plProvidedAcls'] as $name => $translation){
264       $smarty->assign($name."ACL",$this->getacl($name));
265     }
267     $smarty->assign("cn", $this->cn);
268     $smarty->assign("description", $this->description);
269     $smarty->assign("l", $this->l);
270     $smarty->assign("bases", $this->get_allowed_bases());
271     $smarty->assign("staticAddress", "");
273     $tmp = array();
274     foreach($this->gotoNtpServers as $server){
275       if(!in_array($server,$this->gotoNtpServer)){
276         $tmp[$server] = $server;
277       }
278     }
279     $smarty->assign("gotoNtpServers",$tmp);
280         
281     /* Check if workstation is online */
282     if (gosaSupportDaemon::ping($this->netConfigDNS->macAddress)){
283       $smarty->assign("actions", array("halt" => _("Switch off"), "reboot" => _("Reboot"),
284                                        "update" => _("System update"),
285                                        "reinstall" => _("Reinstall"),
286                                        "rescan" => _("Rescan hardware"),
287                                        "memcheck" => _("Memory test"),
288                                        "localboot" => _("Force localboot"),
289                                        "sysinfo"  => _("System analysis")));
290     } else {
291       $smarty->assign("actions", array("wake" => _("Wake up"),
292                                        "reinstall" => _("Reinstall"),
293                                        "update" => _("System update"),
294                                        "memcheck" => _("Memory test"),
295                                        "localboot" => _("Force localboot"),
296                                        "sysinfo"  => _("System analysis")));
297     }
298     /* Arrays */
299     $smarty->assign("modes", $this->modes);
300     $smarty->assign("nfsservers", $this->config->data['SERVERS']['NFS']);
301     $smarty->assign("syslogservers", $this->gotoSyslogServers);
302     $smarty->assign("fai_activated",$this->fai_activated);
304     $ntpser = array();
305     foreach($this->gotoNtpServers as $server){
306       if(!in_array($server,$this->gotoNtpServer)){
307         $ntpser[$server] = $server;
308       }
309     }
310     $smarty->assign("gotoNtpServers", $ntpser);
312     /* Variables */
313     foreach(array("base", "gotoMode", "gotoSyslogServer", "gotoNtpServer") as $val){
314       $smarty->assign($val."_select", $this->$val);
315     }
317     /* tell smarty the inherit checkbox state */
318     $smarty->assign("inheritTimeServer",$this->inheritTimeServer);
319     $smarty->assign("member_of_ogroup",$this->member_of_ogroup);
321     $str = $this->netConfigDNS->execute();
322     if(is_object($this->netConfigDNS->dialog)){
323       return($str);
324     }
325     $smarty->assign("netconfig", $str);
327     /* Show main page */
328     $smarty->assign("currently_installing", $this->currently_installing);
329     return($smarty->fetch (get_template_path('workstation.tpl', TRUE, dirname(__FILE__))));
330   }
332   function remove_from_parent()
333   {
334     if($this->acl_is_removeable()){
336       $this->netConfigDNS->remove_from_parent();
337       $ldap= $this->config->get_ldap_link();
338       $ldap->rmdir($this->dn);
339       new log("remove","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
340       if (!$ldap->success()){
341         msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_DEL, get_class()));
342       }
344       /* Optionally execute a command after we're done */
345       $this->handle_post_events("remove", array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
347       /* Delete references to object groups */
348       $ldap->cd ($this->config->current['BASE']);
349       $ldap->search ("(&(objectClass=gosaGroupOfNames)(member=".LDAP::prepare4filter($this->dn)."))", array("cn"));
350       while ($ldap->fetch()){
351         $og= new ogroup($this->config, $ldap->getDN());
352         unset($og->member[$this->dn]);
353         $og->save ();
354       }
355     }
357     /* Clean queue form entries with this mac 
358      */
359     if(class_available("gosaSupportDaemon") && tests::is_mac($this->netConfigDNS->orig_macAddress)){
360       $q = new gosaSupportDaemon();
361       $q->clean_queue_from_mac($this->netConfigDNS->orig_macAddress);
362     }
364     if(isset($_POST["inheritAll"])){
365       $this->set_everything_to_inherited();
366     }
367   }
370   /* Save data to object */
371   function save_object()
372   {
374     /* Create a base backup and reset the
375        base directly after calling plugin::save_object();
376        Base will be set seperatly a few lines below */
377     $base_tmp = $this->base;
378     plugin::save_object();
379     $this->base = $base_tmp;
381     /* Save base, since this is no LDAP attribute */
382     $tmp = $this->get_allowed_bases();
383     if(isset($_POST['base'])){
384       if(isset($tmp[$_POST['base']])){
385         $this->base= $_POST['base'];
386       }
387     }
389     $this->netConfigDNS->save_object();
391     /* Set inherit mode */
392     if((isset($_POST['workgeneric_posted'])) && ($this->acl_is_writeable("gotoNtpServer"))){
393       if(isset($_POST["inheritTimeServer"]) && $this->member_of_ogroup){
394         $this->inheritTimeServer = true;
395       }else{
396         $this->inheritTimeServer = false;
397       }
398     }
399     
400     if(isset($_POST["inheritAll"])){
401       $this->set_everything_to_inherited();
402     }
403   }
406   /* Check supplied data */
407   function check()
408   {
409     /* Call common method to give check the hook */
410     $message= plugin::check();
411   
412     /* Skip IP & Mac checks if this is a template */
413     if($this->cn != "wdefault"){
414       $message= array_merge($message, $this->netConfigDNS->check());
415     }
417     $this->dn= "cn=".$this->cn.",".get_ou('workstationou').$this->base;
419     if ($this->cn == ""){
420       $message[]= _("The required field 'Workstation name' is not set.");
421     }
423     /* Check if given name is a valid host/dns name */
424     if(!tests::is_dns_name($this->cn)){
425       $message[] = _("Please specify a valid name for this object.");
426     }
428     if ($this->orig_dn != $this->dn){
429       $ldap= $this->config->get_ldap_link();
430       $ldap->cd ($this->base);
432       if($this->cn == "wdefault"){
433         $ldap->cat($this->dn);
434       }else{
435         $ldap->search ("(&(cn=".$this->cn.")(objectClass=gotoWorkstation))", array("cn"));
436       }
437       if ($ldap->count() != 0){
438         while ($attrs= $ldap->fetch()){
439           if (preg_match("/cn=dhcp,/",$attrs['dn']) || preg_match ("/,".get_ou('incomingou')."/", $ldap->getDN())){
440             continue;
441           } else {
442             if ($attrs['dn'] != $this->orig_dn){
443               $message[]= sprintf (_("There is already an entry '%s' in the base choosen by you"), $this->cn);
444               break;
445             }
446           }
447         }
448       }
449     }
451     /* Check for valid ntpServer selection */
452     if((!$this->inheritTimeServer) && (!count($this->gotoNtpServer))){
453       $message[]= _("There must be at least one NTP server selected, or the inherit mode activated.");
454     }
456     /* Warn the user, that this host is currently installing */
457     if($this->currently_installing && !$this->currently_installing_warned){
458       $this->currently_installing_warned = TRUE;
459       $message[] = _("This host is currently installing, if you really want to save it, save again.");
460     }
462     return ($message);
463   }
466   /* Save to LDAP */
467   function save()
468   {
469     /* Detect mode changes */
470     $activate= (isset($this->saved_attributes['gotoMode']) &&
471         $this->gotoMode != $this->saved_attributes['gotoMode'] &&
472         $this->gotoMode == "active" &&
473         tests::is_ip($this->netConfigDNS->ipHostNumber));
474     plugin::save();
476     /* Strip out 'default' values */
477     foreach (array("gotoSyslogServer") as $val){
479       if (isset($this->attrs[$val]) && $this->attrs[$val] == "default"){
480         $this->attrs[$val]= array();
481       }
482     }
484     /* Add missing arrays */
485     foreach (array("ghScsiDev", "ghIdeDev", "ghNetNic") as $val){
486       if (isset ($this->$val) && count ($this->$val) != 0){
487         $this->attrs["$val"]= $this->$val;
488       }
489     }
491     /* Remove all empty values */
492     if ($this->orig_dn == 'new'){
493       $attrs= array();
494       foreach ($this->attrs as $key => $val){
495         if (is_array($val) && count($val) == 0){
496           continue;
497         }
498         $attrs[$key]= $val;
499       }
500       $this->attrs= $attrs;
501     }
503     /* Update ntp server settings */
504     if($this->inheritTimeServer){
505       if($this->is_new){
506         if(isset($this->attrs['gotoNtpServer'])){
507           unset($this->attrs['gotoNtpServer']);
508         }
509       }else{
510         $this->attrs['gotoNtpServer'] = array();
511       }
512     }else{
513       /* Set ntpServers */
514       $this->attrs['gotoNtpServer'] = array();
515       foreach($this->gotoNtpServer as $server){
516         $this->attrs['gotoNtpServer'][] = $server;
517       }
518     }
520     /* Write back to ldap */
521     $ldap= $this->config->get_ldap_link();
522     if ($this->orig_dn == 'new'){
523       $ldap->cd($this->config->current['BASE']);
524       $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
525       $ldap->cd($this->dn);
526       $ldap->add($this->attrs);
527       new log("create","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
528       if (!$ldap->success()){
529         msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
530       }
531       $this->handle_post_events("add",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
532     } else {
533       if ($this->orig_dn != $this->dn){
534         $this->move($this->orig_dn, $this->dn);
535       }
536       $ldap->cd($this->dn);
537       $this->cleanup();
538       $ldap->modify ($this->attrs); 
539       if (!$ldap->success()){
540         msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, get_class()));
541       }
542       new log("modify","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
544       $this->handle_post_events("modify",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
545     }
547     /* cn=default and macAddress=- indicates that this is a template */
548     if($this->cn == "wdefault"){
549       $this->netConfigDNS->macAddress = "-";
550     }
552     $this->netConfigDNS->cn = $this->cn;
553     $this->netConfigDNS->save();
555     if ($activate && class_available("DaemonEvent")){
557       /* Send installation activation
558        */
559       $events = DaemonEvent::get_event_types(SYSTEM_EVENT | HIDDEN_EVENT);
560       $o_queue = new gosaSupportDaemon();
561       if(isset($events['TRIGGERED']['DaemonEvent_installation_activation'])){
562         $evt = $events['TRIGGERED']['DaemonEvent_installation_activation'];
563         $tmp = new $evt['CLASS_NAME']($this->config);
564         $tmp->set_type(TRIGGERED_EVENT);
565         $tmp->add_targets(array($this->netConfigDNS->macAddress));
566         if(!$o_queue->append($tmp)){
567           msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."),
568                 $o_queue->get_error()),ERROR_DIALOG);
569         }
570       }
571     }
572   }
575   /* Display generic part for server copy & paste */
576   function getCopyDialog()
577   {
578     $vars = array("cn");
579     $smarty = get_smarty();
580     $smarty->assign("cn" ,$this->cn);
581     $smarty->assign("object","workstation");
582     $str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE));
583     $ret = array();
584     $ret['string'] = $str;
585     $ret['status'] = "";
586     return($ret);
587   }
590   function saveCopyDialog()
591   {
592     if(isset($_POST['cn'])){
593       $this->cn = $_POST['cn'];
594     }
595   }
598   function PrepareForCopyPaste($source)
599   {
600     plugin::PrepareForCopyPaste($source);
601     if(isset($source['macAddress'][0])){
602       $this->netConfigDNS->macAddress = $source['macAddress'][0];
603     }
604     if(isset($source['ipHostNumber'][0])){
605       $this->netConfigDNS->ipHostNumber = $source['ipHostNumber'][0];
606     }
608     /* Create used ntp server array */
609     $this->gotoNtpServer= array();
610     if(isset($source['gotoNtpServer'])){
611       $this->inheritTimeServer = false;
612       unset($source['gotoNtpServer']['count']);
613       foreach($source['gotoNtpServer'] as $server){
614         $this->gotoNtpServer[$server] = $server;
615       }
616     }
618     /* Set inherit checkbox state */
619     if((in_array("default",$this->gotoNtpServer)) || (count($this->gotoNtpServer)==0)){
620       $this->inheritTimeServer = true;
621       $this->gotoNtpServer=array();
622     }
623   }
626   /* Return plugin informations for acl handling 
627       #FIXME FAIscript seams to ununsed within this class... */ 
628   static function plInfo()
629   {
630     return (array(  
631           "plShortName"   => _("Generic"),
632           "plDescription" => _("Workstation generic"),
633           "plSelfModify"  => FALSE,
634           "plDepends"     => array(),
635           "plPriority"    => 0,
636           "plSection"     => array("administration"),
637           "plCategory"    => array("workstation" => array("description"  => _("Workstation"),
638                                                           "objectClass"  => "gotoWorkstation")),
639           "plProvidedAcls"=> array(
640             "cn"                  => _("Workstation name"),
641             "description"         => _("Description") ,
642             "l"                   => _("Location") ,
643             "base"                => _("Base") ,
644             "gotoMode"            => _("Goto mode"), 
645             "gotoSyslogServer"    => _("Syslog server"), 
646             "gotoNtpServer"       => _("Ntp server"), 
647             "gotoRootPasswd"      => _("Root password"),
648             "FAIstate"            => _("Action flag"))
649           ));
650   }
652   function set_everything_to_inherited()
653   {
654     $this->gotoSyslogServer  = "default";
655     $this->inheritTimeServer = TRUE;
657     /* Set workstation service attributes to inherited */
658     if($this->member_of_ogroup && isset($this->parent->by_object['workservice'])){
659       foreach(array("gotoXKbLayout","gotoXKbModel","gotoXKbVariant",
660             "gotoXResolution","gotoXColordepth","gotoXMouseType","gotoXMouseport") as $name){
661         $this->parent->by_object['workservice']->$name = "default"; 
662       }
663     }
665     /* Set workstation startup attributes to inherited */
666     if($this->member_of_ogroup && isset($this->parent->by_object['workstartup'])){
667       $this->parent->by_object['workstartup']->gotoBootKernel = "default-inherited";
668       $this->parent->by_object['workstartup']->gotoLdapServer = "default-inherited";
669       $this->parent->by_object['workstartup']->FAIdebianMirror= "inherited";
670     }
671   }
673   // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
674 ?>