Skip to main content
NetApp Knowledge Base

NFS user gets "Permission denied" because LDAP request for gidnumbers times out because MemberUid is not indexed in AD

Views:
614
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

  • ONTAP 9
  • LDAP client schema
  • Active Directory

Issue

  • Unix user gets Permission denied when trying to access data on Unix security-style volume via NFS
  • file-directory show says that certain Unix groups are allowed to access the data
  • Those groups are in the Unix user's list of auxiliary groups
  • ns-switch uses ldap as a source for the group database
    • ::> ns-switch show -vserver svm1 -database group
        (vserver services name-service ns-switch show)
                           Vserver: svm1 
      Name Service Switch Database: group
         Name Service Source Order: files, ldap
  • -auth-sys-extended-groups is enabled
    • ::> nfs show -vserver svm1 -fields auth-sys-extended-groups
      vserver        auth-sys-extended-groups
      -------------- ------------------------
      svm1           enabled
      
  • getxxbyyy getgrlist only shows the user's primary gidnumber, none of the user's auxiliary gidnumbers
    • ::*> getxxbyyy getgrlist -node node1 -vserver svm1 -username user1 -use-cache false
        (vserver services name-service getxxbyyy getgrlist)
      pw_name: user1
      Groups: 1234567 1234567
  • The active LDAP schema contains RFC 2307 memberUid Attribute: memberUid, Enable Support for Draft RFC 2307bis: true, and RFC 2307bis uniqueMember Attribute: Member
    • ::> ldap show -vserver svm1
                               Vserver: svm1
             LDAP Client Configuration: ldap_client_1
    • ::>ldap client show -vserver svm1 -client-config ldap_client_1 -fields schema
      vserver     client-config schema
      ----------- ------------- ---------
      svm1        ldap_client_1 schema_name
      
    • ::> ldap client schema show -schema schema_name -vserver svm1 -fields enable-rfc2307bis,member-uid-attribute,unique-member-attribute
      vserver        schema           member-uid-attribute enable-rfc2307bis unique-member-attribute
      -------------- ---------------- -------------------- ----------------- -----------------------
      svm1           schema_name      memberUid            true              Member
  • The LDAP server is an Active Directory domain controller
    • ::> ldap client show -fields ad-domain -vserver svm1
      vserver     client-config ad-domain
      ----------- ------------- -----------
      svm1        ldap_client_1 constoso.com
  • Packet trace shows that 
    • ONTAP sends the LDAP server an LDAP searchRequest that contains the search filter (memberUid=username)
      • Lightweight Directory Access Protocol
            SASL Buffer
                GSS-API payload (256 bytes)
                    LDAPMessage searchRequest(8) "DC=CONTOSO,DC=com" wholeSubtree
                        protocolOp: searchRequest (3)
                            searchRequest
                                Filter: (&(|(objectClass=group)(objectClass=Group))(|(memberUid=user1)(Member=CN=user1,OU=SystemAccounts,DC=CONTOSO,DC=com)))
    • The LDAP server does not send a response
    • ONTAP sends abandonRequest: 8 to the LDAP server
  • If the same search filter is run directly on the Active Directory host using Powershell, the search filter completes after a duration that exceeds ONTAP's LDAP query timeout
    • PS> Measure-Command{ get-ADGroup -LDAPFilter '(&(|(objectClass=group)(objectClass=Group))(|(memberUid=user1)(Member=CN=user1,OU=SystemAccounts,DC=CONTOSO,DC=com)))' -SearchBase 'DC=CONTOSO,DC=com' }
      
      
      Days              : 0
      Hours             : 0
      Minutes           : 0
      Seconds           : 19
      Milliseconds      : 124
      
    • ::> ldap client show -fields query-timeout -vserver svm1 -client-config test
      vserver client-config query-timeout
      ------- ------------- -------------
      svm1    ldap_client_1 10

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.