mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
* Admin/API/ADS: account creation did not set initial password
This commit is contained in:
parent
026ad4ccdf
commit
7cfa4e1617
@ -688,6 +688,7 @@ class accounts_ads
|
||||
error_log(__METHOD__."(".array2string($data).") newly created user NOT found!");
|
||||
return false;
|
||||
}
|
||||
$data['account_id'] = $old['account_id'];
|
||||
}
|
||||
// check if DN/account_fullname changed (not yet supported by adLDAP)
|
||||
if (isset($data['account_fullname']) && $old['account_fullname'] !== $data['account_fullname'])
|
||||
@ -1449,9 +1450,9 @@ class adLDAPUsers_egw extends adLDAPUsers
|
||||
{
|
||||
// Do the update
|
||||
$result = @ldap_modify($ds=$this->adldap->getLdapConnection(), $userDn, $mod);
|
||||
$mod['unicodePwd'] = '***';
|
||||
error_log(__METHOD__."(".array2string($attributes).") ldap_modify($ds, '$userDn', ".array2string($mod).") returned ".array2string($result)." ldap_error()=".ldap_error($ds));
|
||||
if ($result == false) {
|
||||
if (isset($mod['unicodePwd'])) $mod['unicodePwd'] = '***';
|
||||
error_log(__METHOD__."(".array2string($attributes).") ldap_modify($ds, '$userDn', ".array2string($mod).") returned ".array2string($result)." ldap_error()=".ldap_error($ds));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user