Skip to main content
NetApp Knowledge Base

SMB Users Unable to Write to UNIX Security‑Style CIFS Shares After LDAP Integration

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

Applies to

  • ONTAP 9
  • CIFS/SMB
  • LDAP

Issue

  • After LDAP/LDAPS (port 636) is configured for name‑service lookups, users getting "ACCESS DENIED" when writing or creating file/folders. Read access working as expected. 
  • SMB user mapped to default UNIX user `pcuser`

::> secd authentication show-creds -vserver <SVM> -win-name <DOMAIN\user>

UNIX UID: pcuser
Windows User: <DOMAIN\user>
GID: pcuser
Supplementary GIDs:
pcuser

  • Underlying directory uses UNIX 755 permissions

::> vserver security file-directory show -vserver <SVM> -path /vol/home/user

UNIX Mode Bits: 755
UNIX Mode Bits in Text: rwxr-xr-x
UNIX User Id: <user_uid>
UNIX Group Id: <user_gid>

  • Effective permissions show no write access

::> vserver security file-directory show-effective-permissions -vserver <SVM> -win-user-name <user> -path /vol/home/user

Effective File or Directory Permission: 0x1200b9
Read
Read EA
Write EA
Execute
Read Attributes
Read Control
Synchronize

  • ns-switch includes LDAP before NIS/files

::> vserver services name-service ns-switch show -vserver <SVM> -database passwd,group
passwd: files,ldap,nis
group : files,ldap,nis

  • LDAP cannot resolve UNIX users (no RFC2307 attributes)

::> vserver services name-service getpwbyname -vserver <SVM> -username <user>

Error: command failed: Failed to resolve <user>.
Reason: Entry not found for "username: <user>".

  • Explicit win → unix name‑mapping rules were properly configured

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.