]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: make use of conn.auth_info() in _test_samlogon()
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Nov 2024 22:27:05 +0000 (23:27 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 5 Dec 2024 16:46:37 +0000 (16:46 +0000)
In future we'll have KRB5 instead of SCHANNEL...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/samba/tests/krb5/kdc_base_test.py

index 66e222caa47742083c980c75aa22de56382d328d..7ea745d0cbc0de0dd3864aba2d7d49caa0726b9f 100644 (file)
@@ -3707,8 +3707,7 @@ class KDCBaseTest(TestCaseInTempDir, RawKerberosTest):
         conn = netlogon.netlogon(f'ncacn_ip_tcp:{dc_server}[schannel,seal]',
                                  self.get_lp(),
                                  domain_joined_mach_creds)
-        auth_type = dcerpc.DCERPC_AUTH_TYPE_SCHANNEL
-        auth_level = dcerpc.DCERPC_AUTH_LEVEL_PRIVACY
+        (auth_type, auth_level) = conn.auth_info()
 
         if logon_type == netlogon.NetlogonInteractiveInformation:
             logon = netlogon.netr_PasswordInfo()