Secure NFS access uses an authentication protocol to ensure the security of data and identity of users within a controlled domain.
Data ONTAP provides secure NFS access using the Kerberos v5 authentication protocol.
The Data ONTAP Kerberos v5 implementation supports the following Kerberos Key Distribution Center (KDC) options:
Kerberos v5 authentication supports the following clients:
The security service setup procedure adds a filer to a Windows 2000-based KDC as a service principal called nfs/hostname.domain@REALM.
Note
After you set up Windows 2000 security for NFS, Network Appliance does not support changing to an MIT KDC for NFS security.
To set up security service in a Windows 2000 network using the Kerberos protocol, follow these steps.
| 1 | Edit the resource name in the /etc/exports file to include the security service you want. For information about exporting resources with security services, see Specifying security services. Examplevol/vol0 -access=host1,sec=krb5 |
| 2 |
exportfs path_name path_name is a file or directory. Exampleexportfs vol/vol0 |
| 3 |
nfs setup Result if CIFS is already set upThe nfs setup program leads you through the following prompt: The nfs setup program uses information you entered when you set up CIFS to connect to a Windows 2000 domain controller and completes the setup by enabling Kerberos authentication for NFS. Result if CIFS is not set upThe nfs setup program leads you through the first prompt followed by these prompts:
After you enter the password, the filer connects to the Windows 2000 domain controller and completes the setup by enabling Kerberos authentication for NFS. |
The security service setup procedure adds a filer to a standard UNIX-based KDC as a service principal called nfs/hostname.domain@REALM.
Before setting up security services, make sure the following requirements are met:
This procedure assumes that you are using MIT KDC software for creating the server principal and keytab on the NFS server.
Note
After you set up security for NFS using an MIT KDC, Network Appliance does not support changing to Windows 2000 security for NFS.
To set up security service in a UNIX-based network using the Kerberos protocol, follow these steps.
| 1 | On the NFS server, at the kadmin or kadmin.local command prompt, enter the following command: ank -randkey nfs/hostname.domain hostname is the host name of the NFS server principal. domain is the domain of the NFS server principal. Examplekadmin: ank -randkey nfs/server.lab.netapp.com ResultA principal is created for the NFS server, for example, nfs/server.lab.netapp.com@LAB.NETAPP.COM, where the realm is @LAB.NETAPP.COM. |
| 2 | On the NFS server, from kadmin or kadmin.local, enter the following command: xst -k/tmp/filer.krb5.keytab nfs/hostname.domain hostname is the host name of the server principal created in Step 1. domain is the domain of the server principal created in Step 1. Examplekadmin: xst -k/tmp/filer.krb5.keytab nfs/server.lab.netapp.com ResultIn this example, a keytab is created for the server principal nfs/server.lab.netapp.com@LAB.NETAPP.COM. The KVNO 3 encryption type DES-CBC-CRC is added to the keytab WRFILE:/tmp/filer.krb5.keytab. |
| 3 | On the NFS server, enter the following command: cp /tmp/filer.krb5.keytab /net/filer/vol/vol0/etc/krb5.keytab ResultThe keytab is copied to the filer. Note |
| 4 | To copy the krb5.conf file to the filer, do one of the following: |
| 5 | On the filer, enter the following command: options nfs.kerberos.file_keytab.enable on ResultEnables use of a file-based keytab in /etc/krb5.keytab. |
| 6 |
options nfs.kerberos.principal hostname.domain hostname is the host name of the server principal created in Step 1. domain is the domain of the server principal created in Step 1. Exampleoptions nfs.kerberos.principal server.lab.netapp.com Note |
| 7 |
options nfs.kerberos.realm realm realm is the realm-specific part of the NFS server's Kerberos principal name. Exampleoptions nfs.kerberos.realm @NETAPP.COM |
| 8 |
exportfs -i -o sec=krb5 path_name path_name is a file or directory. Exampleexportfs -i -o sec=krb5 /vol/vol0/home |
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00323
File: nfs11.htm
Last updated: 01/15/03 15:45:12