diff options
| author | Andrew Bartlett <abartlet@samba.org> | 2024-05-27 18:46:49 +1200 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2024-06-10 04:27:30 +0000 |
| commit | 4ec24a207648d9207649cd1c4364a1124db6f24d (patch) | |
| tree | 303346887b22fe3e2484c529e7902f4d50011272 /python | |
| parent | b664392208c90fff63047b5faf30a33f95777ee2 (diff) | |
| download | samba-4ec24a207648d9207649cd1c4364a1124db6f24d.tar.gz samba-4ec24a207648d9207649cd1c4364a1124db6f24d.tar.bz2 samba-4ec24a207648d9207649cd1c4364a1124db6f24d.zip | |
python/samba/tests/krb5: Move get_kpasswd_sname() into raw_testcase() to allow broader use
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
Diffstat (limited to 'python')
| -rwxr-xr-x | python/samba/tests/krb5/kpasswd_tests.py | 4 | ||||
| -rw-r--r-- | python/samba/tests/krb5/raw_testcase.py | 4 |
2 files changed, 4 insertions, 4 deletions
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 |
