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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...