1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

tests/krb5: Reset local database time in a cleaner (and nearly equivalent) fashion

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jo Sutton 2024-05-28 16:53:22 +12:00 committed by Andrew Bartlett
parent 5eac95652a
commit 9c700f790b

View File

@ -1033,8 +1033,7 @@ class GmsaTests(GkdiBaseTest, KDCBaseTest):
creds = self.gmsa_account(samdb=local_samdb, interval=password_interval)
dn = creds.get_dn()
current_nt_time = self.current_nt_time(samdb)
self.set_db_time(local_samdb, current_nt_time)
self.set_db_time(local_samdb, None)
# Search the local database for the accounts keys.
res = local_samdb.search(
@ -1110,8 +1109,7 @@ class GmsaTests(GkdiBaseTest, KDCBaseTest):
creds = self.gmsa_account(samdb=local_samdb, interval=password_interval)
dn = creds.get_dn()
current_nt_time = self.current_nt_time(samdb)
self.set_db_time(local_samdb, current_nt_time)
self.set_db_time(local_samdb, None)
# Search the local database for the accounts keys.
res = local_samdb.search(