<?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: Inconsistent Behavior Using HOSTS Authentication in API in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Inconsistent-Behavior-Using-HOSTS-Authentication-in-API/m-p/1172#M6</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same behavior with and without the &lt;SPAN style="font-family: 'courier new', courier;"&gt;set_admin_user&lt;/SPAN&gt; call, and yes, I am running the script as root.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2012 17:01:39 GMT</pubDate>
    <dc:creator>bdstevens</dc:creator>
    <dc:date>2012-05-11T17:01:39Z</dc:date>
    <item>
      <title>Inconsistent Behavior Using HOSTS Authentication in API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Inconsistent-Behavior-Using-HOSTS-Authentication-in-API/m-p/1162#M4</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to use the Ruby API library. I don't like the idea of storing passwords in scripts, so I want to use HOSTS authentication (only marginally better, but that's the choice I get). I created a terribly simple script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;require 'NaServer'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;filer = NaServer::new('hen01', 1, 15)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;filer.set_admin_user('root', '')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;filer.set_style "HOSTS"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;output = filer.invoke("system-get-version")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if(output.results_errno != 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; puts "Error: " + output.results_reason&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; puts "DOT version is: " + output.child_get_string("version") + "\n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;end&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can run this script over and over and about 20% of the time I get the server version back and about 80% of the time I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;User&amp;nbsp; does not have capability to invoke API system-get-version.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Notice there is an extra space after "User", implying an empty string in the output, implying the username isn't being procured correctly.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have similar experience(s) and/or suggestions on how to make this consistently work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:27:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Inconsistent-Behavior-Using-HOSTS-Authentication-in-API/m-p/1162#M4</guid>
      <dc:creator>bdstevens</dc:creator>
      <dc:date>2025-06-05T06:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior Using HOSTS Authentication in API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Inconsistent-Behavior-Using-HOSTS-Authentication-in-API/m-p/1167#M5</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try removing '&lt;SPAN style="font-family: 'courier new',courier;"&gt;filer.set_admin_user&lt;/SPAN&gt;' statement?&lt;/P&gt;&lt;P&gt;In case of "HOSTS" style, username and password need not be set.&lt;/P&gt;&lt;P&gt;Also, ensure that you are root user while executing the script on the client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 16:56:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Inconsistent-Behavior-Using-HOSTS-Authentication-in-API/m-p/1167#M5</guid>
      <dc:creator>sens</dc:creator>
      <dc:date>2012-05-11T16:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior Using HOSTS Authentication in API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Inconsistent-Behavior-Using-HOSTS-Authentication-in-API/m-p/1172#M6</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same behavior with and without the &lt;SPAN style="font-family: 'courier new', courier;"&gt;set_admin_user&lt;/SPAN&gt; call, and yes, I am running the script as root.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 17:01:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Inconsistent-Behavior-Using-HOSTS-Authentication-in-API/m-p/1172#M6</guid>
      <dc:creator>bdstevens</dc:creator>
      <dc:date>2012-05-11T17:01:39Z</dc:date>
    </item>
  </channel>
</rss>

