Skip to content

Emit error in logs if keytab files can't be opened #229

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

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

simo5
Copy link
Contributor

@simo5 simo5 commented Sep 2, 2020

This will give a useful warning to admins when config point to missing
files.

Fixes #228

Copy link
Member

@frozencemetery frozencemetery left a comment

Choose a reason for hiding this comment

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

Substantively good; some minor things inline.

apr_strerror(rc, err, sizeof(err));
ap_log_error(APLOG_MARK, APLOG_ERR, 0, parms->server,
"Cannot open %s file %s: %s", key, value, err);
} else {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this error cause a function exit, like we do above? (That would also let you remove this else-block.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no
I want the thing not to crash the apache server
it is possible during deployment people add a client _ketab later
I just want admins to see the error if something doesn't work, not a hard fail

This will give a useful warning to admins when config point to missing
files.

Signed-off-by: Simo Sorce <simo@redhat.com>
@frozencemetery frozencemetery merged commit 8ef0dc8 into gssapi:master Sep 3, 2020
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.

When the GssapiCredStore file is absent, the log message is not very clear
2 participants