]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Reset local database time in a cleaner (and nearly equivalent) fashion
authorJo Sutton <josutton@catalyst.net.nz>
Tue, 28 May 2024 04:53:22 +0000 (16:53 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 4 Jun 2024 19:49:36 +0000 (19:49 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/gmsa_tests.py

index bdfb4408d39380f7cf0aa4e8f034b57fbec53709..341b3f6dd9b21e8d393c0f58d666a7d0eb7a89c5 100755 (executable)
@@ -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(