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

Report Kerberos errors to the user as they are usefull #371

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

Conversation

opoplawski
Copy link

Now we get things like:

Failed to initialize NLA, do you have correct Kerberos TGT initialized ?
Kerberos error: No Kerberos credentials available (default cache: KCM:)
Failed to initialize NLA, do you have correct Kerberos TGT initialized ?
Kerberos error: Ticket expired

Copy link

@ThomasAdam ThomasAdam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @opoplawski,

This change looks good to me, and I agree it will help the user out.

if (ms != GSS_S_COMPLETE)
continue;

logger(Core, Debug, " - %s", status_string.value);
logger(Core, Debug, " - %s", (char *)status_string.value);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this cast fixing a compiler warning that wasn't there before?

if (mech != GSS_C_NO_OID) {
msgctx = 0;
gss_display_status(&discard, minor_status, GSS_C_MECH_CODE, mech, &msgctx, &status_string);
logger(Core, Notice, "Kerberos error: %s", (char *)status_string.value);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this cast fixing a compiler warning that wasn't there before?

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.

None yet

2 participants