Code

Updated winstation dns/dhcp handling, user uid instead of cn
[gosa.git] / plugins / admin / systems / class_winGeneric.inc
index 9867125230c21e5d9e244731cab17449bf1352fa..0f927711abfd44975ed514f1608ad78a978293c0 100644 (file)
@@ -44,7 +44,7 @@ class wingeneric extends plugin
   function wingeneric ($config, $dn= NULL, $parent= NULL)
   {
     plugin::plugin ($config, $dn, $parent);
-    $this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses);
+    $this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses,FALSE,'uid');
     $this->netConfigDNS->acl = $this->acl;
     $this->netConfigDNS->MACisMust = FALSE;
 
@@ -115,7 +115,7 @@ class wingeneric extends plugin
     }
     
     $smarty->assign("base_select", $this->base);
-    $this->netConfigDNS->cn= $this->cn;
+    $this->netConfigDNS->cn= $this->uid;
     $smarty->assign("netconfig", $this->netConfigDNS->execute());
 
     /* Display sub dialog from network settings */
@@ -236,7 +236,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($this->dn);
     show_ldap_error($ldap->get_error(), _("Saving Samba workstation failed"));