From e3fbb09cede1d2d8b5ad66c6952e86c153cfbefb Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 16 Jul 2001 12:16:48 +0000 Subject: Test if machine password has expired. This test was lost somehow... (This used to be commit 065d8f69d5f4a8ffc062bc5592386ee1ac652969) --- source3/smbd/password.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/password.c b/source3/smbd/password.c index a0f730d7e2..e905d9207f 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -1571,6 +1571,12 @@ BOOL domain_client_validate( char *user, char *domain, return False; } + /* Test if machine password is expired and need to be changed */ + if (time(NULL) > last_change_time + lp_machine_password_timeout()) + { + global_machine_password_needs_changing = True; + } + /* * At this point, smb_apasswd points to the lanman response to * the challenge in local_challenge, and smb_ntpasswd points to -- cgit