AlmaLinux9 統合セキュリティ情報管理システム FreeIPA をインストールする手順

環境
AlmaLinux release 9.2 (Turquoise Kodkod)

操作手順
1.FreeIPA サーバーを統合 DNS も含めてインストールします。

# dnf -y install freeipa-server freeipa-server-dns freeipa-client

2.FreeIPA サーバーをセットアップします

自身のホスト名を hosts に登録する
# echo '10.0.0.52 dlp.ipa.arkgame.com dlp’ >> /etc/hosts

サーバーの設定を行う
# ipa-server-install –setup-dns

The log file for this installation can be found in /var/log/ipaserver-install.log
==============================================================================
This program will set up the IPA Server.
Version 4.9.8

This includes:
  * Configure a stand-alone CA (dogtag) for certificate management
  * Configure the NTP client (chronyd)
  * Create and configure an instance of Directory Server
  * Create and configure a Kerberos Key Distribution Center (KDC)
  * Configure Apache (httpd)
  * Configure DNS (bind)
  * Configure SID generation
  * Configure the KDC to enable PKINIT

To accept the default shown in brackets, press the Enter key.

Enter the fully qualified domain name of the computer
on which you're setting up server software. Using the form
<hostname>.<domainname>
Example: master.example.com.

# ホスト名を確認して Enter
Server host name [dlp.ipa.arkgame.com]:

Warning: skipping DNS resolution of host dlp.ipa.arkgame.com
The domain name has been determined based on the host name.

# ドメイン名を確認して Enter
Please confirm the domain name [ipa.arkgame.com]:

The kerberos protocol requires a Realm name to be defined.
This is typically the domain name converted to uppercase.

# realm 名を確認 または変更して Enter
Please provide a realm name [IPA.arkgame.com]:
Certain directory server operations require an administrative user.
This user is referred to as the Directory Manager and has full access
to the Directory for system management tasks and will be added to the
instance of directory server created for IPA.
The password must be at least 8 characters long.

# Directory Manager のパスワード設定
Directory Manager password:
Password (confirm):

The IPA server requires an administrative user, named 'admin'.
This user is a regular system account used for IPA server administration.

# IPA admin のパスワード設定
IPA admin password:
Password (confirm):

Checking DNS domain ipa.arkgame.com., please wait ...
# DNS フォワーダーを設定する場合は [yes]
Do you want to configure DNS forwarders? [yes]:
Following DNS servers are configured in /etc/resolv.conf: 10.0.0.10
Do you want to configure these servers as DNS forwarders? [yes]:
All detected DNS servers were added. You can enter additional addresses now:
Enter an IP address for a DNS forwarder, or press Enter to skip:
DNS forwarders: 10.0.0.10
Checking DNS forwarders, please wait ...
DNS server 10.0.0.10 does not support DNSSEC: answer to query '. SOA' is missing DNSSEC signatures (no RRSIG data)
Please fix forwarder configuration to enable DNSSEC support.

DNS server 10.0.0.10: answer to query '. SOA' is missing DNSSEC signatures (no RRSIG data)
Please fix forwarder configuration to enable DNSSEC support.
WARNING: DNSSEC validation will be disabled
# DNS フォワーダーの逆引きゾーンを検索する場合は [yes]
Do you want to search for missing reverse zones? [yes]: no
Trust is configured but no NetBIOS domain name found, setting it now.
Enter the NetBIOS name for the IPA domain.
Only up to 15 uppercase ASCII letters, digits and dashes are allowed.
Example: EXAMPLE.

# NetBIOS 名を確認 または変更して Enter
NetBIOS domain name [IPA]: IPA01

Do you want to configure these servers as DNS forwarders? [yes]:
All detected DNS servers were added. You can enter additional addresses now:
Enter an IP address for a DNS forwarder, or press Enter to skip:
DNS forwarders: 10.0.0.10
Checking DNS forwarders, please wait ...

# Chrony を NTP サーバーとして設定する場合は [yes]
Do you want to configure chrony with NTP server or pool address? [no]:

The IPA Master Server will be configured with:
Hostname:       dlp.ipa.arkgame.com
IP address(es): 10.0.0.52

Domain name:    ipa.arkgame.com
Realm name:     IPA.arkgame.com

The CA will be configured with:
Subject DN:   CN=Certificate Authority,O=IPA.arkgame.com
Subject base: O=IPA.arkgame.com
Chaining:     self-signed

BIND DNS server will be configured to serve IPA domain with:
Forwarders:       10.0.0.10
Forward policy:   only
Reverse zone(s):  No reverse zone

# 設定を確認して [yes] で進む
Continue to configure the system with these values? [no]: yes

3.Kerberos チケットを取得しておきます。

# kinit admin
# klist

4.Firewalld を有効にしている場合は、FreeIPA サービス、および統合 DNS を使用している場合は DNS サービスの許可が必要です。

# firewall-cmd --add-service={freeipa-ldap,freeipa-ldaps,dns,ntp}
# firewall-cmd --runtime-to-permanent

 

AlmaLinux 9

Posted by arkgame