Hi,
We're trying to setup our Netapp with Mixed Protocol access for NFS and CIFS.
When we write a file from Windows, the files show as nobody:nobody on the Linux NFSv4 mount. We want to map usernames and groups between CIFS and NFS, so files written show the same user and group.
-rwxrwxrwx 1 nobody nobody 0 Aug 30 12:59 file01.txt
We've configured ldap on our Netapp to handle the Windows to Unix username resolution. Our ns-switch is configured for ldap then files.
Usernames are 1:1 mapping between Windows and Unix. We have not setup any name mapping on the Netapp.
When we show the effective permissions for an Active Directory test account, we can see it maps to 'pcuser' in Unix. We'd expect the Unix User name to be testuser01.
netapp01::> vserver security file-directory show-effective-permissions -vserver testvserver01 -win-user-name testuser01 -path / -share-name testshare01
Vserver:testvserver01
Windows User Name: testuser01
Unix User Name: pcuser
File Path: /
CIFS Share Path: /testshare01
When we write a file to the same share from Linux NFS, we can see the correct username and group for the files.
-rw-r----- 1 testuser01 testgroup01 0 Aug 31 06:35 file02
We are using SSSD with ID Mapping on the Linux client, we have tested by disabling SSSD ID Mapping and adding the UID and GID to unix attributes for the testuser01 account in Active Directory User Properties. We still have the same issue.
Our security style is set to 'unix' on our Netapp.
We're using a 'simple' bind account for our ldap connection and are confident the netapp can communicate to AD for Windows Username resolution.
This is an issue writing files from Windows and showing the correct username and group on Linux NFSv4 mounts. I have tested with NFSv3 and get the same issue.
We are running NetApp Release 9.5P4.
We've tried disconnecting the CIFS drive mapping, restarting CIFS, mapping the CIFS share and remounting NFS. But as we're unable to map win-unix names on the Netapp.
Any help here would be appreciated.
Thanks,