Skip to content

Instantly share code, notes, and snippets.

@AbrarJahin
Last active October 24, 2019 06:21
Show Gist options
  • Select an option

  • Save AbrarJahin/6ce81d4d17d1586779290983ad5b360a to your computer and use it in GitHub Desktop.

Select an option

Save AbrarJahin/6ce81d4d17d1586779290983ad5b360a to your computer and use it in GitHub Desktop.
Update your CentOS system-
==========================
sudo yum install epel-release -y && sudo yum update kernel -y && sudo yum update -y && sudo yum upgrade -y && sudo yum install nano net-tools git wget -y && sudo reboot -h now
Ading a User with sudo access-
==============================
adduser [username] && usermod -aG wheel [username] && passwd [username] && exit
-------------------------------
#####################################################################################################################
Details can be found in here- https://www.linuxtechi.com/install-configure-freeipa-centos-7-server/
#####################################################################################################################
https://tobias.ws/connecting-to-freeipa-with-php/#Installation
#####################################################
https://github.com/gnumoksha/php-freeipa
#####################################################
Prepare Server with HostNames-
==============================
sudo hostnamectl set-hostname "freeipa.bcc.gov.bd"
exec bash
sudo reboot -h
sudo nano /etc/hosts
And add this line at the end-
192.168.51.138 freeipa.bcc.gov.bd
Install-
========
Required Packages-
------------------
sudo yum install ipa-server ipa-server-dns -y
Install-
--------
sudo ipa-server-install && sudo authconfig --enablemkhomedir --update
You must make sure these network ports are open:
TCP Ports:
* 80, 443: HTTP/HTTPS
* 389, 636: LDAP/LDAPS
* 88, 464: kerberos
UDP Ports:
* 88, 464: kerberos
* 123: ntp
##Configure Firewalld-
----------------------
sudo firewall-cmd --add-service=freeipa-ldap && sudo firewall-cmd --add-service=freeipa-ldap --permanent && sudo firewall-cmd --reload && sudo ipactl status && sudo kinit admin && sudo klist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment