<?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: No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594132#M10554</link>
    <description>&lt;P&gt;There's no restriction there but that was my next question - are you able to verify the permissions on the local user to ensure they have all the same permissions as the AD user? Also since you're passing the password in the curl command, make sure there aren't any special characters in the password that the shell might be interpreting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a test, any user should be able to query this REST endpoint, so that would help you eliminate password issues:&lt;/P&gt;&lt;PRE&gt;curl -k -u user:temp1234 &lt;A href="https://localhost:8089/services/authentication/current-context" target="_blank"&gt;https://localhost:8089/services/authentication/current-context&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;If that command fails, there's an issue with the credentials you're providing.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 18:04:24 GMT</pubDate>
    <dc:creator>mcmaster</dc:creator>
    <dc:date>2022-04-18T18:04:24Z</dc:date>
    <item>
      <title>No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap use</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/593976#M10549</link>
      <description>&lt;P&gt;Assistance/advice greatly appreciated;&lt;/P&gt;&lt;P&gt;I am able to login to splunk web with a Splunk Native user, but via a perl script I get an unauhorized response&lt;/P&gt;&lt;P&gt;Excerpt from perl script :&amp;nbsp;&lt;/P&gt;&lt;P&gt;$post = $ua-&amp;gt;post(&lt;BR /&gt;"&lt;A href="https://prod-forwardermanagement-splunk-vip.xxxx.uk:8089/servicesNS/$app/auth/login" target="_blank" rel="noopener"&gt;https://prod-forwardermanagement-splunk-vip.xxxx.uk:8089/servicesNS/$app/auth/login&lt;/A&gt;",&lt;BR /&gt;Content =&amp;gt; "username=$username&amp;amp;password=$password"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;This is the response:&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;response&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;&amp;lt;msg type="ERROR"&amp;gt;Unauthorized&amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 09:43:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/593976#M10549</guid>
      <dc:creator>jemina</dc:creator>
      <dc:date>2022-04-17T09:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594088#M10550</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244966"&gt;@jemina&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To use the endpoints with &lt;FONT face="andale mono,times"&gt;/servicesNS/&lt;/FONT&gt; you need to specify an app AND a user. For login, you can just use /services/auth/login but you could also try &lt;FONT face="andale mono,times"&gt;/servicesNS/$username/$app/auth/login&lt;/FONT&gt; or even &lt;FONT face="andale mono,times"&gt;/servicesNS/-/$app/auth/login&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;Try those out and see if they work.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 15:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594088#M10550</guid>
      <dc:creator>mcmaster</dc:creator>
      <dc:date>2022-04-18T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594095#M10551</link>
      <description>&lt;P&gt;Thanks for response,&lt;/P&gt;&lt;P&gt;I am actually testing using the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -k -u splunkuser:password &lt;A href="https://prod-forwardermanagement-splunk.xxxxx.co.uk:8089/servicesNS/admin/search/search/jobs" target="_blank"&gt;https://prod-forwardermanagement-splunk.xxxxx.co.uk:8089/servicesNS/admin/search/search/jobs&lt;/A&gt; --data-urlencode search="search sourcetype=dp_prod"&lt;/P&gt;&lt;P&gt;It always returns unauthorized for the&amp;nbsp; Splunk Native User (with admin role). No sessionkey is returned. If I try my Active Directory user, the results SID is returned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything specific I need to do a Splunk Native user?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 16:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594095#M10551</guid>
      <dc:creator>jemina</dc:creator>
      <dc:date>2022-04-18T16:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594121#M10552</link>
      <description>&lt;P&gt;I'm able to use that same command with a Splunk local user on my test instance, so I don't know if that's the issue. I assume you're able to login as the local user and run the search interactively, right?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 17:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594121#M10552</guid>
      <dc:creator>mcmaster</dc:creator>
      <dc:date>2022-04-18T17:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594126#M10553</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I am able to login to my splunk instance using the same credentials. I just wondered if there might be an &lt;SPAN&gt;overarching&amp;nbsp;&lt;/SPAN&gt;config parameter which might preclude Splunk Native users from the admin role.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 17:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594126#M10553</guid>
      <dc:creator>jemina</dc:creator>
      <dc:date>2022-04-18T17:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594132#M10554</link>
      <description>&lt;P&gt;There's no restriction there but that was my next question - are you able to verify the permissions on the local user to ensure they have all the same permissions as the AD user? Also since you're passing the password in the curl command, make sure there aren't any special characters in the password that the shell might be interpreting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a test, any user should be able to query this REST endpoint, so that would help you eliminate password issues:&lt;/P&gt;&lt;PRE&gt;curl -k -u user:temp1234 &lt;A href="https://localhost:8089/services/authentication/current-context" target="_blank"&gt;https://localhost:8089/services/authentication/current-context&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;If that command fails, there's an issue with the credentials you're providing.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 18:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594132#M10554</guid>
      <dc:creator>mcmaster</dc:creator>
      <dc:date>2022-04-18T18:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594145#M10555</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also get an unauthorized&amp;nbsp; error message returned for https://......./services/authentication/current-context.&lt;/P&gt;&lt;P&gt;The credentials do not contain any special characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am definitely using correct user/password combination, so a little confused as the user works fine via the browser.&lt;/P&gt;&lt;P&gt;Please are you able to point me a splunk log file might help me understand this issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 19:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594145#M10555</guid>
      <dc:creator>jemina</dc:creator>
      <dc:date>2022-04-18T19:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594147#M10556</link>
      <description>&lt;P&gt;You can look for&amp;nbsp;AuthenticationManagerSplunk in $SPLUNK_HOME/var/log/splunk/splunkd.log or you can search "index=_internal sourcetype=splunkd component=AuthenticationManagerSplunk".&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what those logs look like for me with an incorrect password:&lt;/P&gt;&lt;PRE&gt;04-18-2022 15:19:57.814 -0400 WARN AuthenticationManagerSplunk [315578 TcpChannelThread] - Login failed. Incorrect login for user: user&lt;BR /&gt;04-18-2022 15:19:57.816 -0400 WARN AuthenticationManagerSplunk [315578 TcpChannelThread] - Login: user user attempted login with incorrect password. Login attempt=1&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Apr 2022 19:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594147#M10556</guid>
      <dc:creator>mcmaster</dc:creator>
      <dc:date>2022-04-18T19:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594150#M10557</link>
      <description>&lt;P&gt;Thanks for that,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the following errors when I the restapi call: (strange , this user is a splunk native user.)&lt;/P&gt;&lt;P&gt;1 -&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;ERROR&lt;/SPAN&gt; &lt;SPAN class=""&gt;UserManagerPro&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;LDAP&lt;/SPAN&gt; &lt;SPAN class=""&gt;Login&lt;/SPAN&gt; &lt;SPAN class=""&gt;failed&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;could&lt;/SPAN&gt; &lt;SPAN class=""&gt;not&lt;/SPAN&gt; &lt;SPAN class=""&gt;find&lt;/SPAN&gt; &lt;SPAN class=""&gt;a&lt;/SPAN&gt; &lt;SPAN class=""&gt;valid&lt;/SPAN&gt; &lt;SPAN class=""&gt;user=&lt;/SPAN&gt;&lt;SPAN&gt;"monitoruser&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;SPAN class=""&gt;on&lt;/SPAN&gt; &lt;SPAN class=""&gt;any&lt;/SPAN&gt; &lt;SPAN class=""&gt;configured&lt;/SPAN&gt; &lt;SPAN class=""&gt;servers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 -&amp;nbsp;&lt;SPAN class=""&gt;INFO&lt;/SPAN&gt; &lt;SPAN class=""&gt;AuthenticationManagerLDAP&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;Could&lt;/SPAN&gt; &lt;SPAN class=""&gt;not&lt;/SPAN&gt; &lt;SPAN class=""&gt;find&lt;/SPAN&gt; &lt;SPAN class=""&gt;user=&lt;/SPAN&gt;&lt;SPAN&gt;"monitoruser&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;SPAN class=""&gt;with&lt;/SPAN&gt; &lt;SPAN class=""&gt;strategy=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;SplunkAdmin"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 19:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594150#M10557</guid>
      <dc:creator>jemina</dc:creator>
      <dc:date>2022-04-18T19:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: No authorizatiion for Splunk native user with admin role from perl script restapi search, same script works for ldap</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594152#M10558</link>
      <description>&lt;P&gt;That's normal, as Splunk will try any configured LDAP servers first before trying local users. Are there any other logs for that user?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 20:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/No-authorizatiion-for-Splunk-native-user-with-admin-role-from/m-p/594152#M10558</guid>
      <dc:creator>mcmaster</dc:creator>
      <dc:date>2022-04-18T20:02:23Z</dc:date>
    </item>
  </channel>
</rss>

