5.7.2. ipa-advise ユーティリティーを使用したクライアント側の設定
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 chmodユーティリティーを使用して、実行パーミッションをファイルに追加します。[root@server ~]# chmod +x setup_script.shscpユーティリティーを使用してスクリプトをクライアントにコピーします。[root@server ~]# scp setup_script.sh root@client- クライアントでスクリプトを実行します。
[root@client ~]# ./setup_script.sh重要クライアントでスクリプトを実行する前に、必ずスクリプトファイルを注意深く読んで確認してください。
クライアントを手動で設定するには、
ipa-advise で表示される指示をコマンドラインから実行します。