Getting Data In

How to modify roles for an LDAP group with the REST API?

maurelio79
Communicator

Hi guys,

Sorry to bother you these days, but it's not so easy work with the REST API without some examples.
Now I need to change roles for an LDAP group: no example, no documentation at all.

Can someone please help me?

I know that the end point is

https://localhost:8089/services/configs/conf-authentication/LDP_PRD

but at this end point, no roles are visible. How can I modify roles for a certain LDAP group?

Thanks and regards.

0 Karma

frobinson_splun
Splunk Employee
Splunk Employee

Hi, @maurelio79,
I might suggest this previous Answers post as a start:
https://answers.splunk.com/answers/189726/determine-which-ldap-groups-are-mapped-to-roles-wi.html

This option involves using the Settings page, and not the REST API.

For the REST API option, here's a link to our REST API documentation on /configs/conf-{file}/{stanza}:
http://docs.splunk.com/Documentation/Splunk/6.3.0/RESTREF/RESTconf#POST_configs.2Fconf-.7Bfile.7D.2F...

If you are using a POST to this endpoint, you might want to double-check that you are passing in the correct stanza name for the setting you want to adjust in authentication.conf. See also:
http://docs.splunk.com/Documentation/Splunk/6.3.0/Admin/Authenticationconf

All best,
@frobinson_splunk

Get Updates on the Splunk Community!

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 ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...