Unverified Commit 0e7ec070 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

feat(samba) Add %passwordClear% support for sambaAccount hooks

issue #5938
parent b2f81513
...@@ -621,6 +621,14 @@ class sambaAccount extends simplePlugin ...@@ -621,6 +621,14 @@ class sambaAccount extends simplePlugin
$this->sambaSID = ""; $this->sambaSID = "";
} }
function callHook($cmd, array $addAttrs = array(), &$returnOutput = array(), &$returnCode = NULL)
{
$addAttrs['passwordMethod'] = $this->parent->getBaseObject()->attributesAccess['userPassword']->getMethod();
$addAttrs['userLocked'] = $this->parent->getBaseObject()->attributesAccess['userPassword']->isLocked();
$addAttrs['passwordClear'] = $this->parent->getBaseObject()->attributesAccess['userPassword']->getClear();
return parent::callHook($cmd, $addAttrs, $returnOutput, $returnCode);
}
/* Returns TRUE if this attribute should be asked in the creation by template dialog */ /* Returns TRUE if this attribute should be asked in the creation by template dialog */
function showInTemplate($attr, $templateAttrs) function showInTemplate($attr, $templateAttrs)
{ {
......
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