summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5dc9785)
raw | patch | inline | side by side (parent: 5dc9785)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Jun 2009 13:47:44 +0000 (13:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Jun 2009 13:47:44 +0000 (13:47 +0000) |
-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
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 | patch | blob | history |
diff --git a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc
index a6c426739c69d561f2768012fb26772c74add0e5..ca4c9074f568a6049d3f036794740bd61d5c69a5 100644 (file)
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;
$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()));