From e5de54d187d921c0d58793cc47a47fe563bf3b2f Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 19 Jun 2009 13:47:44 +0000 Subject: [PATCH] Updated the wingeneric class -Use uid instead of cn for network handling, dns/dhcp git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13746 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc index a6c426739..ca4c9074f 100644 --- a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc +++ b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc @@ -48,7 +48,8 @@ class wingeneric extends plugin function wingeneric (&$config, $dn= NULL, $parent= NULL) { plugin::plugin ($config, $dn, $parent); - $this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses); + $this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses,FALSE,"uid"); + $this->netConfigDNS->cn = preg_replace("/\\\$\$/","",$this->uid); $this->netConfigDNS->objectclasses=array("ipHost","ieee802Device"); $this->netConfigDNS->MACisMust = FALSE; $this->netConfigDNS->IPisMust = FALSE; @@ -286,7 +287,7 @@ class wingeneric extends plugin $this->handle_post_events("modify"); } - $this->netConfigDNS->cn = preg_replace("/\\\$\$/","",$this->cn); + $this->netConfigDNS->cn = preg_replace("/\\\$\$/","",$this->uid); $this->netConfigDNS->save(); if (!$ldap->success()){ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class())); -- 2.30.2