From 122af1c77e0817896f726cecab662fbd0179387e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 16 Dec 2024 13:47:34 +0100 Subject: [PATCH] python:tests/krb5: add KerberosCredentials.[g|s]et_trust_{incoming,outgoing,account}_creds Signed-off-by: Stefan Metzmacher Reviewed-by: Jennifer Sutton --- python/samba/tests/krb5/raw_testcase.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py index bc19a8ab2d6..1f3c555a5bd 100644 --- a/python/samba/tests/krb5/raw_testcase.py +++ b/python/samba/tests/krb5/raw_testcase.py @@ -410,6 +410,9 @@ class KerberosCredentials(Credentials): 'sid', 'guid', 'rodc_computer_creds', + 'trust_incoming_creds', + 'trust_outgoing_creds', + 'trust_account_creds', 'spn', 'tgs_supported_enctypes', 'upn', @@ -452,6 +455,10 @@ class KerberosCredentials(Credentials): self.rodc_computer_creds = None + self.trust_incoming_creds = None + self.trust_outgoing_creds = None + self.trust_account_creds = None + def set_as_supported_enctypes(self, value): self.as_supported_enctypes = int(value) @@ -639,6 +646,24 @@ class KerberosCredentials(Credentials): def get_rodc_computer_creds(self): return self.rodc_computer_creds + def set_trust_incoming_creds(self, incoming_creds): + self.trust_incoming_creds = incoming_creds + + def get_trust_incoming_creds(self): + return self.trust_incoming_creds + + def set_trust_outgoing_creds(self, outgoing_creds): + self.trust_outgoing_creds = outgoing_creds + + def get_trust_outgoing_creds(self): + return self.trust_outgoing_creds + + def set_trust_account_creds(self, account_creds): + self.trust_account_creds = account_creds + + def get_trust_account_creds(self): + return self.trust_account_creds + class KerberosTicketCreds: __slots__ = [ 'cname', -- 2.47.3