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

Fix krb ticket renewal in non domainjoined mode #52

Merged
merged 1 commit into from
May 12, 2023

Conversation

saikiranakula-amzn
Copy link
Collaborator

@saikiranakula-amzn saikiranakula-amzn commented May 12, 2023

Issue #, if available:

Description of changes:
Fix krb ticket renewal in non domainjoined mode

Validated the renewal flow with non-domain mode
Added logic to store the the domainless user in the cache

Testing:
1. Run the credentials fetcher daemon as ./credentials-fetcherd
   --aws_sm_secret_name "ADuser"
2. Create a kerberos ticket using ./gmsa_test_client --create
3. Wait for renewal to start ensure the ticket is renewed
4. Invoke the credentials-fetcher client
./gmsa_test_client --renew-non-domainjoined-lease "username" "password"
"domain"

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

auth/kerberos/src/krb.cpp Outdated Show resolved Hide resolved
auth/kerberos/src/krb.cpp Outdated Show resolved Hide resolved
Validated the renewal flow with non-domain mode
Added logic to store the the domainless user in the cache

Testing:
1. Run the credentials fetcher daemon as ./credentials-fetcherd
   --aws_sm_secret_name "ADuser"
2. Create a kerberos ticket using ./gmsa_test_client --create
3. Wait for renewal to start ensure the ticket is renewed
4. Invoke the credentials-fetcher client
./gmsa_test_client --renew-non-domainjoined-lease "username" "password"
"domain"
@saikiranakula-amzn saikiranakula-amzn changed the title Fix renewal for nondomainjoined case Fix krb ticket renewal in non domainjoined mode May 12, 2023
@saikiranakula-amzn saikiranakula-amzn merged commit 55defcc into mainline May 12, 2023
@as14692 as14692 deleted the kube_ticket_creation branch October 15, 2024 22:45
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.

2 participants