From 770058cc45dba20f7f74165f1514553faf531e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Bernigaud?= Date: Fri, 19 Jul 2013 10:38:21 +0200 Subject: [PATCH] Fixes: #2574 when saving a windows workstations the uid is not stored --- samba/admin/systems/samba/class_winstationGeneric.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samba/admin/systems/samba/class_winstationGeneric.inc b/samba/admin/systems/samba/class_winstationGeneric.inc index ced5852..acf1585 100644 --- a/samba/admin/systems/samba/class_winstationGeneric.inc +++ b/samba/admin/systems/samba/class_winstationGeneric.inc @@ -179,7 +179,7 @@ class winstationGeneric extends simplePlugin function save_object() { parent::save_object(); - $this->uid = $this->cn; + $this->attributesAccess['uid']->setValue($this->attributesAccess['cn']->getValue()); } function resetCopyInfos() @@ -225,7 +225,7 @@ class winstationGeneric extends simplePlugin function prepare_save() { - $this->uid = $this->cn; + $this->attributesAccess['uid']->setValue($this->attributesAccess['cn']->getValue()); parent::prepare_save(); //verify that the $this->sambaSID exist and that it is correct @@ -265,7 +265,7 @@ class winstationGeneric extends simplePlugin function compute_dn() { - $this->uid = $this->cn; + $this->attributesAccess['uid']->setValue($this->attributesAccess['cn']->getValue()); return 'uid='.$this->uid.','.get_winstations_ou().$this->base; } } -- 1.7.10.4