<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SSO works with anything but REMOTE_USER in Security</title>
    <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38997#M1305</link>
    <description>&lt;P&gt;Using &lt;CODE&gt;REMOTE_USER&lt;/CODE&gt; as the HTTP header or something else?&lt;/P&gt;

&lt;P&gt;(To save everyone else the trouble of figuring out what "ARR v2.5 and URL rewriter 2.0" are: They're part of Microsoft IIS.)&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2013 22:13:09 GMT</pubDate>
    <dc:creator>Wilcooley</dc:creator>
    <dc:date>2013-02-14T22:13:09Z</dc:date>
    <item>
      <title>SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38989#M1297</link>
      <description>&lt;P&gt;This is maddening but at this point, I know how to work around it but not why I am seeing it. I am setting up SSO and, as far as I can tell, REMOTE_USER is being ignored or scrubbed within splunkweb. Splunk is 4.3.2; I think I saw pretty much the same behaviour when I was first setting up SSO on another host a couple of years ago; it was 4.0 or 4.1 at the time.&lt;/P&gt;

&lt;P&gt;I have looked at a number of the other questions related to this topic and some seem to kinda dance around this issue (notice the bits at the bottom about REMOTE-USER):&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/1490/how-do-i-make-single-sign-on-work-with-mod_proxy" target="_blank"&gt;how-do-i-make-single-sign-on-work-with-mod_proxy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Does anybody know what's going on here? I have a working setup now, but I believe this is a bug that causes more than a little confusion.&lt;/P&gt;

&lt;P&gt;I have Apache with &lt;CODE&gt;mod_proxy&lt;/CODE&gt; setup to reverse-proxy the requests to localhost:8000. Through several methods, I have it passing 4 HTTP request headers: &lt;CODE&gt;Cas-User&lt;/CODE&gt;, &lt;CODE&gt;REMOTE-USER&lt;/CODE&gt;, &lt;CODE&gt;REMOTE_USER&lt;/CODE&gt; and &lt;CODE&gt;X-Forwarded-User&lt;/CODE&gt;. I have verified this with &lt;CODE&gt;tcpdump&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# tcpdump -s0 -A -i lo port 8000
...
GET /en-US/debug/sso HTTP/1.1
Host: localhost:8000
Cache-Control: max-age=0
Pragma: no-cache
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: UTF-8,*;q=0.5
Cookie: MOD_AUTH_CAS=***; session_id_8000=***
CAS-User: wcooley
REMOTE_USER: wcooley
REMOTE-USER: wcooley
X-Forwarded-User: wcooley
Via: 1.1 splunkhost.example.com
X-Forwarded-For: x.x.x.x
X-Forwarded-Host: splunkhost.example.com
X-Forwarded-Server: splunkhost.example.com
Connection: Keep-Alive
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;trustedIP&lt;/CODE&gt; in both &lt;CODE&gt;server.conf&lt;/CODE&gt; and &lt;CODE&gt;web.conf&lt;/CODE&gt; are 127.0.0.1.&lt;/P&gt;

&lt;P&gt;If &lt;CODE&gt;remoteUser&lt;/CODE&gt; in &lt;CODE&gt;web.conf&lt;/CODE&gt; is set to &lt;CODE&gt;Cas-User&lt;/CODE&gt;, &lt;CODE&gt;REMOTE-USER&lt;/CODE&gt; or &lt;CODE&gt;X-Forwarded-User&lt;/CODE&gt;, SSO works. The SSO debug has, for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Remote User HTTP Header Cas-User
Value of Cas-User   wcooley
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If &lt;CODE&gt;remoteUser&lt;/CODE&gt; is set to &lt;CODE&gt;REMOTE_USER&lt;/CODE&gt; or is unset (yes, I tested both), then SSO does not work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Remote User HTTP Header REMOTE_USER
Value of REMOTE_USER    Not set. SSO may not be enabled or you may not be accessing Splunk via your proxy server.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I am redirected to the login page for other requests. Also, "Other HTTP Headers" has the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset  UTF-8,*;q=0.5
Accept-Encoding gzip,deflate,sdch
Accept-Language en-US,en;q=0.8
Cas-User        wcooley
Connection      Keep-Alive
Cookie  ...
Host    localhost:8000
Remote-Addr     127.0.0.1
Remote-User     wcooley
User-Agent      Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19
Via     1.1 splunkserver.example.com
X-Forwarded-For x.x.x.x
X-Forwarded-Host        splunkserver.example.com
X-Forwarded-Server      splunkserver.example.com
X-Forwarded-User        wcooley
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Notice that REMOTE_USER is not set, but REMOTE-USER is. I tried separately disabling REMOTE_USER and REMOTE-USER, but in all three cases (both enabled, only one of each enabled) the result appears to be the same.&lt;/P&gt;

&lt;P&gt;Just to ensure that my &lt;CODE&gt;mod_auth_cas&lt;/CODE&gt; SSO provider wasn't secretly doing something obnoxious, I switched to basic auth in Apache, with the same results (except, of course, Cas-User wasn't included in the headers).&lt;/P&gt;

&lt;P&gt;*whew*&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:45:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38989#M1297</guid>
      <dc:creator>Wilcooley</dc:creator>
      <dc:date>2020-09-28T11:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38990#M1298</link>
      <description>&lt;P&gt;Perhaps I should ask the follow-up question: Does this actually work for other people?&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 20:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38990#M1298</guid>
      <dc:creator>Wilcooley</dc:creator>
      <dc:date>2012-05-23T20:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38991#M1299</link>
      <description>&lt;P&gt;I can confirm that REMOTE_USER doesn't work&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 12:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38991#M1299</guid>
      <dc:creator>wageof</dc:creator>
      <dc:date>2012-06-08T12:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38992#M1300</link>
      <description>&lt;P&gt;I can't get REMOTE-USER to work, either.  Our config worked before 4.3 ..  LDAP works fine, SSO debug page says SSO will be used, but the search app insists user=UNKNOWN_USER.  I really want to upgrade to 4.3 but here we are at 4.3.3 with no resolution.  Come on Splunk, fix this!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2012 04:23:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38992#M1300</guid>
      <dc:creator>fervin</dc:creator>
      <dc:date>2012-06-28T04:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38993#M1301</link>
      <description>&lt;P&gt;Same problem with splunk 5.0.1. Thanks for the solution, I would never have guessed that REMOTE_HOST does not work (I posted my config at &lt;A href="http://splunk-base.splunk.com/answers/75090/sso-configuration-example-of-an-apache-proxy-to-cas"&gt;http://splunk-base.splunk.com/answers/75090/sso-configuration-example-of-an-apache-proxy-to-cas&lt;/A&gt;, cross-referencing your solution on the way)&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 08:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38993#M1301</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2013-02-12T08:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38994#M1302</link>
      <description>&lt;P&gt;My observation is, that Splunk (maybe only in certain version) only accepts HTTP-headers for SSO not containing any special character. At least, it works for me when using something like "SPLUNKUSER"&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 16:21:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38994#M1302</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2013-02-12T16:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38995#M1303</link>
      <description>&lt;P&gt;I got SSO working with splunk using ARR v2.5 and URL rewriter 2.0 and it works as a charm. &lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 16:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38995#M1303</guid>
      <dc:creator>anshu2812</dc:creator>
      <dc:date>2013-02-12T16:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38996#M1304</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/29"&gt;@Simon&lt;/a&gt;: I did not test extensively but if the "special character" not to use would be the underscore, it would clash with splunk's documentation (where REMOTE_USER is mentioned). Unfortunately it appears that it could be the case (I do not know if a header like HELLO_WORLD would work or is it just REMOTE_USER which is specifically a problem).&lt;BR /&gt;
Anyway - this is a bug and I will open a ticket with splunk about that.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38996#M1304</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2020-09-28T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38997#M1305</link>
      <description>&lt;P&gt;Using &lt;CODE&gt;REMOTE_USER&lt;/CODE&gt; as the HTTP header or something else?&lt;/P&gt;

&lt;P&gt;(To save everyone else the trouble of figuring out what "ARR v2.5 and URL rewriter 2.0" are: They're part of Microsoft IIS.)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 22:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38997#M1305</guid>
      <dc:creator>Wilcooley</dc:creator>
      <dc:date>2013-02-14T22:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38998#M1306</link>
      <description>&lt;P&gt;As of 5.0.2, the docs are... different. "Troubleshoot Splunk SSO" says, "Splunk is configured to accept the remote header value of &lt;CODE&gt;X_REMOTE_USER&lt;/CODE&gt;, which is the default for most proxies." &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Security/TroubleshootSplunkSSO"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Security/TroubleshootSplunkSSO&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;"Configure ..." in that same doc says, "The default Splunk header used is &lt;CODE&gt;REMOTE_USER&lt;/CODE&gt;, ...". And &lt;CODE&gt;web.conf.spec&lt;/CODE&gt; agrees.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 22:33:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38998#M1306</guid>
      <dc:creator>Wilcooley</dc:creator>
      <dc:date>2013-02-14T22:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38999#M1307</link>
      <description>&lt;P&gt;I am trying SSO using IIS 8.5 as reverse proxy, ARR v3.0 and URL rewrite Module 2 however when I hit the IIS page, it redirets me to Splunk login page and SSO does't work. &lt;/P&gt;

&lt;P&gt;I could see below lines in web_services.log file.&lt;BR /&gt;
2016-09-13 04:34:07,611 INFO    [57d7e42f9addec85acc0] decorators:383 - require_login - redirecting to login&lt;BR /&gt;
2016-09-13 04:53:36,280 INFO    [57d7e8c046ddec85a128] decorators:362 - require_login - no splunkd sessionKey variable set; cherrypy_session=3a5162816f62d2fc5a7fa1ce48d872b83ee94e20 request_path=/en-US/&lt;BR /&gt;
2016-09-13 04:53:36,282 INFO    [57d7e8c046ddec85a128] decorators:383 - require_login - redirecting to login&lt;/P&gt;

&lt;P&gt;Also in SSO debug page of splunk, I see a blank value for X-Remote-User header variable.&lt;/P&gt;

&lt;P&gt;Can someone help me to resolve it?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/38999#M1307</guid>
      <dc:creator>vidyadharms</dc:creator>
      <dc:date>2020-09-29T10:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: SSO works with anything but REMOTE_USER</title>
      <link>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/39000#M1308</link>
      <description>&lt;P&gt;Can you please share the steps followed? &lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 12:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSO-works-with-anything-but-REMOTE-USER/m-p/39000#M1308</guid>
      <dc:creator>vidyadharms</dc:creator>
      <dc:date>2016-09-13T12:08:05Z</dc:date>
    </item>
  </channel>
</rss>

