mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Test if machine password has expired.
This test was lost somehow...
This commit is contained in:
parent
83334fc474
commit
065d8f69d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user