def as_exchange_dict(self,
expected_crealm=None,
expected_cname=None,
+ expected_cname_private=None,
expected_srealm=None,
expected_sname=None,
ticket_decryption_key=None,
'kdc_options': kdc_options,
'outer_req': outer_req
}
+ if expected_cname_private is not None:
+ kdc_exchange_dict['expected_cname_private'] = (
+ expected_cname_private)
+
if callback_dict is None:
callback_dict = {}
def tgs_exchange_dict(self,
expected_crealm=None,
expected_cname=None,
+ expected_cname_private=None,
expected_srealm=None,
expected_sname=None,
ticket_decryption_key=None,
'kdc_options': kdc_options,
'outer_req': outer_req
}
+ if expected_cname_private is not None:
+ kdc_exchange_dict['expected_cname_private'] = (
+ expected_cname_private)
+
if callback_dict is None:
callback_dict = {}
and kdc_options[canon_pos] == '1')
expected_crealm = kdc_exchange_dict['expected_crealm']
- expected_cname = kdc_exchange_dict['expected_cname']
expected_srealm = kdc_exchange_dict['expected_srealm']
expected_sname = kdc_exchange_dict['expected_sname']
ticket_decryption_key = kdc_exchange_dict['ticket_decryption_key']
+ try:
+ expected_cname = kdc_exchange_dict['expected_cname_private']
+ except KeyError:
+ expected_cname = kdc_exchange_dict['expected_cname']
+
ticket = self.getElementValue(rep, 'ticket')
if ticket_checksum is not None: