diff options
author | Simo Sorce <idra@samba.org> | 2001-07-16 12:16:48 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-07-16 12:16:48 +0000 |
commit | 065d8f69d5f4a8ffc062bc5592386ee1ac652969 (patch) | |
tree | c74209e19f438233a9d6f97318455c2ad28ad297 /source/smbd/password.c | |
parent | 83334fc474008d9f338204e73eacc5665e26bf0c (diff) | |
download | samba-065d8f69d5f4a8ffc062bc5592386ee1ac652969.tar.gz samba-065d8f69d5f4a8ffc062bc5592386ee1ac652969.tar.xz samba-065d8f69d5f4a8ffc062bc5592386ee1ac652969.zip |
Test if machine password has expired.
This test was lost somehow...
Diffstat (limited to 'source/smbd/password.c')
-rw-r--r-- | source/smbd/password.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c index a0f730d7e2f..e905d9207fe 100644 --- a/source/smbd/password.c +++ b/source/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 |