Security

Authenticate to REST API through LDAP or SAML?

sjcoluccio67
Explorer

Hi,
Is there a way to authenticate to the API through LDAP or SAML? right now, the only way I can authenticate is by using a local static account that I have configured to have API access. However, our security policy prohibits the use of local unmanaged accounts. I have SAML authentication configured for web access, but when I try to use those same AD credentials to authenticate to the API it does not work.

Thanks!

0 Karma

erwip002
New Member

According to Splunk documentation, you can uses SAML with tokens:

"Create authentication tokens to use the REST APIs. Tokens are available for both native Splunk authentication and external authentication through either the LDAP or SAML schemes. To learn more about setting up authentication with tokens, see Set up authentication with tokens  in the Securing Splunk Enterprise manual."

There are some SAML side requirements such as (per token doc):  "Single Sign-On (SSO) schemes that use SAML. These schemes must either support Attribute Query Requests (AQR) or provide information through scripted authentication extensions."

Hope this helps!

Tags (2)
0 Karma

jtacy
Builder

LDAP works fine, but using SAML for the CLI or API doesn't appear to be supported. See the "Unable to authenticate SSO users for CLI commands" issue at:
http://docs.splunk.com/Documentation/Splunk/7.0.0/Security/TroubleshootSAMLSSO

0 Karma

daniel_kwok72
Explorer

I am facing the same issue here. We have SAML configured for the web access, but I am not able to use the same AD credential to authenticate to the API. I am getting "Login Failed" as the response from the API. I noted that on the Splunk Cloud documentation, it mentions that "You cannot use SAML authentication with the REST API. ", will this apply to Splunk Enterprise as well? Is this a production limitation or is there a different to configure SAML to get around the issue?

0 Karma

traxxasbreaker
Communicator

Does your AD account have restrictions on which hosts it can login from? I find that I can only make accounts work via the API if they do not have restricted login hosts, or are restricted to the hosts running Splunk (if they are domain members).

0 Karma

daniel_kwok72
Explorer

I am keen to see what you are doing to resolve this issue. Have you contacted Splunk support in regards to this?

0 Karma

daniel_kwok72
Explorer

I am facing the same issue here, I do notice Splunk mentioned this on the Splunk Cloud REST API documentation: "You cannot use SAML authentication with the REST API. ". Not sure if the same applies to Splunk Enterprise.

0 Karma

sjcoluccio67
Explorer

I do not believe our accounts are restricted. I am checking with our AD admins but i am almost certain they are not.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...