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:
parent
5eac95652a
commit
9c700f790b
@ -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 account’s 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 account’s keys.
|
||||
res = local_samdb.search(
|
||||
|
Loading…
Reference in New Issue
Block a user