<?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 Script to set ldaps settings in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Script-to-set-ldaps-settings/m-p/163184#M6313</link>
    <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I would like to set on more than 40 netapp cluster ontap 9.5+, ldaps configuration.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;So basically, we have to apply 2 commands on each cluster per svm connected to ldap for cifs purpose.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;certificate install -type server-ca -vserver SVM &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;+ insert certificate&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;vserver cifs security modify -vserver SVM -use-ldaps-for-ad-ldap true&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;And maybe additionally to check settings have been applied&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;cifs server security show&amp;nbsp; -vserver SVM -fields use-ldaps-for-ad-ldap&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;I had a look on powersheel toolkit but i don't think i can achieve this goal.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;Do you have any idea to apply this configuration on multiple cluster/svm by script/automatically ?&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 10:38:02 GMT</pubDate>
    <dc:creator>PierreC</dc:creator>
    <dc:date>2025-06-04T10:38:02Z</dc:date>
    <item>
      <title>Script to set ldaps settings</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Script-to-set-ldaps-settings/m-p/163184#M6313</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I would like to set on more than 40 netapp cluster ontap 9.5+, ldaps configuration.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;So basically, we have to apply 2 commands on each cluster per svm connected to ldap for cifs purpose.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;certificate install -type server-ca -vserver SVM &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;+ insert certificate&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;vserver cifs security modify -vserver SVM -use-ldaps-for-ad-ldap true&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;And maybe additionally to check settings have been applied&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;cifs server security show&amp;nbsp; -vserver SVM -fields use-ldaps-for-ad-ldap&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;I had a look on powersheel toolkit but i don't think i can achieve this goal.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4" color="#000000"&gt;Do you have any idea to apply this configuration on multiple cluster/svm by script/automatically ?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:38:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Script-to-set-ldaps-settings/m-p/163184#M6313</guid>
      <dc:creator>PierreC</dc:creator>
      <dc:date>2025-06-04T10:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script to set ldaps settings</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Script-to-set-ldaps-settings/m-p/163227#M6315</link>
      <description>&lt;P&gt;Start with a simple foreach loop to iterate through the list of your clusters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Install certificate&lt;/STRONG&gt;:&lt;EM&gt; Install-NcSecurityCertificate -Vserver &amp;lt;SVM&amp;gt; -Type &amp;lt;type&amp;gt; -Certificate &amp;lt;cert&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Modify CIFS security settings&lt;/STRONG&gt;: &lt;EM&gt;Set-NcCifsSecurity -VserverContext &amp;lt;vserver&amp;gt; -UseLdapsForAdLdap $true&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Validate settings have been applied successfully&lt;/STRONG&gt;: &lt;EM&gt;Get-NcSecurityCertificate&lt;/EM&gt; and &lt;EM&gt;Get-NcCifsSecurity&lt;/EM&gt; cmdlets, respectively.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may already know this, but the "Get-Command" and "Get-Help" cmdlets are awesome! I have not come across your specific use case before but just searched using Get-Command like this: &lt;EM&gt;"Get-Command -Module DataONTAP *security*"&lt;/EM&gt; and the CIFS security cmdlets were returned as results (among others). From there, I just used "Get-Help" for cmdlets that looked like what I wanted, and read the documentation to figure out the syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you write some code and are having struggles, post a thread and we'll help debug.&amp;nbsp;Hope it helps - happy automating!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Donny&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 18:41:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Script-to-set-ldaps-settings/m-p/163227#M6315</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2021-01-22T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script to set ldaps settings</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Script-to-set-ldaps-settings/m-p/163267#M6327</link>
      <description>&lt;P&gt;I will test it, i think that's what i need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 08:31:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Script-to-set-ldaps-settings/m-p/163267#M6327</guid>
      <dc:creator>PierreC</dc:creator>
      <dc:date>2021-01-25T08:31:56Z</dc:date>
    </item>
  </channel>
</rss>

