summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/passdb/passdb.c4
-rw-r--r--source3/passdb/pdb_nisplus.c3
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)) {