summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-07-16 12:16:48 +0000
committerSimo Sorce <idra@samba.org>2001-07-16 12:16:48 +0000
commite3fbb09cede1d2d8b5ad66c6952e86c153cfbefb (patch)
tree43a3d11e66619c02f7b90f4ff9cca0045354c856 /source3
parent57673d585a532a783cb0c0b61a652bbe7e3e7cf6 (diff)
downloadsamba-e3fbb09cede1d2d8b5ad66c6952e86c153cfbefb.tar.gz
samba-e3fbb09cede1d2d8b5ad66c6952e86c153cfbefb.tar.bz2
samba-e3fbb09cede1d2d8b5ad66c6952e86c153cfbefb.zip
Test if machine password has expired.
This test was lost somehow... (This used to be commit 065d8f69d5f4a8ffc062bc5592386ee1ac652969)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/password.c6
1 files changed, 6 insertions, 0 deletions
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