-
Notifications
You must be signed in to change notification settings - Fork 41
Add option to select acceptor name #131
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
Conversation
src/mod_auth_gssapi.c
Outdated
| &cfg->acceptor_name); | ||
| if (GSS_ERROR(maj)) { | ||
| ap_log_error(APLOG_MARK, APLOG_WARNING, 0, parms->server, | ||
| "gss_import_name([%s]) failed", w); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not return "error: malformed name" here? I think it is more useful to detect the error at init time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you suggesting to log at APLOG_ERROR level, or also to return a non-NULL error ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return non-null, so the directive won't get silently ignored.
|
Ok now a bad name (like an empry name) returns an error. |
iboukris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
frozencemetery
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me.
This option is useful to select and allow only a specific credential when keys for multiple principals are available in a keytab. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Isaac Boukris <iboukris@gmail.com> Closes gssapi#131
This way this error reporting function can be used also when a request_rec is not available, like i the configuration phase. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Isaac Boukris <iboukris@gmail.com>
This option is useful to select and allow only a specific credential when keys for multiple principals are available in a keytab. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Isaac Boukris <iboukris@gmail.com> Closes gssapi#131
Had this in my tree but forgot to add to the commit. Related to #131 Signed-off-by: Simo Sorce <simo@redhat.com>
This option is useful to select and allow only a specific credential
when keys for multiple principals are available in a keytab.