mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
* Admin/SambaAdmin: fixed not set sambaNTPassword and sambaLMPassword hashes in LDAP (hook changepassword was called without password)
This commit is contained in:
parent
ce6511e934
commit
1c86db7749
@ -393,13 +393,14 @@
|
|||||||
|
|
||||||
if ($passwd)
|
if ($passwd)
|
||||||
{
|
{
|
||||||
|
$_userData['account_passwd'] = $passwd;
|
||||||
try {
|
try {
|
||||||
$auth = new auth();
|
$auth = new auth();
|
||||||
if ($auth->change_password('', $passwd, $_userData['account_id']))
|
if ($auth->change_password('', $passwd, $_userData['account_id']))
|
||||||
{
|
{
|
||||||
$GLOBALS['hook_values']['account_id'] = $_userData['account_id'];
|
$GLOBALS['hook_values']['account_id'] = $_userData['account_id'];
|
||||||
$GLOBALS['hook_values']['old_passwd'] = '';
|
$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(
|
$GLOBALS['egw']->hooks->process($GLOBALS['hook_values']+array(
|
||||||
'location' => 'changepassword'
|
'location' => 'changepassword'
|
||||||
|
Loading…
Reference in New Issue
Block a user