Questo contenuto non è disponibile nella lingua selezionata.
34.4. Setting up a Kerberos-aware NFS Client
- If the NFS clients supports only weak cryptography, such as a Red Hat Enterprise Linux 5 client, set the following entry in the
/etc/krb5.conffile of the server to allow weak cryptography:allow_weak_crypto = true
allow_weak_crypto = trueCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If the NFS client is not enrolled as a client in the IdM domain, set up the required host entries, as described in Section 12.3, “Adding Host Entries”.
- Install the nfs-utils package:
yum install nfs-utils
[root@nfs-client ~]# yum install nfs-utilsCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Obtain a Kerberos ticket before running IdM tools.
kinit admin
[root@nfs-client ~]# kinit adminCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the ipa-client-automount utility to configure the NFS settings:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow By default, this enables secure NFS in the/etc/sysconfig/nfsfile and sets the IdM DNS domain in theDomainparameter in the/etc/idmapd.conffile. - Configure the services to start automatically when the system boots:
systemctl enable rpc-gssd.service systemctl enable rpcbind.service
[root@nfs-client ~]# systemctl enable rpc-gssd.service [root@nfs-client ~]# systemctl enable rpcbind.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Add the following entries to the
/etc/fstabfile to mount the NFS shares from thenfs-server.example.comhost when the system boots:nfs-server.example.com:/export /mnt nfs4 sec=krb5p,rw nfs-server.example.com:/home /home nfs4 sec=krb5p,rw
nfs-server.example.com:/export /mnt nfs4 sec=krb5p,rw nfs-server.example.com:/home /home nfs4 sec=krb5p,rwCopy to Clipboard Copied! Toggle word wrap Toggle overflow These settings configure Red Hat Enterprise Linux to mount the/exportshare to the/mntand the/homeshare to the/homedirectory. - Create the mount points if they do not exist:
mkdir -p /mnt/ mkdir -p /home
# mkdir -p /mnt/ # mkdir -p /homeCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Mount the NFS shares:
mount /mnt/ mount /home
[root@nfs-client ~]# mount /mnt/ [root@nfs-client ~]# mount /homeCopy to Clipboard Copied! Toggle word wrap Toggle overflow The command uses the information from the/etc/fstabentry. - Configure SSSD to renew Kerberos tickets:
- Set the following parameters in the IdM domain section of the
/etc/sssd/sssd.conffile to configure SSSD to automatically renew tickets:[domain/EXAMPLE.COM] ... krb5_renewable_lifetime = 50d krb5_renew_interval = 3600
[domain/EXAMPLE.COM] ... krb5_renewable_lifetime = 50d krb5_renew_interval = 3600Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart SSSD:
systemctl restart sssd
[root@nfs-client ~]# systemctl restart sssdCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Important
The
pam_oddjob_mkhomedir module does not support automatic creation of home directories on an NFS share. Therefore, you must manually create the home directories on the server in the root of the share that contains the home directories.