Linux Iptables Open LDAP Server TCP Ports 389 and 636

Posted on in Categories , , , , , , , last updated August 16, 2009

The default Iptables configuration under CentOS / Red Hat / RHEL / Fedora Linux does not allow inbound access to LDAP service. How do I update iptables settings to allow access to the LDAP primary TCP #389 and encrypted-only TCP # 636 ports, while keeping all other ports on the server in their default protected state?

Backup CentOS or Redhat Directory Server Database (LDAP)

Posted on in Categories , , , last updated August 27, 2007

Q. How can I backup Fedora / CentOS / Redhat Linux Directory server database?

A. You can back up your databases from the command-line using the db2bak command-line script. This script works when the server is running or when the server is stopped. Run script as follows:
# ./db2bak
# /path/to/installed-directory/db2bak

The db2back script will create a backup folder with a format of year_month_day__hour (YYYY_MM_DD_hh_mm_ss). The backup folder will contain the exported LDIF files and other Berkeley databases (.db4 files).

Restore backup

First stop server:

Next restore the backup database. For example:
#./bak2db /path/to/bak/2007_02_02_01_02_12/

Again start the Red Hat Directory Server:
# ./start-nslapd


=> Populating Directory Databases – Red Hat Directory Server