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

ProcessCredSpecFile() makes call to get_machine_krb_ticket() when running in Domainless mode #77

Open
awsjohns opened this issue Nov 9, 2023 · 1 comment

Comments

@awsjohns
Copy link

awsjohns commented Nov 9, 2023

ProcessCredSpecFile() should have logic like this:

    if ( aws_sm_secret_name.length() != 0 )
    {
        status = get_user_krb_ticket( krb_ticket_info->domain_name,
                                      aws_sm_secret_name, cf_logger );
        krb_ticket_info->domainless_user =
            "awsdomainlessusersecret:"+aws_sm_secret_name;

        if ( status < 0 )
        {
            cf_logger.logger( LOG_ERR, "Error %d: Cannot get usr krb ticket",
                                status );
            delete krb_ticket_info;
           return EXIT_FAILURE;
        }
}
    else
    {
        // invoke to get machine ticket
        status = get_machine_krb_ticket( krb_ticket_info->domain_name, cf_logger );
        if ( status < 0 )
    {
        cf_logger.logger( LOG_ERR, "Error %d: Cannot get machine krb ticket",
                            status );
        delete krb_ticket_info;
           return EXIT_FAILURE;
        }
    }
@saikiranakula-amzn
Copy link
Collaborator

Hi John, can you please provide the context on this when we sync up today

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

No branches or pull requests

2 participants