summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-10-03 23:08:10 +0000
committerTim Potter <tpot@samba.org>2001-10-03 23:08:10 +0000
commit5805cfef78a72ae6166206a2996423f89baf7580 (patch)
tree0f437a8a001d5ee5b70c4724216f6daa338e795e
parenta71d9d98b013a6c30fd85524b7cdc929bdbd9bcb (diff)
downloadsamba-5805cfef78a72ae6166206a2996423f89baf7580.tar.gz
samba-5805cfef78a72ae6166206a2996423f89baf7580.tar.xz
samba-5805cfef78a72ae6166206a2996423f89baf7580.zip
Added a comment about not changing the magic timestamp values without
knowing what you are doing!
-rw-r--r--source/passdb/passdb.c4
-rw-r--r--source/passdb/pdb_nisplus.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c
index 0e1ebf8a284..9269a49e205 100644
--- a/source/passdb/passdb.c
+++ b/source/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/source/passdb/pdb_nisplus.c b/source/passdb/pdb_nisplus.c
index af4bf1b8238..a86d5ecb680 100644
--- a/source/passdb/pdb_nisplus.c
+++ b/source/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)) {