Install FreeIPA Server On CentOS 8 - CentLinux
Install FreeIPA Server On CentOS 8 - CentLinux
Trending Posts
H o w t o u p g ra d e C e n t O S 7 t o
CentOS 8 Server
FreeIPA is an open source and free software that provides a centrally managed IPA
How to Permanently Disable
(Identity, Policy and Audit) system. FreeIPA uses a combination of 389 Directory Server, SELinux on CentOS 8
MIT Kerberos, NTP, DNS, IGC DogTag and other free open-source components.
How to Install Icinga Web 2 on
CentOS 8
FreeIPA is developed by Red Hat and distributed under GNU General Public License.
We are using a CentOS 8 minimal virtual machine with following speci cation.
Connect with freeipa-01.recipes.com as root user by using a SSH tool. ANSIBLE A PA C H E CENTOS
We are installing selective pro les required to con gure the FreeIPA server.
Complete!
FreeIPA server and related packages have been installed on our CentOS 8 server. Now we
have to con gure the FreeIPA installation according to our requirement.
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 the KDC to enable PKINIT
Disabled p11-kit-proxy
Synchronizing time
No SRV records of NTP servers found and no NTP server or pool address was
Using default chrony configuration.
Attempting to sync time with chronyc.
Process chronyc waitsync failed to sync time!
Unable to sync time with chrony server, assuming the time is in sync. Ple
Warning: IPA was unable to sync time with chrony!
Time synchronization is required for IPA to work correctly
Configuring directory server (dirsrv). Estimated time: 30 seconds
[1/44]: creating directory server instance
Starting installation...
Created symlink /etc/systemd/system/multi-user.target.wants/dirsrv@RECIPE
Opening SELinux policy "//etc/selinux/targeted/policy/policy.31"
Successfully opened SELinux policy "//etc/selinux/targeted/policy/policy.
Allocate local instance <class 'lib389.DirSrv'> with ldapi://%2fvar%2frun
[2/44]: configure autobind for root
[3/44]: stopping directory server
[4/44]: updating configuration in dse.ldif
[5/44]: starting directory server
[6/44]: adding default schema
[7/44]: enabling memberof plugin
[8/44]: enabling winsync plugin
[9/44]: configure password logging
[10/44]: configuring replication version plugin
[11/44]: enabling IPA enrollment plugin
[12/44]: configuring uniqueness plugin
[13/44]: configuring uuid plugin
[14/44]: configuring modrdn plugin
[15/44]: configuring DNS plugin
[16/44]: enabling entryUSN plugin
[17/44]: configuring lockout plugin
[18/44]: configuring topology plugin
[19/44]: creating indices
[20/44]: enabling referential integrity plugin
[21/44]: configuring certmap.conf
[22/44]: configure new location for managed entries
[23/44]: configure dirsrv ccache and keytab
[24/44]: enabling SASL mapping fallback
[25/44]: restarting directory server
[26/44]: adding sasl mappings to the directory
[27/44]: adding default layout
[28/44]: adding delegation layout
[29/44]: creating container for managed entries
https://www.centlinux.com/2020/02/install-freeipa-server-on-centos-8.html 4/16
12/8/2020 Install FreeIPA Server on CentOS 8 - CentLinux
[30/44]: configuring user private groups
[31/44]: configuring netgroups from hostgroups
[32/44]: creating default Sudo bind user
[33/44]: creating default Auto Member layout
[34/44]: adding range check plugin
[35/44]: creating default HBAC rule allow_all
[36/44]: adding entries for topology management
[37/44]: initializing group membership
[38/44]: adding master entry
[39/44]: initializing domain level
[40/44]: configuring Posix uid/gid generation
[41/44]: adding replication acis
[42/44]: activating sidgen plugin
[43/44]: activating extdom plugin
[44/44]: configuring directory to start on boot
Done configuring directory server (dirsrv).
Configuring Kerberos KDC (krb5kdc)
[1/10]: adding kerberos container to the directory
[2/10]: configuring KDC
[3/10]: initialize kerberos container
[4/10]: adding default ACIs
[5/10]: creating a keytab for the directory
[6/10]: creating a keytab for the machine
[7/10]: adding the password extension to the directory
[8/10]: creating anonymous principal
[9/10]: starting the KDC
[10/10]: configuring KDC to start on boot
Done configuring Kerberos KDC (krb5kdc).
Configuring kadmin
[1/2]: starting kadmin
[2/2]: configuring kadmin to start on boot
Done configuring kadmin.
Configuring ipa-custodia
[1/5]: Making sure custodia container exists
[2/5]: Generating ipa-custodia config file
[3/5]: Generating ipa-custodia keys
[4/5]: starting ipa-custodia
[5/5]: configuring ipa-custodia to start on boot
Done configuring ipa-custodia.
Configuring certificate server (pki-tomcatd). Estimated time: 3 minutes
[1/30]: configuring certificate server instance
[2/30]: Add ipa-pki-wait-running
[3/30]: reindex attributes
[4/30]: exporting Dogtag certificate store pin
[5/30]: stopping certificate server instance to update CS.cfg
[6/30]: backing up CS.cfg
[7/30]: disabling nonces
[8/30]: set up CRL publishing
[9/30]: enable PKIX certificate path discovery and validation
[10/30]: starting certificate server instance
[11/30]: configure certmonger for renewals
[12/30]: requesting RA certificate from CA
[13/30]: setting audit signing renewal to 2 years
[14/30]: restarting certificate server
[15/30]: publishing the CA certificate
[16/30]: adding RA agent as a trusted user
[17/30]: authorizing RA to modify profiles
[18/30]: authorizing RA to manage lightweight CAs
[19/30]: Ensure lightweight CAs container exists
[20/30]: configure certificate renewals
[21/30]: configure Server-Cert certificate renewal
[22/30]: Configure HTTP to proxy connections
[23/30]: restarting certificate server
[24/30]: updating IPA configuration
https://www.centlinux.com/2020/02/install-freeipa-server-on-centos-8.html 5/16
12/8/2020 Install FreeIPA Server on CentOS 8 - CentLinux
[25/30]: enabling CA instance
[26/30]: migrating certificate profiles to LDAP
[27/30]: importing IPA certificate profiles
[28/30]: adding default CA ACL
[29/30]: adding 'ipa' CA entry
[30/30]: configuring certmonger renewal for lightweight CAs
Done configuring certificate server (pki-tomcatd).
Configuring directory server (dirsrv)
[1/3]: configuring TLS for DS instance
[2/3]: adding CA certificate entry
[3/3]: restarting directory server
Done configuring directory server (dirsrv).
Configuring ipa-otpd
[1/2]: starting ipa-otpd
[2/2]: configuring ipa-otpd to start on boot
Done configuring ipa-otpd.
Configuring the web interface (httpd)
[1/21]: stopping httpd
[2/21]: backing up ssl.conf
[3/21]: disabling nss.conf
[4/21]: configuring mod_ssl certificate paths
[5/21]: setting mod_ssl protocol list
[6/21]: configuring mod_ssl log directory
[7/21]: disabling mod_ssl OCSP
[8/21]: adding URL rewriting rules
[9/21]: configuring httpd
Nothing to do for configure_httpd_wsgi_conf
[10/21]: setting up httpd keytab
[11/21]: configuring Gssproxy
[12/21]: setting up ssl
[13/21]: configure certmonger for renewals
[14/21]: publish CA cert
[15/21]: clean up any existing httpd ccaches
[16/21]: configuring SELinux for httpd
[17/21]: create KDC proxy config
[18/21]: enable KDC proxy
[19/21]: starting httpd
[20/21]: configuring httpd to start on boot
[21/21]: enabling oddjobd
Done configuring the web interface (httpd).
Configuring Kerberos KDC (krb5kdc)
[1/1]: installing X509 Certificate for PKINIT
Done configuring Kerberos KDC (krb5kdc).
Applying LDAP updates
Upgrading IPA:. Estimated time: 1 minute 30 seconds
[1/11]: stopping directory server
[2/11]: saving configuration
[3/11]: disabling listeners
[4/11]: enabling DS global lock
[5/11]: disabling Schema Compat
[6/11]: starting directory server
[7/11]: updating schema
[8/11]: upgrading server
[9/11]: stopping directory server
[10/11]: restoring configuration
[11/11]: starting directory server
Done.
Restarting the KDC
Configuring DNS (named)
[1/11]: generating rndc key file
[2/11]: adding DNS container
[3/11]: setting up our zone
[4/11]: setting up our own record
[5/11]: setting up records for other masters
https://www.centlinux.com/2020/02/install-freeipa-server-on-centos-8.html 6/16
12/8/2020 Install FreeIPA Server on CentOS 8 - CentLinux
[6/11]: adding NS record to the zones
[7/11]: setting up kerberos principal
[8/11]: setting up named.conf
[9/11]: setting up server configuration
[10/11]: configuring named to start on boot
[11/11]: changing resolv.conf to point to ourselves
Done configuring DNS (named).
Restarting the web server to pick up resolv.conf changes
Configuring DNS key synchronization service (ipa-dnskeysyncd)
[1/7]: checking status
[2/7]: setting up bind-dyndb-ldap working directory
[3/7]: setting up kerberos principal
[4/7]: setting up SoftHSM
[5/7]: adding DNSSEC containers
[6/7]: creating replica keys
[7/7]: configuring ipa-dnskeysyncd to start on boot
Done configuring DNS key synchronization service (ipa-dnskeysyncd).
Restarting ipa-dnskeysyncd
Restarting named
Updating DNS system records
Configuring client side components
This program will set up IPA client.
Version 4.8.0
=========================================================================
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
This ticket will allow you to use the IPA tools (e.g., ipa use
and the web user interface.
https://www.centlinux.com/2020/02/install-freeipa-server-on-centos-8.html 7/16
12/8/2020 Install FreeIPA Server on CentOS 8 - CentLinux
You can see that, we have acquired a kerberos ticket for 24 hours.
We need to install nfs-utils package to con gure a NFS server. FreeIPA has already
installed nfs-utils package as a dependency.
Con gure default home directory and shell for new FreeIPA users.
Our FreeIPA server has been con gured successfully. Alternatively, you can perform
administration of FreeIPA server by using the Web UI provided herewith.
To con gure a CentOS 8 machine as FreeIPA client, we need to install following packages
on it.
Complete!
Con gure autofs to automatically mount the FreeIPA users' home directory on ipaclient
machine after successful login.
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: f52733a39c74976ba8570e005e42d2172f9f5e5797eab7b3 (good)
;; QUESTION SECTION:
;freeipa-01.recipes.com. IN A
;; ANSWER SECTION:
freeipa-01.recipes.com. 1200 IN A 192.168.116.206
;; AUTHORITY SECTION:
recipes.com. 86400 IN NS freeipa-01.recipes.com.
KerberosAuthentication no
UsePAM yes
You can see that the home directory for user ipauser1 has been mounted by autofs
service.
We have successfully installed FreeIPA server on CentOS 8 and con gured a CentOS 8
client to use FreeIPA services.
https://www.centlinux.com/2020/02/install-freeipa-server-on-centos-8.html 14/16
12/8/2020 Install FreeIPA Server on CentOS 8 - CentLinux
3 C O M M E NTS :
. Arsalan Anwar
14 February 2020 at 10:38
really helpful
Reply
2. BlackSwan
17 May 2020 at 18:21
wow thank you man. I actually looked all over the internet for FreeIPA straight & forward con guration tutorial but
i failed miserably, until i see your post. Thanks bro!
Reply
Replies
1. Ahmer Mansoor
17 May 2020 at 19:51
Pleasure is mine.
Reply
› H i g h Ava i l a b i l i t y ( H A ) I n s t a l l Z i m b ra M a i l S e r v e r
› Nagios
on CentOS 7
https://www.centlinux.com/2020/02/install-freeipa-server-on-centos-8.html 15/16
12/8/2020 Install FreeIPA Server on CentOS 8 - CentLinux
› O ra c l e I n s t a l l A n s i b l e AW X w i t h
Docker-Compose on CentOS
› R e v e r s e P rox y 7
› XMPP
https://www.centlinux.com/2020/02/install-freeipa-server-on-centos-8.html 16/16