<?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 [Fixed] Powershell &amp;amp; cDOT - &amp;quot;Incorrect credentials&amp;quot; error in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Fixed-Powershell-amp-cDOT-quot-Incorrect-credentials-quot-error/m-p/138871#M2616</link>
    <description>&lt;P&gt;I’m using the NetApp Powershell Toolkit to programmatically perform some tasks. After I establish a connection to my cluster using the admin credentials in Powershell, commands which are READ operations (Get-NcCifsShare) work fine, data comes back from the cluster without issue. However certain operations which WRITE (Add-NcCifsShare) return the following error:&lt;/P&gt;
&lt;PRE&gt;Add-NcCifsShare : Incorrect credentials for ATL-PRD-NTAP.
At line:3 char:5
+ Add-NcCifsShare -Name $srcShare.ShareName -Path ("/" + $mirror.De ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (SVM_CIFS:NcController) [Add-NcCifsShare], NaAuthException
+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Cifs.AddNcCifsShare&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt; Obviously my credentials are correct, because I’m able to return data.&lt;/P&gt;
&lt;P&gt;I’m wondering if this may be a SECURITY ROLE or API PERMISSIONS error, although I’m using ADMIN (also tried VSADMIN and connecting directly to an SVM, same effect) and I see that admin user is assigned admin role, which has permissions of “default", which seems to include permissions for all commands.&lt;/P&gt;
&lt;P&gt;Anyone see this? Anyone have ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:55:25 GMT</pubDate>
    <dc:creator>matthewf</dc:creator>
    <dc:date>2025-06-04T13:55:25Z</dc:date>
    <item>
      <title>[Fixed] Powershell &amp; cDOT - "Incorrect credentials" error</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Fixed-Powershell-amp-cDOT-quot-Incorrect-credentials-quot-error/m-p/138871#M2616</link>
      <description>&lt;P&gt;I’m using the NetApp Powershell Toolkit to programmatically perform some tasks. After I establish a connection to my cluster using the admin credentials in Powershell, commands which are READ operations (Get-NcCifsShare) work fine, data comes back from the cluster without issue. However certain operations which WRITE (Add-NcCifsShare) return the following error:&lt;/P&gt;
&lt;PRE&gt;Add-NcCifsShare : Incorrect credentials for ATL-PRD-NTAP.
At line:3 char:5
+ Add-NcCifsShare -Name $srcShare.ShareName -Path ("/" + $mirror.De ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (SVM_CIFS:NcController) [Add-NcCifsShare], NaAuthException
+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Cifs.AddNcCifsShare&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt; Obviously my credentials are correct, because I’m able to return data.&lt;/P&gt;
&lt;P&gt;I’m wondering if this may be a SECURITY ROLE or API PERMISSIONS error, although I’m using ADMIN (also tried VSADMIN and connecting directly to an SVM, same effect) and I see that admin user is assigned admin role, which has permissions of “default", which seems to include permissions for all commands.&lt;/P&gt;
&lt;P&gt;Anyone see this? Anyone have ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:55:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Fixed-Powershell-amp-cDOT-quot-Incorrect-credentials-quot-error/m-p/138871#M2616</guid>
      <dc:creator>matthewf</dc:creator>
      <dc:date>2025-06-04T13:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell &amp; cDOT - "Incorrect credentials" error</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Fixed-Powershell-amp-cDOT-quot-Incorrect-credentials-quot-error/m-p/138876#M2617</link>
      <description>&lt;P&gt;FIXED&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample of the command I was passing in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add-NcCifsShare -Name $name -Path ("/" + $name) -Comment "test share" -Controller $DestController -VserverContext $SVM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue was with the -Controller parameter. Removing it allows the command to run without an "incorrect credentials" error.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 21:37:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Fixed-Powershell-amp-cDOT-quot-Incorrect-credentials-quot-error/m-p/138876#M2617</guid>
      <dc:creator>matthewf</dc:creator>
      <dc:date>2018-03-14T21:37:17Z</dc:date>
    </item>
  </channel>
</rss>

