mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
Don't set global_machine_password_needs_changing if
lp_machine_password_timeout() is set to zero.
This commit is contained in:
parent
3228730c83
commit
3692919aee
@ -510,11 +510,13 @@ static NTSTATUS check_ntdomain_security(const struct auth_context *auth_context,
|
||||
return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
|
||||
}
|
||||
|
||||
/* Test if machine password is expired and need to be changed */
|
||||
if (time(NULL) > last_change_time + lp_machine_password_timeout())
|
||||
{
|
||||
/* Test if machine password has expired and needs to be changed */
|
||||
if (lp_machine_password_timeout()) {
|
||||
if (time(NULL) > (last_change_time +
|
||||
lp_machine_password_timeout())) {
|
||||
global_machine_password_needs_changing = True;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Treat each name in the 'password server =' line as a potential
|
||||
|
Loading…
x
Reference in New Issue
Block a user