REMOTE_USER variable and interoperability with mod_authnz_ldap #274
Replies: 4 comments
-
Have you considered using the GssapiLocalName option ? |
Beta Was this translation helpful? Give feedback.
-
mod_auth_gssapi always return the full principal name (what you call That said I do not know why one "wins" over the other, mod_auth_gssapi is not aware of other modules |
Beta Was this translation helpful? Give feedback.
-
Potentially look at these examples as well: https://stackoverflow.com/questions/33368653/how-do-i-set-remote-user-in-a-http-header I think SetEnv happens too early, before authn modules are run. |
Beta Was this translation helpful? Give feedback.
-
Yes, I plan to use |
Beta Was this translation helpful? Give feedback.
-
Hi.
I have a question regarding
REMOTE_USER
variable. It seems that mod_auth_gssapi always 'wins' in setting this var when used together with mod_authnz_ldap. Is it technically possible to somehow prevent it from having a final say?So it would set
REMOTE_USER
at authentication phase, but allow mod_authnz_ldap to override it down the line?Use case: clients come with
${sAMAccountName}@${domain}
principals, but service behind apache expects${userPrincipalName}
inREMOTE_USER
. For some users those values do not match (and case always does not match). I would like mod_auth_gssapi to do authentication, and allow mod_authnz_ldap to canonicalize REMOTE_USER later. But currently resulting value always comes from mod_auth_gssapi, I can not even override it withSetEnv
.Beta Was this translation helpful? Give feedback.
All reactions