34.3. Kerberos 인식 NFS 서버 설정
- NFS 클라이언트가 Red Hat Enterprise Linux 5 클라이언트와 같이 취약한 암호화만 지원하는 경우:
- 약한
des-cbc-crc
암호화 유형을 활성화하려면 IdM 서버 Kerberos 구성을 업데이트합니다.$ ldapmodify -x -D "cn=directory manager" -w password -h ipaserver.example.com -p 389 dn: cn=REALM_NAME,cn=kerberos,dc=example,dc=com changetype: modify add: krbSupportedEncSaltTypes krbSupportedEncSaltTypes: des-cbc-crc:normal - add: krbSupportedEncSaltTypes krbSupportedEncSaltTypes: des-cbc-crc:special - add: krbDefaultEncSaltTypes krbDefaultEncSaltTypes: des-cbc-crc:special
- NFS 서버에서 NFS 서버의
/etc/krb5.conf
파일에 다음 항목을 추가하면 약한 암호화 지원이 가능합니다.allow_weak_crypto = true
- Kerberos 티켓을 받습니다.
[root@nfs-server ~]# kinit admin
- NFS 호스트 시스템이 IdM 도메인에 클라이언트로 추가되지 않은 경우 호스트 항목을 생성합니다. 12.3절. “호스트 항목 추가” 참조하십시오.
- NFS 서비스 항목을 생성합니다.
[root@nfs-server ~]# ipa service-add nfs/nfs-server.example.com
자세한 내용은 16.1절. “서비스 항목 및 키 탭 추가 및 편집” 의 내용을 참조하십시오. /etc/krb5.keytab
파일에 키를 저장하는 다음 ipa-getkeytab 명령을 사용하여 NFS 서버의 NFS 서비스 키 탭을 검색합니다.[root@nfs-server ~]# ipa-getkeytab -s ipaserver.example.com -p nfs/nfs-server.example.com -k /etc/krb5.keytab
NFS 클라이언트가 취약한 암호화만 지원하는 경우-e des-cbc-crc
옵션을 명령에 전달하여 DES-encrypted keytab을 요청합니다.- 서비스 항목을 확인하여 keytab을 사용하여 NFS 서비스가 IdM에 올바르게 구성되었는지 확인합니다.
[root@nfs-server ~]# ipa service-show nfs/nfs-server.example.com Principal name: nfs/nfs-server.example.com@IDM.EXAMPLE.COM Principal alias: nfs/nfs-server.example.com@IDM.EXAMPLE.COM Keytab: True Managed by: nfs-server.example.com
- nfs-utils 패키지를 설치합니다.
[root@nfs-server ~]# yum install nfs-utils
- ipa-client-automount 유틸리티를 실행하여 NFS 설정을 구성합니다.
[root@nfs-server ~] ipa-client-automount Searching for IPA server... IPA server: DNS discovery Location: default Continue to configure the system with these values? [no]: yes Configured /etc/sysconfig/nfs Configured /etc/idmapd.conf Started rpcidmapd Started rpcgssd Restarting sssd, waiting for it to become available. Started autofs
기본적으로 이 명령은 보안 NFS를 활성화하고/etc/idmapd.conf
파일의Domain
매개변수를 IdM DNS 도메인으로 설정합니다. 다른 도메인을 사용하는 경우--idmap-domain domain_name
매개변수를 사용하여 지정합니다. - 시스템이 부팅될 때
nfs-idmapd
서비스가 자동으로 시작되도록 구성합니다.# systemctl enable nfs-idmapd
/etc/exports
파일을 편집하고>-< 5p Kerberos 보안 설정을 사용하여 공유를 추가합니다./export *(rw,sec=krb5:krb5i:krb5p) /home *(rw,sec=krb5:krb5i:krb5p)
이 예에서는/export
및/home
디렉터리를 읽기-쓰기 모드로 Kerberos 인증이 활성화된 것과 공유합니다.- 공유 디렉터리를 다시 내보냅니다.
[root@nfs-server ~]# exportfs -rav
- 선택적으로 NFS 서버를 NFS 클라이언트로 구성합니다. 34.4절. “Kerberos 인식 NFS 클라이언트 설정” 참조하십시오.