1
0
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:
Simo Sorce 0001-01-01 00:00:00 +00:00
parent 83334fc474
commit 065d8f69d5

View File

@ -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