# ipa-getkeytab -s server.example.com -p nfs/nfs-server.example.com -k /etc/krb5.keytab
... -k /tmp/nfs.keytab
# ( echo rkt /tmp/nfs.keytab; echo wkt /etc/krb5.keytab) |ktutil
# yum install nfs-utils
SECURE_NFS line.
# vim /etc/sysconfig/nfs SECURE_NFS="yes"
# vim /etc/idmapd.conf Domain = example.com
/etc/exports file and add the Kerberos information:
/export *(rw,sec=sys:krb5:krb5i:krb5p)
# service nfs restart
# ipa-getkeytab -k /etc/krb5.keytab -p host/nfs-client-server.example.com@EXAMPLE.COM
... -k /tmp/nfs.keytab
# ( echo rkt /root/nfs-client.keytab; echo wkt /etc/krb5.keytab) |ktutil
SECURE_NFS line.
# vim /etc/sysconfig/nfs SECURE_NFS="yes"
idmapd.conf must be the same on the NFS client as it is on the NFS server.
# vim /etc/idmapd.conf Domain = example.com
# service rpc.gssd start
# echo "$NFSSERVER:/this /mnt/this nfs4 sec=krb5i,rw,proto=tcp,port=2049" >>/etc/fstab # mount -av