]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests/krb5: add KerberosCredentials.[g|s]et_trust_{incoming,outgoing,account...
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Dec 2024 12:47:34 +0000 (13:47 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 8 Jan 2025 09:13:30 +0000 (09:13 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
python/samba/tests/krb5/raw_testcase.py

index bc19a8ab2d659ccb343d4afa1f91f0c0dab5e361..1f3c555a5bd4b934fd74d7a0429ebc09bdc7f145 100644 (file)
@@ -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',