<?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 Using SSO proxy to connect to multiple AD domain in Security</title>
    <link>https://community.splunk.com/t5/Security/Using-SSO-proxy-to-connect-to-multiple-AD-domain/m-p/37982#M1275</link>
    <description>&lt;P&gt;Splunk can only connect to one domain in an AD forest at this time. That's a known limitation. &lt;/P&gt;

&lt;P&gt;However, is it possible to set whatever user name you want in the SSO header when you do the re-write. The proxy doing the re-write may be multi-domain or forest aware. &lt;/P&gt;

&lt;P&gt;How can I re-write the auth'd user from a non-Splunk-auth domain to target a user in Splunk? If I do, must I map them to users in the domain that Splunk can access to, in order to make the roles work out? &lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2011 07:10:55 GMT</pubDate>
    <dc:creator>cervelli</dc:creator>
    <dc:date>2011-02-03T07:10:55Z</dc:date>
    <item>
      <title>Using SSO proxy to connect to multiple AD domain</title>
      <link>https://community.splunk.com/t5/Security/Using-SSO-proxy-to-connect-to-multiple-AD-domain/m-p/37982#M1275</link>
      <description>&lt;P&gt;Splunk can only connect to one domain in an AD forest at this time. That's a known limitation. &lt;/P&gt;

&lt;P&gt;However, is it possible to set whatever user name you want in the SSO header when you do the re-write. The proxy doing the re-write may be multi-domain or forest aware. &lt;/P&gt;

&lt;P&gt;How can I re-write the auth'd user from a non-Splunk-auth domain to target a user in Splunk? If I do, must I map them to users in the domain that Splunk can access to, in order to make the roles work out? &lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2011 07:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Using-SSO-proxy-to-connect-to-multiple-AD-domain/m-p/37982#M1275</guid>
      <dc:creator>cervelli</dc:creator>
      <dc:date>2011-02-03T07:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using SSO proxy to connect to multiple AD domain</title>
      <link>https://community.splunk.com/t5/Security/Using-SSO-proxy-to-connect-to-multiple-AD-domain/m-p/37983#M1276</link>
      <description>&lt;P&gt;We are running all of our Splunk servers on Linux, but we use IIS on Windows as a reverse proxy to Splunk.  We've figured out a hackish but functional way to give users from another Active Directory forest SSO access to dashboards that I think will give you what you're asking for.&lt;/P&gt;

&lt;P&gt;What you need:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;A Windows server running IIS 7+&lt;/LI&gt;
&lt;LI&gt;The free Microsoft Application Request Routing (ARR) extension - available for download from: &lt;A href="http://www.iis.net/download/applicationrequestrouting" rel="nofollow"&gt;http://www.iis.net/download/applicationrequestrouting&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;The free Microsoft URL Rewrite extension - available for download from: &lt;A href="http://www.iis.net/download/URLRewrite" rel="nofollow"&gt;http://www.iis.net/download/URLRewrite&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;The free Helicon ISAPI_Rewrite module – available for download from: &lt;A href="http://www.helicontech.com/download-isapi_rewrite3.htm" rel="nofollow"&gt;http://www.helicontech.com/download-isapi_rewrite3.htm&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;A Splunk search head configured for LDAP and SSO.  Set remoteUser = REMOTE-USER instead of REMOTE_USER.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Here's how we set up the proxy, best as I can remember:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Install  ARR v2.1 using  the default options.&lt;/LI&gt;
&lt;LI&gt;Install  URL Rewrite v2.0 using the default options.&lt;/LI&gt;
&lt;LI&gt;Install the Helicon ISAPI_Rewrite3 Module to IIS.  The free version is sufficent because we will be using ARR to work around the free version’s RewriteProxy limitations…&lt;/LI&gt;
&lt;LI&gt;From the Application Request Routing Cache feature view, click on the Server Proxy action and Enable proxy.&lt;/LI&gt;
&lt;LI&gt;Create a new IIS web site for the Splunk proxy address (ex – splunk.xyz.com).  Bind an SSL certificate to the web site at this time.&lt;/LI&gt;
&lt;LI&gt;On the newly created website’s feature view, click on URL Rewrite and then the Add Rule(s) action.&lt;/LI&gt;
&lt;LI&gt;Create a rule based on the Reverse Proxy template which points to your Splunk search head.  Enable SSL Offloading.&lt;/LI&gt;
&lt;LI&gt;Edit the rule such that a Condition input of {HTTP_HOST} matches the pattern (splunk\.xyz\.com).&lt;/LI&gt;
&lt;LI&gt;By chaining such Reverse Proxy rules, you can specify multiple Splunk environments if you need to (splunkdev\.xyz\.com)…&lt;/LI&gt;
&lt;LI&gt;Make the first rule {HTTPS} matches ^OFF$ if you want to redirect all web traffic to SSL.&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Edit the Helicon configuration as below:&lt;/P&gt;

&lt;P&gt;RewriteHeader REMOTE_USER: .* $1&lt;BR /&gt;
RewriteMap user int:tolower &lt;BR /&gt;
RewriteCond %{REMOTE_USER} .* \\([^\\]+)&lt;BR /&gt;
RewriteHeader Remote-User: .* ${user:%1}&lt;BR /&gt;
RewriteBase /&lt;BR /&gt;
&lt;BR /&gt;
RewriteHeader Remote-User: ^(abcuser1|abcuser2|abcuser3) abc_developer&lt;BR /&gt;
RewriteHeader Remote-User: ^(abcuser5|abcuser5) abc_admin&lt;BR /&gt;
RewriteBase /&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The above example converts REMOTE_USER to lowercase, strips out  Active Directory domain information,  and populates a new Remote-User variable with the result.  Then, if the user matches the regex in any of the next sections, the  Remote-User variable will be populated with the specified abc_developer  or abc_admin user name.  This rewritten user name can match an account in the configured AD LDAP repository or can be a shared Splunk local user account.&lt;/P&gt;

&lt;P&gt;That’s it!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2011 08:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Using-SSO-proxy-to-connect-to-multiple-AD-domain/m-p/37983#M1276</guid>
      <dc:creator>fervin</dc:creator>
      <dc:date>2011-02-03T08:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using SSO proxy to connect to multiple AD domain</title>
      <link>https://community.splunk.com/t5/Security/Using-SSO-proxy-to-connect-to-multiple-AD-domain/m-p/37984#M1277</link>
      <description>&lt;P&gt;Trying to setup Splunk to work with a reverse proxy as described above using ARR v2.1 and URL Rewrite v2.0. Anyone having the same problems as me?&lt;/P&gt;

&lt;P&gt;Splunk is hosted on localhost:8000
IIS proxy on localhost/SplunkTest/&lt;/P&gt;

&lt;P&gt;After adding an outgoing rewrite rule to make browser redirect work (LOCATION), I manage to get to the login screen but without any proper CSS styles. The problem was that the CSS files included pictures etc using url("[the_uri]"). Also, there where javascript calls using the syntax "uri":"[the_uri]". I managed to create outgoing rewrite rules for that as well. So far so good.&lt;/P&gt;

&lt;P&gt;But now I'm stucked, log searching etc. They are initiated using POST and GET on paths build with the javascript function make_url(), which is supposed to make life easier for proxy setups. It's hard to solve this issue with outgoing rewrite rules since the links are pieced together client side. &lt;/P&gt;

&lt;P&gt;I suppose setting root_endpoint should make all this work without outgoing rules? I am pointing root_endpoint to the proxy root offset, i.e. "/SplunkTest/"&lt;/P&gt;

&lt;P&gt;Any help is very appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2011 03:53:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Using-SSO-proxy-to-connect-to-multiple-AD-domain/m-p/37984#M1277</guid>
      <dc:creator>magnuspenilsson</dc:creator>
      <dc:date>2011-03-09T03:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using SSO proxy to connect to multiple AD domain</title>
      <link>https://community.splunk.com/t5/Security/Using-SSO-proxy-to-connect-to-multiple-AD-domain/m-p/37985#M1278</link>
      <description>&lt;P&gt;Have you found any further information or gotten this to work?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2015 21:47:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Using-SSO-proxy-to-connect-to-multiple-AD-domain/m-p/37985#M1278</guid>
      <dc:creator>csnidsplunk</dc:creator>
      <dc:date>2015-06-29T21:47:16Z</dc:date>
    </item>
  </channel>
</rss>

