SSO works only for high level Active Directory UO #282
Replies: 1 comment 6 replies
-
Can you provide an example of what the UPN for allowed and disallowed users look like? Use use GssapiLocalName On this means you are telling mod_auth_gssapi to ask libkrb5 to verify that the principal name received has an actual mapping to a local user. What does your auth_to_local krb5.conf option look like? If you do not care for mapping to local users and just want to allow any principal in the XXX.LOCAL realm do not set GssapiLocalName On Description of the option from the README.md file: GssapiLocalNameTries to map the client principal to a local name using the gss_localname() call. This requires configuration in the /etc/krb5.conf file in order to allow proper mapping for principals not in the default realm (for example a user coming from a trusted realm). See the 'auth_to_local' option in the [realms] section of krb5.conf(5) When GssapiLocalName is set to on, mod_auth_gssapi will set the REMOTE_USER variable to the resolved user name. mod_auth_gssapi will also set the GSS_NAME variable to the complete client principal name. |
Beta Was this translation helpful? Give feedback.
-
Hallo,
I'd like to setup a SSO authentication using mod_auth_gssapi to the intranet webserver.
With the AD structure like this one:
And a test user [email protected],
if the user belongs to a first level UO (like ADMINS, GROUP1 or GROUP2) SSO works, the page is opened the username is passed to $_SERVER["REMOTE_USER"] php variable.
if the user belongs to a lower level UO (like LOCATION1, OFFICE1 etc.) a popup for credential input is showed, the page is correctly opened on putting the right credentials.
Here the apache conf snippet:
Setting GssapiBasicAuth Off, if the test user is in a lower level UO no popup is showed, but i get this error "Unauthorized
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required."
I'm looking around to find how to resolve.
Thanks,
Marco
Beta Was this translation helpful? Give feedback.
All reactions