From d776d39c83520d2c7a1197402edab378ddc6bca5 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 13 Nov 2025 16:44:33 +1300 Subject: [PATCH] pytests: krb5 raw tests use TestCase.get_server_param() Signed-off-by: Douglas Bagnall Reviewed-by: Jennifer Sutton --- python/samba/tests/krb5/raw_testcase.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py index 7d42b182512..d2b3e8d9d4d 100644 --- a/python/samba/tests/krb5/raw_testcase.py +++ b/python/samba/tests/krb5/raw_testcase.py @@ -878,16 +878,9 @@ class RawKerberosTest(TestCase): # Always generating the PAC is currently only supported by # the Embedded heimdal if using_embedded_heimdal: - # get_loadparm loads the client smb.conf - # we need to load the server smb.conf to get the server - # settings. - server_conf = samba.tests.env_get_var_value('SERVERCONFFILE') - lp = LoadParm(filename_for_non_global_lp=server_conf) - always_include = lp.get("kdc always include pac") - if always_include is None: - always_include = "True" - - cls.always_include_pac = bool(always_include) + cls.always_include_pac = cls.get_server_param( + "kdc always include pac", + True) kadmin_is_tgs = samba.tests.env_get_var_value('KADMIN_IS_TGS', allow_missing=True) -- 2.47.3