* Admin/SambaAdmin: fixed not set sambaNTPassword and sambaLMPassword hashes in LDAP (hook changepassword was called without password)

This commit is contained in:
Ralf Becker 2013-07-30 18:13:22 +00:00
parent c3b3fb5019
commit 77be8da21c

View File

@ -393,13 +393,14 @@
if ($passwd)
{
$_userData['account_passwd'] = $passwd;
try {
$auth = new auth();
if ($auth->change_password('', $passwd, $_userData['account_id']))
{
$GLOBALS['hook_values']['account_id'] = $_userData['account_id'];
$GLOBALS['hook_values']['old_passwd'] = '';
$GLOBALS['hook_values']['new_passwd'] = $_userData['account_passwd'];
$GLOBALS['hook_values']['new_passwd'] = $passwd;
$GLOBALS['egw']->hooks->process($GLOBALS['hook_values']+array(
'location' => 'changepassword'