Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding function to parse output of klist -k KeytabFile to get first principal #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Crefok
Copy link

@Crefok Crefok commented Jul 4, 2024

Hey,
just found your repo and added a functionality to parse the given keytab file to get the first found principal if None is given.

Disclaimer, I was not able to test the code, because I couldn't get your tests with your provided image running. Maybe this will help someone anyway.

Thanks for you work!

@Crefok
Copy link
Author

Crefok commented Jul 4, 2024

PS: this is just needed if there is no valid Kerberos Cache available. Else there is the static Method get_by_config to parse the principal. My provided Method could also be implemented at this Point of Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant