1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

python:tests/krb5: add KerberosCredentials.[g|s]et_trust_{incoming,outgoing,account}_creds

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
This commit is contained in:
Stefan Metzmacher 2024-12-16 13:47:34 +01:00
parent 6c96f9499f
commit 122af1c77e

View 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',