Hello all,
Following the excellent guide TR-4616 by @parisi we managed to configure a test environment for NFS4 + Kerberos
We have :
- Active Directory KDC (Windows 2016) renamed "MY.REALM" in the next few lines
- Netapp 9.8P4 SVM (SVMP_NFS4) with configured REALM interface, NFS/ SPN, name-mapping, etc. as described in TR-4616
- volume (unix security-style) exported via default export-policy allowing every access for krb5* protocols
- Debian 10 client joined to the domain with a valid ticket (klist -ke with good SPN, aes ciphers, etc.)
So far, we managed to mount an NFS4 export through fstab file using the machine Kerberos ticket.
Navigating through the mounted directory as (local) root user is ok, can mkdir/touch/rmdir/etc.
Now we would like to interact with ActiveDirectory Users.
# id myUser@MY.REALM
gives the identity of myUser in AD mapped by idmapd
# su myUser@MY.REALM
is also ok.
I would like to simply chown a folder in my mounted volume to myUser@MY.REALM but so far It is not possible (invalid argument error)
AFAIUnderstand NFS4/Kerberos (wish me luck) , the Debian Client AND the Netapp System needs to know about myUser@MY.REALM to give him access to ressources. (chown included I suppose ?)
I tried to create a Netapp local unix-user myUser and added a krb-unix name-mapping rule to transform myUser@MY.REALM to myUser but It does not seem to change anything, still unable to chown.
Seems that there is something I do not understand in the NFS4/Kerberos philosophy ! Any help/hints/URLs appreciated
Thanks, by advance.
GS.
PS : no errors shown in event log show, but 2 stranges lines in journalctl when I try to chown
jun 08 19:16:28 docnfs4 nfsidmap[834]: key: 0x289f38a4 type: gid value: daemon@MY.REALM timeout 600
jun 08 19:16:28 docnfs4 nfsidmap[835]: key: 0x10913ca1 type: user value: 1469534676 timeout 600