1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

s4:dsdb: Add a note that administrators should not set the clock too far in the future

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jo Sutton 2024-04-16 13:58:15 +12:00 committed by Jo Sutton
parent a397029813
commit dcc5724ed7

View File

@ -1180,6 +1180,12 @@ int gmsa_recalculate_managed_pwd(TALLOC_CTX *mem_ctx,
* the keys.
*/
/*
* Administrators should be careful not to set a DCs clock too far in
* the future, or a gMSAs keys may be stuck at that future time and
* stop updating until said time rolls around for real.
*/
current_key_is_valid = pwd_id != NULL &&
current_time < current_key_expiration_time;
if (current_key_is_valid) {