Skip to content

Commit

Permalink
small pki fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SkelSec committed Feb 12, 2025
1 parent 14cbea0 commit 2aacaa4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions minikerberos/aioclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,13 @@ async def get_TGT(self, override_etype = None, decrypt_tgt = True, kdcopts = ['f
kdc_req_body['etype'] = self.credential.get_supported_enctypes()
else:
kdc_req_body['etype'] = override_etype

# if we do pkinit, we can't offer RC4 encryption
if self.credential.certificate is not None:
override_etype = None
kdc_req_body['etype'] = [x for x in kdc_req_body['etype'] if x != 23]
if len(kdc_req_body['etype']) == 0:
kdc_req_body['etype'] = [18,17] # 23 breaks...

pa_data_1 = {}
if with_pac is True:
Expand Down

0 comments on commit 2aacaa4

Please sign in to comment.