mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
* Admin/API/ADS: account creation did not set initial password
This commit is contained in:
parent
8325352e88
commit
2702d01b34
@ -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