From: hickert Date: Mon, 2 Oct 2006 03:14:00 +0000 (+0000) Subject: Fixed winstation save X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0a0347e3d9eab002c5772c385b6ac016e260e0e4;p=gosa.git Fixed winstation save git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4840 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index afcd00212..0d570f50e 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -526,7 +526,7 @@ class termDNS extends plugin "plDepends" => array(), "plPriority" => 5, "plSection" => array("administration"), - "plCategory" => array("workstation","terminal","phone","server","component","printer"), + "plCategory" => array("workstation","terminal","phone","server","component","printer","winworkstation"), "plProvidedAcls"=> array( "ipHostNumber" => _("IP address"), diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc index 694765876..db058f581 100644 --- a/plugins/admin/systems/class_winGeneric.inc +++ b/plugins/admin/systems/class_winGeneric.inc @@ -62,6 +62,20 @@ class wingeneric extends plugin $this->orig_dn= $this->dn; } + + function set_acl_base($base) + { + plugin::set_acl_base($base); + $this->netConfigDNS->set_acl_base($base); + } + + function set_acl_category($cat) + { + plugin::set_acl_category($cat); + $this->netConfigDNS->set_acl_category($cat); + } + + function execute() { /* Call parent execute */ @@ -195,6 +209,10 @@ class wingeneric extends plugin $this->attrs= $attrs; } + if(($this->gosaUnitTag) && (!in_array_ics("gosaAdministrativeUnitTag",$this->attrs['objectClass']))){ + $this->attrs['objectClass'][] = "gosaAdministrativeUnitTag"; + } + /* Write back to ldap */ $ldap= $this->config->get_ldap_link(); if ($this->orig_dn == 'new'){ @@ -215,8 +233,9 @@ class wingeneric extends plugin $this->handle_post_events("modify"); } - $this->netConfigDNS->cn = $this->cn; - $this->netConfigDNS->save($this->dn); + # FIXME can't save mac address + #$this->netConfigDNS->cn = $this->cn; + #$this->netConfigDNS->save($this->dn); show_ldap_error($ldap->get_error(), sprintf(_("Saving of system wingeneric/generic with dn '%s' failed."),$this->dn)); /* Optionally execute a command after we're done */