From fbdc7ce391b6cc1672b53ec982d274cec15176d3 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 3 Oct 2001 23:08:10 +0000 Subject: Added a comment about not changing the magic timestamp values without knowing what you are doing! (This used to be commit 5805cfef78a72ae6166206a2996423f89baf7580) --- source3/passdb/passdb.c | 4 ++++ source3/passdb/pdb_nisplus.c | 3 +++ 2 files changed, 7 insertions(+) (limited to 'source3') diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 0e1ebf8a28..9269a49e20 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -76,6 +76,10 @@ static BOOL pdb_fill_default_sam(SAM_ACCOUNT *user) } ZERO_STRUCTP(user); + + /* Don't change these timestamp settings without a good reason. + They are important for NT member server compatibility. */ + user->logon_time = (time_t)0; user->pass_last_set_time = (time_t)0; user->pass_can_change_time = (time_t)0; diff --git a/source3/passdb/pdb_nisplus.c b/source3/passdb/pdb_nisplus.c index af4bf1b823..a86d5ecb68 100644 --- a/source3/passdb/pdb_nisplus.c +++ b/source3/passdb/pdb_nisplus.c @@ -209,6 +209,9 @@ static BOOL make_sam_from_nisp_object(SAM_ACCOUNT *pw_buf, nis_object *obj) * time values. note: this code assumes 32bit time_t! */ + /* Don't change these timestamp settings without a good reason. They are + important for NT member server compatibility. */ + pdb_set_logon_time(pw_buf, (time_t)0); ptr = (uchar *)ENTRY_VAL(obj, NPF_LOGON_T); if(ptr && *ptr && (StrnCaseCmp(ptr, "LNT-", 4)==0)) { -- cgit