Security

Why am I getting "No valid splunk role found in the local mapping or assertion." when local mapping exists?

vronin
New Member

I am trying to set up SSO with Splunk. I configured IdP, configured Splunk (authentication.conf) and it almost goes through.

  • Splunk POST SAML request to IdP
  • IdP creates SAML assertions and sends it to Splunk

However, Splunk shows this error:

No valid splunk role found in the  local mapping or assertion.

My authentication.conf file contains this section (which I assume to be a map between a username and a role)

 [userToRoleMap_SAML]
 myuser@mydomain.com = admin;

And I see that in the assertion:

 <Subject><NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">myuser@mydomain.com</NameID>...

My question is: What am I missing? (I assumed that it should be enough for it to work)

0 Karma

suarezry
Builder

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 "cn=myrole,dc=myfqdn,dc=com"

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 skipAttributeQueryRequestForUsers option for authentication.conf?

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...