Commit a2cb34eb authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2574 when saving a windows workstations the uid is not stored

parent 41d75d87
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment