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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...