<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to edit authentication.conf via Rest (round 2)? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113976#M97628</link>
    <description>&lt;P&gt;$SPLUNK_HOME/etc/users/myusername/myappname/local/configfile.conf files are created when you set or modify a config in the "myappname" context, and the config change is scoped to be private to the user "myusername". This is what you did with you original call. If you changed the config to have app or global scope, it would move out of the /users/ folder to the app directory.&lt;/P&gt;

&lt;P&gt;it's generally not preferred to edit config files via the REST API. it's better to make the proper API call to make the change.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2014 04:09:05 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2014-04-01T04:09:05Z</dc:date>
    <item>
      <title>How to edit authentication.conf via Rest (round 2)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113974#M97626</link>
      <description>&lt;P&gt;I am trying to edit etc/system/local/authentication.conf via the rest API. I was advised to look at &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/RESTAPI/RESTconfigurations"&gt;Edit Configs via Rest&lt;/A&gt;; which seems to suggest something like the following should work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme &lt;A href="https://localhost:8089/servicesNS/admin/search/properties/authentication/roleMap_MyDomain/app1role" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/properties/authentication/roleMap_MyDomain/app1role&lt;/A&gt; -d value="groupA;groupB"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does not work though. Instead it creates a second authentication.conf.&lt;/P&gt;

&lt;P&gt;After running the curl command above, I get the following from grep -r "app1role" ./*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./system/local/authentication.conf: app1role = groupA
./users/admin/search/local/authentication.conf:app1role = groupA;groupB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;1) What does "user/admin/search" mapping even mean? &lt;BR /&gt;
2) If my goal is to edit the system/local version, what am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 23:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113974#M97626</guid>
      <dc:creator>juniormint</dc:creator>
      <dc:date>2014-03-31T23:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit authentication.conf via Rest (round 2)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113975#M97627</link>
      <description>&lt;P&gt;This seems to change system/local/authentication.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme &lt;A href="https://localhost:8089/services/properties/authentication/roleMap_MyDomain/app1role" target="test_blank"&gt;https://localhost:8089/services/properties/authentication/roleMap_MyDomain/app1role&lt;/A&gt; - d value="groupA;groupB" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Still not clear on #1&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 23:30:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113975#M97627</guid>
      <dc:creator>juniormint</dc:creator>
      <dc:date>2014-03-31T23:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit authentication.conf via Rest (round 2)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113976#M97628</link>
      <description>&lt;P&gt;$SPLUNK_HOME/etc/users/myusername/myappname/local/configfile.conf files are created when you set or modify a config in the "myappname" context, and the config change is scoped to be private to the user "myusername". This is what you did with you original call. If you changed the config to have app or global scope, it would move out of the /users/ folder to the app directory.&lt;/P&gt;

&lt;P&gt;it's generally not preferred to edit config files via the REST API. it's better to make the proper API call to make the change.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 04:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113976#M97628</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2014-04-01T04:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit authentication.conf via Rest (round 2)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113977#M97629</link>
      <description>&lt;P&gt;Thanks for your response. What would be an example of using the proper API call? What other way would you accomplish something like the above?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 12:41:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113977#M97629</guid>
      <dc:creator>juniormint</dc:creator>
      <dc:date>2014-04-01T12:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit authentication.conf via Rest (round 2)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113978#M97630</link>
      <description>&lt;P&gt;Just a note if somebody runs into the same problem we did:&lt;BR /&gt;
  ... -d value="groupA;groupB;groupC"&lt;BR /&gt;
everything after the first semicolon is cut and ignored, even though properly quoted in the command line.&lt;/P&gt;

&lt;P&gt;We could get around that by using the hex code representation for the semicolon:&lt;BR /&gt;
  ... -d value="groupA%3bgroupB&amp;amp;3bgroupC"&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 12:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-authentication-conf-via-Rest-round-2/m-p/113978#M97630</guid>
      <dc:creator>usd0872</dc:creator>
      <dc:date>2016-09-06T12:40:58Z</dc:date>
    </item>
  </channel>
</rss>

