Related to #128
The gss_authenticate_user() an return error 401 for several causes. Mainly:
- Client hasn't sent any authentication data, giving up
- Unsupported authentication type (%s) requested by client
- Failed to create internal context: probably not enough memory
- GSS mech specific failure
My proposal is to export a variable (MAG_ERROR??) that indicates this cause with some textual constant (e.g. NO_AUTH_DATA, UNSUP_AUTH_TYPE, INTERNAL_ERR, GSS_ERR), to allow web developers to show a little more information to the user about the cause of the error.