<?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 LDAP in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/LDAP/m-p/109955#M23237</link>
    <description>&lt;P&gt;We are having a slight problem with group permissions on shared CIFS volumes. We are using LDAP for authenication for our Linux users, but we also use Windows machines and want to allow acces to shared resources eg project directories (qtrees with security style unix on the NetApp)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The userid mapping between Linux and Windows works fine, as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;diag secd authentication show-creds -node netapp1 -vserver svm_nas_04 -unix-user-name marg&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UNIX UID: marg &amp;lt;&amp;gt; Windows User: AD\marg (Domain User)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we have a qtree, shared as a project directory psa&lt;BR /&gt;&lt;STRONG&gt;92305782 drwxrws--- 18 ad67 psa 4096 Aug 14 10:26 psa&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The user ad67 should have access to it, along with any member of the psa user group. This all works correctly with Linux, but in Windows the user marg (a member of the psa user group) is denied access&lt;/P&gt;&lt;P&gt;In the secd log :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;00000011.00459fd7 03f88bde Thu Sep 10 2015 13:30:22 +01:00 [kern_secd:info:4225] | [000.006.633] debug: Searching LDAP for the "uid" attribute(s) within base "ou=People,dc=nisdb,dc=ourdom" (scope: 2) using filter: (&amp;amp;(objectClass=posixAccount)(&lt;FONT color="#FF0000"&gt;windowsAccount=ad\5cmarg)&lt;/FONT&gt;) { in searchLdap() at utils/secd_ldap_utils.cpp:280 }&lt;/P&gt;&lt;P&gt;00000011.00459fd8 03f88bde Thu Sep 10 2015 13:30:22 +01:00 [kern_secd:info:4225] | [000.008.445] debug: Could not find IDs for local unix user marg for vserver 7 { in getIdsFromUserName() at authorization/secd_local_unix_authorization.cpp:154 }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So NetApp is using the LDAP attibute 'windowsAccount' to authenicate even though the security style is set to unix, whhich is suprising, but explains why authenication fails as our&lt;/P&gt;&lt;P&gt;OpenLDAP schema does not include the windowsAccount attribute&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On our NetApp it is part of the scema&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;services ldap client schema show -vserver svm_nas_04 -instance -schema OUR-TEMPLATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Vserver: svm_nas_04&lt;BR /&gt;Schema Template: OUR-TEMPLATE&lt;BR /&gt;Comment:&lt;BR /&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RFC 2307 nisNetgroupTriple Attribute: nisNetgroupTriple&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; ONTAP Name Mapping windowsAccount Attribute: &lt;FONT color="#FF0000"&gt;windowsAccount&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vserver Owns Schema: false&lt;/FONT&gt;&lt;BR /&gt;&amp;lt;snip&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if we added this attribute to our LDAP schema, and we populate it this should work (I think).&lt;/P&gt;&lt;P&gt;My questions are;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;1) Have I missed anything.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Can NetApps LDAP query be set to use &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;(&amp;amp;(objectClass=posixAccount)(uid=marg))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;(&amp;amp;(objectClass=posixAccount)(uidNumber=10400))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;as query strings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3) Where can we get a template definition of the windowsAccount attribute.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 23:16:29 GMT</pubDate>
    <dc:creator>TJSTEWATE4</dc:creator>
    <dc:date>2025-06-04T23:16:29Z</dc:date>
    <item>
      <title>LDAP</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/LDAP/m-p/109955#M23237</link>
      <description>&lt;P&gt;We are having a slight problem with group permissions on shared CIFS volumes. We are using LDAP for authenication for our Linux users, but we also use Windows machines and want to allow acces to shared resources eg project directories (qtrees with security style unix on the NetApp)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The userid mapping between Linux and Windows works fine, as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;diag secd authentication show-creds -node netapp1 -vserver svm_nas_04 -unix-user-name marg&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UNIX UID: marg &amp;lt;&amp;gt; Windows User: AD\marg (Domain User)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we have a qtree, shared as a project directory psa&lt;BR /&gt;&lt;STRONG&gt;92305782 drwxrws--- 18 ad67 psa 4096 Aug 14 10:26 psa&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The user ad67 should have access to it, along with any member of the psa user group. This all works correctly with Linux, but in Windows the user marg (a member of the psa user group) is denied access&lt;/P&gt;&lt;P&gt;In the secd log :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;00000011.00459fd7 03f88bde Thu Sep 10 2015 13:30:22 +01:00 [kern_secd:info:4225] | [000.006.633] debug: Searching LDAP for the "uid" attribute(s) within base "ou=People,dc=nisdb,dc=ourdom" (scope: 2) using filter: (&amp;amp;(objectClass=posixAccount)(&lt;FONT color="#FF0000"&gt;windowsAccount=ad\5cmarg)&lt;/FONT&gt;) { in searchLdap() at utils/secd_ldap_utils.cpp:280 }&lt;/P&gt;&lt;P&gt;00000011.00459fd8 03f88bde Thu Sep 10 2015 13:30:22 +01:00 [kern_secd:info:4225] | [000.008.445] debug: Could not find IDs for local unix user marg for vserver 7 { in getIdsFromUserName() at authorization/secd_local_unix_authorization.cpp:154 }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So NetApp is using the LDAP attibute 'windowsAccount' to authenicate even though the security style is set to unix, whhich is suprising, but explains why authenication fails as our&lt;/P&gt;&lt;P&gt;OpenLDAP schema does not include the windowsAccount attribute&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On our NetApp it is part of the scema&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;services ldap client schema show -vserver svm_nas_04 -instance -schema OUR-TEMPLATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Vserver: svm_nas_04&lt;BR /&gt;Schema Template: OUR-TEMPLATE&lt;BR /&gt;Comment:&lt;BR /&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RFC 2307 nisNetgroupTriple Attribute: nisNetgroupTriple&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; ONTAP Name Mapping windowsAccount Attribute: &lt;FONT color="#FF0000"&gt;windowsAccount&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vserver Owns Schema: false&lt;/FONT&gt;&lt;BR /&gt;&amp;lt;snip&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if we added this attribute to our LDAP schema, and we populate it this should work (I think).&lt;/P&gt;&lt;P&gt;My questions are;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;1) Have I missed anything.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Can NetApps LDAP query be set to use &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;(&amp;amp;(objectClass=posixAccount)(uid=marg))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;(&amp;amp;(objectClass=posixAccount)(uidNumber=10400))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;as query strings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3) Where can we get a template definition of the windowsAccount attribute.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 23:16:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/LDAP/m-p/109955#M23237</guid>
      <dc:creator>TJSTEWATE4</dc:creator>
      <dc:date>2025-06-04T23:16:29Z</dc:date>
    </item>
  </channel>
</rss>

