Skip to content

Conversation

@simo5
Copy link
Contributor

@simo5 simo5 commented Feb 19, 2017

This is a first stab at implementing the features requested in #128 and #129.
@alejandro-perez @frozencemetery @Frenche please comment.

Function declaration and comments should not exceed 80 chars.
Do not use C++ style comments

Signed-off-by: Simo Sorce <simo@redhat.com>
Introduce a new option to export errors in environment variables.
This allows applications to display better errors or take actions based
on the returned error type.

Signed-off-by: Simo Sorce <simo@redhat.com>

Resolves gssapi#128
Resolves gssapi#129
@alejandro-perez
Copy link
Contributor

Thanks Simo.

Everything seems ok. I've tested it and I'm getting what I want, except for one important case.
https://github.com/simo5/mod_auth_gssapi/blob/4e07f2c3bdee89b3cb5df20415b0610eb10df2db/src/mod_auth_gssapi.c#L951

When no auth data has been sent, this is silently discarded (but 401 page is shown). I would need some NO_AUTH_DATA error here to know when the Client's user agent is not behaving as the user thinks (e.g misconfigured). Most notable error is not adding the network.negotiate-auth.trusted-uris key in Firefox. In that case, FF does not send auth data, and the module is not exporting any MAG_ERROR.

Signed-off-by: Simo Sorce <simo@redhat.com>
@simo5
Copy link
Contributor Author

simo5 commented Feb 20, 2017

Fixed that, please verify

@alejandro-perez
Copy link
Contributor

Yes, it is fixed now. Thank you!

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.

Looks good to me

@simo5 simo5 closed this in c9e3ec5 Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants