From: Andrew Bartlett Date: Mon, 27 May 2024 06:46:49 +0000 (+1200) Subject: python/samba/tests/krb5: Move get_kpasswd_sname() into raw_testcase() to allow broade... X-Git-Tag: tdb-1.4.11~420 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ec24a207648d9207649cd1c4364a1124db6f24d;p=thirdparty%2Fsamba.git python/samba/tests/krb5: Move get_kpasswd_sname() into raw_testcase() to allow broader use Signed-off-by: Andrew Bartlett Reviewed-by: Jo Sutton --- diff --git a/python/samba/tests/krb5/kpasswd_tests.py b/python/samba/tests/krb5/kpasswd_tests.py index 0f1fe656f49..6f0b36a25f6 100755 --- a/python/samba/tests/krb5/kpasswd_tests.py +++ b/python/samba/tests/krb5/kpasswd_tests.py @@ -90,10 +90,6 @@ class KpasswdTests(KDCBaseTest): return creds - def get_kpasswd_sname(self): - return self.PrincipalName_create(name_type=NT_PRINCIPAL, - names=['kadmin', 'changepw']) - def get_ticket_lifetime(self, ticket): enc_part = ticket.ticket_private diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py index ef9498cd251..75ba6d44d48 100644 --- a/python/samba/tests/krb5/raw_testcase.py +++ b/python/samba/tests/krb5/raw_testcase.py @@ -6054,6 +6054,10 @@ class RawKerberosTest(TestCase): return krbtgt_sname + def get_kpasswd_sname(self): + return self.PrincipalName_create(name_type=NT_PRINCIPAL, + names=['kadmin', 'changepw']) + def add_requester_sid(self, pac, sid): pac_buffers = pac.buffers