<?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 Why am I getting &amp;quot;No valid splunk role found in the local mapping or assertion.&amp;quot; when local mapping exists? in Security</title>
    <link>https://community.splunk.com/t5/Security/Why-am-I-getting-quot-No-valid-splunk-role-found-in-the-local/m-p/232107#M6554</link>
    <description>&lt;P&gt;I am trying to set up SSO with Splunk. I configured IdP, configured Splunk (authentication.conf) and it almost goes through.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Splunk POST SAML request to IdP&lt;/LI&gt;
&lt;LI&gt;IdP creates SAML assertions and sends it to Splunk&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;However, Splunk shows this error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;No valid splunk role found in the  local mapping or assertion.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My authentication.conf file contains this section (which I assume to be a map between a username and a role)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [userToRoleMap_SAML]
 myuser@mydomain.com = admin;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I see that in the assertion:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;Subject&amp;gt;&amp;lt;NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"&amp;gt;myuser@mydomain.com&amp;lt;/NameID&amp;gt;...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My question is: What am I missing? (I assumed that it should be enough for it to work)&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2016 04:44:07 GMT</pubDate>
    <dc:creator>vronin</dc:creator>
    <dc:date>2016-08-18T04:44:07Z</dc:date>
    <item>
      <title>Why am I getting "No valid splunk role found in the local mapping or assertion." when local mapping exists?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-quot-No-valid-splunk-role-found-in-the-local/m-p/232107#M6554</link>
      <description>&lt;P&gt;I am trying to set up SSO with Splunk. I configured IdP, configured Splunk (authentication.conf) and it almost goes through.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Splunk POST SAML request to IdP&lt;/LI&gt;
&lt;LI&gt;IdP creates SAML assertions and sends it to Splunk&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;However, Splunk shows this error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;No valid splunk role found in the  local mapping or assertion.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My authentication.conf file contains this section (which I assume to be a map between a username and a role)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [userToRoleMap_SAML]
 myuser@mydomain.com = admin;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I see that in the assertion:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;Subject&amp;gt;&amp;lt;NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"&amp;gt;myuser@mydomain.com&amp;lt;/NameID&amp;gt;...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My question is: What am I missing? (I assumed that it should be enough for it to work)&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 04:44:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-quot-No-valid-splunk-role-found-in-the-local/m-p/232107#M6554</guid>
      <dc:creator>vronin</dc:creator>
      <dc:date>2016-08-18T04:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting "No valid splunk role found in the local mapping or assertion." when local mapping exists?</title>
      <link>https://community.splunk.com/t5/Security/Why-am-I-getting-quot-No-valid-splunk-role-found-in-the-local/m-p/232108#M6555</link>
      <description>&lt;P&gt;Which IdP are you using?  Your IdP needs to include the role attribute in the assertion.  The role attribute value must be in the format of  "&lt;STRONG&gt;cn=myrole,dc=myfqdn,dc=com&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;AFAIK, The userToRoleMap stanza is only used in place of Attribute Queries.  For initial authentication your IdP still needs to pass the role attribute.  Did you also set the &lt;STRONG&gt;skipAttributeQueryRequestForUsers&lt;/STRONG&gt; option for authentication.conf?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:30:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-am-I-getting-quot-No-valid-splunk-role-found-in-the-local/m-p/232108#M6555</guid>
      <dc:creator>suarezry</dc:creator>
      <dc:date>2016-09-06T18:30:41Z</dc:date>
    </item>
  </channel>
</rss>

