]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Read current time from correct SamDB
authorJo Sutton <josutton@catalyst.net.nz>
Wed, 24 Apr 2024 05:16:55 +0000 (17:16 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 May 2024 02:11:36 +0000 (02:11 +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 eff5a69f155b1cb6410bcd6666ea4192b6bac7f3..5ed986fe0a4b494c01d732e1113fd4c1c5b02433 100755 (executable)
@@ -906,7 +906,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(local_samdb)
+        current_nt_time = self.current_nt_time(samdb)
         self.set_db_time(local_samdb, current_nt_time)
 
         # Search the local database for the account’s keys.
@@ -983,7 +983,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(local_samdb)
+        current_nt_time = self.current_nt_time(samdb)
         self.set_db_time(local_samdb, current_nt_time)
 
         # Search the local database for the account’s keys.