diff options
author | Tim Potter <tpot@samba.org> | 2001-10-03 23:08:10 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-10-03 23:08:10 +0000 |
commit | fbdc7ce391b6cc1672b53ec982d274cec15176d3 (patch) | |
tree | c396eb264f6ab1eb5fc4bea92044c58b03d20cee /source3/passdb | |
parent | 3a17bab00f7ab3a3e506c5a6b10a85a8cb65b0d2 (diff) | |
download | samba-fbdc7ce391b6cc1672b53ec982d274cec15176d3.tar.gz samba-fbdc7ce391b6cc1672b53ec982d274cec15176d3.tar.bz2 samba-fbdc7ce391b6cc1672b53ec982d274cec15176d3.zip |
Added a comment about not changing the magic timestamp values without
knowing what you are doing!
(This used to be commit 5805cfef78a72ae6166206a2996423f89baf7580)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/passdb.c | 4 | ||||
-rw-r--r-- | source3/passdb/pdb_nisplus.c | 3 |
2 files changed, 7 insertions, 0 deletions
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)) { |