|
We are trying to deploy splunk with SSO according to documentation found on http://www.splunk.com/base/Documentation/4.1/Admin/Usesinglesign-onwithSplunk but are hitting a wall. The suspicion is that mod_proxy does not proxy the remote_user variable needed by Splunk. Anyone know if this and true and known a way around this? |
|
We don't require that the variable representing the user be remote_user. You can configure the 'remoteUser' variable to say how your proxy server spells it. To try to see what your proxy server might be sending, try accessing http://YourSplunkServer:8000/debug/sso See also: http://www.splunk.com/base/Documentation/latest/Admin/Usesinglesign-onwithSplunk |
|
Assuming your auth module provides a REMOTE_USER variable in the context of the apache request, you probably need to provide a line like this:
In your reverse proxy configuration. For example, the following configuration might be used in an SSPI configuration for Apache:
|
|
Based on Nates response I got SSO working with the following config in apache. The only difference is that we use ssl to connect and a non standard ssl port on our splunk server:
|
|
Assuming you want to authenticate users from Active Directory via an Apache proxy running on Linux, you could easily get this working by using either a free or paid version of Centrify. The Centrify Suite Application Edition is a paid solution that supports SPNEGO/Kerberos and NTLM for silent authentication as well as BASIC or HTLM forms for username/password authentication. A free solution would be to configure Splunk for PAM authentication on Linux and use Centrify Express which supports AD authentication from Linux via PAM. Cool thing about either approach is that you get very robust integration with Active Directory with support for auto-discovery of domain controllers, auto-setup and auto-management of Kerberos and you can even use either solution for authenticating users to the Linux OS. I might try to see how I can package up the simple PAM + Centrify Express approach and submit it to the splunkbase. |
|
If the REMOTE_USER isn't being passed through, try replacing the RequestHeader line with the following:
You may also have to set the remoteUser setting in web.conf to "REMOTE-USER" (dash rather than underscore): web.conf:
+1 for recommending 'REMOTE-USER' vs 'REMOTE_USER' in web.conf. I spent an hour trying to figure this out, tried the
(18 Nov '11, 17:23)
stefanlasiewski
|
|
Sorry to bump this thread. I tried this exact configuration but the debug page keeps claiming that REMOTE_USER is null. I can see the user in the apache access.log so I know the authenication is indeed working. Whatever I do I cannot seem to populate the REMOTE_STRING. Any idea will be welcomed Thanks, Roy. In
(18 Nov '11, 17:24)
stefanlasiewski
|
