mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 04:19:49 +01:00
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';
|
$entry["objectclass"][4] = 'shadowAccount';
|
||||||
|
|
||||||
if ($allValues[0]["dn"]) {
|
if ($allValues[0]["dn"]) {
|
||||||
|
// This should keep the password from being overwritten here ?
|
||||||
|
unset($entry["userpassword"]);
|
||||||
ldap_modify($ds, $allValues[0]["dn"], $entry);
|
ldap_modify($ds, $allValues[0]["dn"], $entry);
|
||||||
} else {
|
} else {
|
||||||
$dn = 'uid=' . $account_lid . ',' . $phpgw_info["server"]["ldap_context"];
|
$dn = 'uid=' . $account_lid . ',' . $phpgw_info["server"]["ldap_context"];
|
||||||
|
Loading…
Reference in New Issue
Block a user