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

Fixes: #2945 Samba inherit client config is reverted

parent 2c08f6e0
......@@ -364,7 +364,7 @@ class sambaAccount extends simplePlugin
$this->attributesAccess['InheritMode']->setManagedAttributes(
array(
'disable' => array (
FALSE => array (
TRUE => array (
'CtxInitialProgram', 'CtxWorkDirectory',
)
)
......
......@@ -329,7 +329,7 @@ class sambaMungedDial
}
}
if (substr($this->ctx['CtxCfgFlags1'], 6, 1) == "1") {
if ($this->getInheritMode()) {
$result['CtxInitialProgramMode'] = "disabled";
} else {
$result['CtxInitialProgramMode'] = "";
......
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