index 6b9eb6d7a7e4b37f51ee2189a6661c0ffed3ff20..3d9a69b5603c6b336972758f9925f25318a577a9 100644 (file)
class termgroup extends plugin
{
/* attribute list for save action */
- var $attributes= array("gotoMode","gotoSyslogServer", "gotoNtpServer");
- var $objectclasses= array("gotoWorkstationTemplate");
-
var $members= array();
var $gotoMode = "locked";
var $is_account = true;
var $orig_dn = "";
var $didAction = FALSE;
- var $mapActions = array("reboot" => "",
- "instant_update" => "softupdate",
- "update" => "sceduledupdate",
- "reinstall" => "install",
- "rescan" => "",
- "memcheck" => "memcheck",
- "sysinfo" => "sysinfo");
-
var $mapActions = array("reboot" => "localboot",
"instant_update" => "softupdate",
"update" => "sceduledupdate",
"memcheck" => "memcheck",
"sysinfo" => "sysinfo");
- function termgroup ($config, $dn= NULL)
+ var $attributes = array("gotoMode","gotoSyslogServer", "gotoNtpServer");
+ var $objectclasses = array("gotoWorkstationTemplate");
+ var $CopyPasteVars = array("gotoNtpServers","modes","inheritTimeServer","members");
+
+ function termgroup ($config, $dn= NULL, $parent= NULL)
{
/***************
Some initialisations
***************/
- plugin::plugin($config, $dn);
+ plugin::plugin($config, $dn, $parent);
$ldap= $config->get_ldap_link();
/* Call common method to give check the hook */
$message= plugin::check();
- if ($this->acl_is_createable() && $this->dn == "new"){
+ if (!$this->acl_is_createable() && $this->dn == "new"){
$message[]= _("You have no permissions to create a workstation on this 'Base'.");
}
{
/* Get required informations */
$og = $this->parent->by_object['ogroup'];
- $allobs = $og->allobjects;
+ $allobs = $og->objcache;
/* Get correct value for FAIstate */
$action = $this->mapActions[$act];
$ldap->cd ($this->config->current['BASE']);
/* Foreach member of mthis ogroup ... */
- foreach($og->mem as $key ){
+ foreach($og->member as $key ){
/* check objectClasses and create attributes array */
$attrs = array("FAIstate"=>$action);
"plDescription" => _("System group"),
"plSelfModify" => FALSE,
"plDepends" => array(),
- "plPriority" => 0,
+ "plPriority" => 5,
"plSection" => array("administration"),
"plCategory" => array("ogroups"),
"plProvidedAcls"=> array(