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