From: Douglas Bagnall Date: Thu, 13 Nov 2025 03:44:33 +0000 (+1300) Subject: pytests: krb5 raw tests use TestCase.get_server_param() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d776d39c83520d2c7a1197402edab378ddc6bca5;p=thirdparty%2Fsamba.git pytests: krb5 raw tests use TestCase.get_server_param() Signed-off-by: Douglas Bagnall Reviewed-by: Jennifer Sutton --- 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)