5.7.2. ipa-advise utility를 사용한 클라이언트 측 구성
ipa-advise 유틸리티는 AD 트러스트용 레거시 클라이언트를 설정하기 위한 구성 지침을 제공합니다.
ipa-advise 에서 구성 지침을 제공할 수 있는 전체 시나리오 목록을 표시하려면 옵션 없이 ipa-advise 를 실행합니다. ipa-advise 를 실행하면 사용 가능한 모든 구성 명령 집합의 이름이 출력되고 각 세트가 수행하는 작업과 시기를 설명합니다.
[root@server ~]# ipa-advise
config-redhat-nss-ldap : Instructions for configuring a system
with nss-ldap as a IPA client.
This set of instructions is targeted
for platforms that include the
authconfig utility, which are all
Red Hat based platforms.
config-redhat-nss-pam-ldapd : Instructions for configuring a system
(...)
일련의 지침을 표시하려면 명령 집합을 매개 변수로 사용하여
ipa-advise 유틸리티를 실행합니다.
[root@server ~]# ipa-advise config-redhat-nss-ldap
#!/bin/sh
# ----------------------------------------------------------------------
# Instructions for configuring a system with nss-ldap as a IPA client.
# This set of instructions is targeted for platforms that include the
# authconfig utility, which are all Red Hat based platforms.
# ----------------------------------------------------------------------
# Schema Compatibility plugin has not been configured on this server. To
# configure it, run "ipa-adtrust-install --enable-compat"
# Install required packages via yum
yum install -y wget openssl nss_ldap authconfig
# NOTE: IPA certificate uses the SHA-256 hash function. SHA-256 was
# introduced in RHEL5.2. Therefore, clients older than RHEL5.2 will not
# be able to interoperate with IPA server 3.x.
# Please note that this script assumes /etc/openldap/cacerts as the
# default CA certificate location. If this value is different on your
# system the script needs to be modified accordingly.
# Download the CA certificate of the IPA server
mkdir -p -m 755 /etc/openldap/cacerts
wget http://idm.example.com/ipa/config/ca.crt -O /etc/openldap/cacerts/ca.crt
(...)
표시된 명령을 쉘 스크립트로 실행하거나 지침을 수동으로 실행하여
ipa-advise 유틸리티를 사용하여 Linux 클라이언트를 구성할 수 있습니다.
명령을 쉘 스크립트로 실행하려면 다음을 수행합니다.
- 스크립트 파일을 생성합니다.
[root@server ~]# ipa-advise config-redhat-nss-ldap > setup_script.sh - CronJob 유틸리티를 사용하여 파일에 실행 권한을 추가합니다.
[root@server ~]# chmod +x setup_script.sh scp유틸리티를 사용하여 스크립트를 클라이언트에 복사합니다.[root@server ~]# scp setup_script.sh root@client- 클라이언트에서 스크립트를 실행합니다.
[root@client ~]# ./setup_script.sh중요클라이언트에서 실행하기 전에 항상 스크립트 파일을 주의 깊게 읽고 검토합니다.
클라이언트를 수동으로 구성하려면 명령줄에서
ipa-advise 에서 표시하는 지침을 따르고 실행합니다.