<?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: Perl AIP name-mapping-unix-user-create in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-AIP-name-mapping-unix-user-create/m-p/120450#M1980</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the text you've posted, I'd say you haven't set your vserver context. If you look at the API docs for this call you'll see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;STRONG&gt;Family:&lt;/STRONG&gt;&lt;SPAN&gt; vserver]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which means this call is only valid if you're talking to (or have selected) a vserver. You can't run this API against the cluster itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You'll want to do something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $s-&amp;gt;set_vserver("vservername");&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Where $s is your connection to the cluster, and vservername is of course the name of your vserver.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--rdp&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2016 16:01:42 GMT</pubDate>
    <dc:creator>richard_payne</dc:creator>
    <dc:date>2016-06-21T16:01:42Z</dc:date>
    <item>
      <title>Perl AIP name-mapping-unix-user-create</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-AIP-name-mapping-unix-user-create/m-p/120443#M1979</link>
      <description>&lt;P&gt;I've just started using the Perl API so forgive my ignorance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to add new Unix user to a SVM and according to the documentation, the appropriate call is name-mapping-unix-user-create.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;use lib '/netapp-manageability-sdk-5.4/lib/perl/NetApp';
use NaServer;
use NaElement;

$in = NaElement-&amp;gt;new("name-mapping-unix-user-create");
$in-&amp;gt;child_add_string("user-name",$u);
$in-&amp;gt;child_add_string("user-id",$uid);
$in-&amp;gt;child_add_string("group-id",$gid);
$in-&amp;gt;child_add_string("full-name",$name);

$response = $s-&amp;gt;invoke_elem($in);&lt;/PRE&gt;&lt;P&gt;When this code runs I get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Unable to find API: name-mapping-unix-user-create&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something obvious? All of my other API calls and Cluster connecttions work. This is the first one that bombs.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 20:19:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-AIP-name-mapping-unix-user-create/m-p/120443#M1979</guid>
      <dc:creator>JohnBill</dc:creator>
      <dc:date>2025-06-04T20:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Perl AIP name-mapping-unix-user-create</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-AIP-name-mapping-unix-user-create/m-p/120450#M1980</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the text you've posted, I'd say you haven't set your vserver context. If you look at the API docs for this call you'll see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;STRONG&gt;Family:&lt;/STRONG&gt;&lt;SPAN&gt; vserver]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which means this call is only valid if you're talking to (or have selected) a vserver. You can't run this API against the cluster itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You'll want to do something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $s-&amp;gt;set_vserver("vservername");&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Where $s is your connection to the cluster, and vservername is of course the name of your vserver.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--rdp&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 16:01:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-AIP-name-mapping-unix-user-create/m-p/120450#M1980</guid>
      <dc:creator>richard_payne</dc:creator>
      <dc:date>2016-06-21T16:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Perl AIP name-mapping-unix-user-create</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-AIP-name-mapping-unix-user-create/m-p/120455#M1982</link>
      <description>&lt;P&gt;I added the following. I also included my connection code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$s = NaServer-&amp;gt;new ($filer, 1, 0);
if (ref ($response) eq "NaElement" &amp;amp;&amp;amp; $response-&amp;gt;results_errno != 0) {
        $r = $response-&amp;gt;results_reason();
        print "Unable to set authentication style $r\n";
        exit 2;
}

$s-&amp;gt;set_admin_user($user, $pw);
$response = $s-&amp;gt;set_transport_type('HTTP');
if (ref ($response) eq "NaElement" &amp;amp;&amp;amp; $response-&amp;gt;results_errno != 0) {
        $r = $response-&amp;gt;results_reason();
        print "Unable to set HTTP transport $r\n";
        exit 2;
}

$s-&amp;gt;set_vserver("cifs1");
$in = NaElement-&amp;gt;new("name-mapping-unix-user-create");
$in-&amp;gt;child_add_string("user-name",$u);
$in-&amp;gt;child_add_string("user-id",$uid);
$in-&amp;gt;child_add_string("group-id",$gid);
$in-&amp;gt;child_add_string("full-name",$name);

$response = $s-&amp;gt;invoke_elem($in);&lt;/PRE&gt;&lt;P&gt;Same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Unable to find API: name-mapping-unix-user-create&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 16:55:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-AIP-name-mapping-unix-user-create/m-p/120455#M1982</guid>
      <dc:creator>JohnBill</dc:creator>
      <dc:date>2016-06-21T16:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Perl AIP name-mapping-unix-user-create</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-AIP-name-mapping-unix-user-create/m-p/120457#M1983</link>
      <description>&lt;P&gt;Which version of cDot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just ran that code against an cluster running 8.3.1P2: and it worked fine. I even ran a 'name-mapping-unix-user-get-iter'&amp;nbsp; afterwards and saw the account i just added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--rdp&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 17:15:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-AIP-name-mapping-unix-user-create/m-p/120457#M1983</guid>
      <dc:creator>richard_payne</dc:creator>
      <dc:date>2016-06-21T17:15:57Z</dc:date>
    </item>
  </channel>
</rss>

