Skip to content

Commit

Permalink
ccache ext
Browse files Browse the repository at this point in the history
  • Loading branch information
skelsec committed Apr 17, 2021
1 parent 116070d commit 563013e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion minikerberos/common/creds.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ def from_keytab(keytab_file_path: str, principal: str, realm: str):
return cred

@staticmethod
def from_ccache_file(filepath):
def from_ccache_file(filepath, principal: str = None, realm: str = None):
k = KerberosCredential()
k.username = principal
k.domain = realm
k.ccache = CCACHE.from_file(filepath)
return k

Expand Down

0 comments on commit 563013e

Please sign in to comment.