summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3767e4d)
raw | patch | inline | side by side (parent: 3767e4d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 May 2006 06:12:02 +0000 (06:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 May 2006 06:12:02 +0000 (06:12 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3495 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_workstationGeneric.inc | patch | blob | history | |
plugins/admin/systems/class_workstationStartup.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc
index 976d182ccf1d302242d0b562b152433d50aee5ae..dad2c0e87ed5163b094699ccf47491b321665b99 100644 (file)
/* Update ntp server settings */
if($this->inheritTimeServer){
- $this->attrs['gotoNtpServer'] = array();
+ if($this->new){
+ if(isset($this->attrs['gotoNtpServer'])){
+ unset($this->attrs['gotoNtpServer']);
+ }
+ }else{
+ $this->attrs['gotoNtpServer'] = array();
+ }
}else{
/* Set ntpServers */
$this->attrs['gotoNtpServer'] = array();
$ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
$ldap->cd($this->dn);
$ldap->add($this->attrs);
+ show_ldap_error($ldap->get_error(), _("Saving workstation failed"));
if(!$this->didAction){
$this->handle_post_events("add");
}
}
$ldap->cd($this->dn);
$this->cleanup();
- $this->attrs['gosaUnitTag']= array();
+// $this->attrs['gosaUnitTag']= array();
$ldap->modify ($this->attrs);
if(!$this->didAction){
diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc
index 5218b8bbb4d761df91bc1f76e6c47664f481c038..f33fcae8f012307850614a0158dbb820a67efdbd 100644 (file)
/* Generic terminal attributes */
var $bootmode = "G";
var $goLdapServerList = array();
- var $gotoBootKernel = "";
+ var $gotoBootKernel = "default";
var $gotoKernelParameters = "";
- var $gotoLdapServer = "";
+ var $gotoLdapServer = "default";
var $gotoModules = array();
var $gotoAutoFs = array();
var $gotoFilesystem = array();
if ($this->attrs['gotoLdapServer'] == "default"){
$this->attrs['gotoLdapServer']= array();
}
+
if ($this->attrs['gotoBootKernel'] == "%default%" || $this->attrs['gotoBootKernel'] == "default"){
$this->attrs['gotoBootKernel']= array();
}