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

Fixes #3387 Fixed locking when not a samba account

parent cc9be50f
......@@ -3156,6 +3156,9 @@ function generate_smb_nt_hash($password)
function lock_samba_account($mode, $attrs)
{
global $config;
if (!isset($attrs['sambaNTPassword'][0])) {
return array();
}
$modify = array('sambaNTPassword' => $attrs['sambaNTPassword'][0]);
if ($config->get_cfg_value("sambaGenLMPassword", "FALSE") == "TRUE") {
$modify['sambaLMPassword'] = $attrs['sambaLMPassword'][0];
......
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