From 9c700f790baa5155465cb8e1bcdb4dcbbd28bbfd Mon Sep 17 00:00:00 2001 From: Jo Sutton Date: Tue, 28 May 2024 16:53:22 +1200 Subject: [PATCH] tests/krb5: Reset local database time in a cleaner (and nearly equivalent) fashion Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- python/samba/tests/krb5/gmsa_tests.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python/samba/tests/krb5/gmsa_tests.py b/python/samba/tests/krb5/gmsa_tests.py index bdfb4408d39..341b3f6dd9b 100755 --- a/python/samba/tests/krb5/gmsa_tests.py +++ b/python/samba/tests/krb5/gmsa_tests.py @@ -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(