forked from extern/egroupware
Add unset(password) before modify if the account existed in ldap already
This commit is contained in:
parent
fa4bbf00f3
commit
3604032b53
@ -300,6 +300,8 @@
|
||||
$entry["objectclass"][4] = 'shadowAccount';
|
||||
|
||||
if ($allValues[0]["dn"]) {
|
||||
// This should keep the password from being overwritten here ?
|
||||
unset($entry["userpassword"]);
|
||||
ldap_modify($ds, $allValues[0]["dn"], $entry);
|
||||
} else {
|
||||
$dn = 'uid=' . $account_lid . ',' . $phpgw_info["server"]["ldap_context"];
|
||||
|
Loading…
Reference in New Issue
Block a user