Created
November 29, 2014 00:03
-
-
Save dasgoll/9a51a398bd7ea50eb205 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install EPEL repository | |
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
# rpm -ivh epel-release-6-8.noarch.rpm | |
Installation steps : | |
1- Install 389-ds packages | |
# yum install 389-ds* -y | |
2- Install 389-console management package | |
# yum install 389-console | |
3- Configure 389-ds server | |
# setup-ds.pl --keepcache | |
a- Choose Express installation | |
b- Computer name [rhds.server.com] | |
c- System User [nobody] | |
d- System Group [nobody]: | |
e- administrator ID [admin] | |
f- Password: | |
g- dministration Domain [server.local]: | |
h- Directory server identifier [rhds]: | |
i- Suffix [dc=server, dc=com]: | |
j- Directory Manager DN [cn=Directory Manager] | |
k- Administration port [9830] : | |
4- Configure firewall rules to allow ldap port | |
a- Check rule numbers | |
# iptables -L INPUT -n --line-numbers | |
b- Create new chain called ldap | |
# iptables -I INPUT 5 -j ldap | |
c- Allow 389 port | |
# iptables -I ldap -p tcp --dport 389 -s 192.168.1.0/24 -j ACCEPT | |
# iptables -I ldap -p tcp --dport 9830 -s 192.168.1.0/24 -j ACCEPT | |
d- Save firewall configuration | |
# service iptables save | |
5- Make directory and admin services available upon reboot the server | |
# chkconfig dirsrv on | |
# chkconfig dirsrv –admin on | |
6- Now you can use console to connect to admin server and manage it | |
# 389-console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment