Fedora 27
Sponsored Link

FreeIPA クライアントの設定2017/12/25

 
FreeIPA サーバーのユーザーアカウント情報を共有できるように FreeIPA クライアントとしての設定をします。
[1] 事前に FreeIPA サーバー側で FreeIPA クライアントとするホストを FreeIPA 内蔵 DNS に登録しておきます。
(FreeIPA 内蔵 DNS 未使用の場合は不要)
# ipa dnsrecord-add [ドメイン名] [レコード名] [レコードタイプ] [レコード]

[root@dlp ~]#
ipa dnsrecord-add ipa.srv.world client01 --a-rec 10.0.0.31

  Record name: client01
  A record: 10.0.0.31
[2]
FreeIPA クライアントとするホストに NTPd をインストールして FreeIPA サーバーと時刻同期しておきます
(FreeIPA では Chrony ではなく NTPd が必要要件です)
[3] FreeIPA クライアントとするホストに FreeIPA クライアントツールをインストールします。
[root@client01 ~]#
dnf -y install freeipa-client
[4] FreeIPA クライアントとしてセットアップします。時刻は FreeIPA サーバー側と同期させておいてください。
# FreeIPAサーバーとドメイン名を指定してセットアップ

[root@client01 ~]#
ipa-client-install --server=dlp.ipa.srv.world --domain ipa.srv.world

Autodiscovery of servers for failover cannot work with this configuration.
If you proceed with the installation, services will be configured to always access the discovered 
server for all operations and will not fail over to other servers in case of failure.
Proceed with fixed values and no DNS discovery? [no]: yes
Client hostname: client01.ipa.srv.world
Realm: IPA.SRV.WORLD
DNS Domain: ipa.srv.world
IPA Server: dlp.ipa.srv.world
BaseDN: dc=ipa,dc=srv,dc=world

# 設定を確認して yes 
Continue to configure the system with these values? [no]: yes
Synchronizing time with KDC...
# admin で応答
User authorized to enroll computers: admin
# admin パスワードを入力
Password for admin@IPA.SRV.WORLD:
Successfully retrieved CA cert
    Subject:     CN=Certificate Authority,O=IPA.SRV.WORLD
    Issuer:      CN=Certificate Authority,O=IPA.SRV.WORLD
    Valid From:  2017-12-26 01:19:51
    Valid Until: 2037-12-26 01:19:51

Enrolled in IPA realm IPA.SRV.WORLD
.....
.....
NTP enabled
Configured /etc/ssh/ssh_config
Configured /etc/ssh/sshd_config
Configuring ipa.srv.world as NIS domain.
Client configuration complete.
The ipa-client-install command was successful

# 必要であれば以下も設定しておきます ( 初回ログイン時にホームディレクトリを自動生成 )

[root@client01 ~]#
authconfig --enablemkhomedir --update
[root@client01 ~]#
logout
Fedora 27 (Server Edition)
Kernel 4.14.3-300.fc27.x86_64 on an x86_64 (ttyS0)

Admin Console: https://10.0.0.31:9090/ or https://[fe80::5054:ff:fecf:ca97]:9090/

client01 login:
redhat
# IPAユーザー

Password:
# パスワード

Password expired. Change your password now.  
# 初回ログイン時はパスワードの変更が求められる

Current Password:
# 現在のパスワード

New password:
# 新しいパスワード

Retype new password:
Creating home directory for redhat.
[redhat@client01 ~]$
# ログインできた
関連コンテンツ