使用CentOS 7安裝FreeIPA

What Is FreeIPA?



  • 作業系統:CentOS 7
  • 安裝版本:FreeIPA 4.6.8



$ sudo yum -y install epel-release
$ sudo yum -y update


$ sudo yum -y install bind-utils


$ sudo yum -y install ipa-server-dns bindipa-server  bind-dyndb-ldap



$ sudo ipa-server-install --setup-dns


  • Server Host Name:請輸入帶有網域的FQDN,格式為<hostname>.<domainname>,因為安裝過程會去抓此資訊作為預設的網域。
  • 安裝過程中會有抓不到反向DNS的資訊,可以在安裝完成後手動設定,不影響安裝過程與後續使用。
  • DNS轉發設定也可以於後續使用網頁來設定,此階段可先跳過。
The log file for this installation can be found in /var/log/ipaserver-install.log
This program will set up the IPA Server.

This includes:
  * Configure a stand-alone CA (dogtag) for certificate management
  * Configure the Network Time Daemon (ntpd)
  * Create and configure an instance of Directory Server
  * Create and configure a Kerberos Key Distribution Center (KDC)
  * Configure Apache (httpd)
  * Configure DNS (bind)
  * 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

Server host name [lab-ipa-1]:

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

Please confirm the domain name []:

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

Please provide a realm name [EXAMPLE.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 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 password:
Password (confirm):

Checking DNS domain, please wait ...
Please provide the IP address to be used for this host name:
Enter an additional IP address, or press Enter to skip:
Do you want to configure DNS forwarders? [yes]: no
No DNS forwarders configured
Do you want to search for missing reverse zones? [yes]: no

The IPA Master Server will be configured with:
IP address(es):
Domain name:
Realm name:     EXAMPLE.COM

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

Continue to configure the system with these values? [no]: yes


Setup complete

Next steps:
	1. You must make sure these network ports are open:
		TCP Ports:
		  * 80, 443: HTTP/HTTPS
		  * 389, 636: LDAP/LDAPS
		  * 88, 464: kerberos
		  * 53: bind
		UDP Ports:
		  * 88, 464: kerberos
		  * 53: bind
		  * 123: ntp

	2. You can now obtain a kerberos ticket using the command: 'kinit admin'
	   This ticket will allow you to use the IPA tools (e.g., ipa user-add)
	   and the web user interface.

Be sure to back up the CA certificates stored in /root/cacert.p12
These files are required to create replicas. The password for these
files is the Directory Manager password


$ sudo firewall-cmd --add-service={dns,freeipa-ldap,freeipa-ldaps} --permanent
$ sudo firewall-cmd --reload

步驟7:使用IP或安裝時所設定的FQDN連入網頁介面,預設帳號為”admin”,密碼是方才安裝時所設定的”IPA admin password”。


~ END ~


Related posts

Latest posts