set account_lastpwd_change when importing ldap data. so users are not forced

to change their password.
This commit is contained in:
Lars Kneschke 2000-12-02 14:42:50 +00:00
parent 9703549255
commit 44c4c53172

View File

@ -96,8 +96,8 @@
// do some checks before we try to import the data // do some checks before we try to import the data
if (!empty($account[1]["account_id"]) && !empty($account[1]["account_lid"])) if (!empty($account[1]["account_id"]) && !empty($account[1]["account_lid"]))
$db->query("insert into accounts (account_id,account_lid,account_pwd,account_permissions," $db->query("insert into accounts (account_id,account_lid,account_pwd,account_permissions,"
. "account_groups,account_status) values ('" . $account[1]["account_id"] . "','" . "account_groups,account_status,account_lastpwd_change) values ('" . $account[1]["account_id"] . "','"
. $account[1]["account_lid"] . "','x','$np',',1:0,','A')",__LINE__,__FILE__); . $account[1]["account_lid"] . "','x','$np',',1:0,','A','".time()."')",__LINE__,__FILE__);
} }
$setup_complete = True; $setup_complete = True;
} }