Add unset(password) before modify if the account existed in ldap already

This commit is contained in:
Miles Lott 2001-03-22 08:02:27 +00:00
parent fa4bbf00f3
commit 3604032b53

View File

@ -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"];