diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc
index 9867125230c21e5d9e244731cab17449bf1352fa..0f927711abfd44975ed514f1608ad78a978293c0 100644 (file)
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;
}
$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 */
$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"));