Home
Name Modified Size InfoDownloads / Week
README.txt 2017-07-16 1.8 kB
ldapServerQuickSetup.pl 2017-07-16 10.6 kB
Totals: 2 Items   12.4 kB 0
v1.1 (2017/07/16)
- Reworked help info/fixed minor typos
- Fixed bug that prevented "/sbin/slaptest -u" from being executed (mostly harmless bug, thankfully)
- Set script to auto-enter LDAP admin's password the one time it's requested during setup

[ppagan@ldapserver ~]$ ./ldapServerQuickSetup.pl

  ./ldapServerQuickSetup.pl (v1.1) - ppagan.com | https://sourceforge.net/p/ldapserverquicksetup

  Creates a simple LDAP server setup based on the instruction provided at:
  http://www.itzgeek.com/how-tos/linux/centos-how-tos/step-step-openldap-server-configuration-centos-7-rhel-7.html

  --domain     -d  domain     # Your domain
  --tdl        -t  tdl        # Top level domain (com, local, net, etc)
  --user       -u  username   # The username to use for the LDAP admin
  --pass       -p  password   # The password to use for the LDAP admin
  --passfile   -P  file       # The file containing the password to use for the LDAP admin
  --outdir     -o  path       # The output directory for the generated LDIF files (DEFAULT: './')
  --filesonly  -f             # Just writes the LDIF files (installs openldap-servers to generate password hash)

  NOTES:
  - This script is intended to be used in a RHEL7 environment
  - This script creates certificates in /etc/openldap/certs/
  - This script OVERWRITES existing LDAP configs (including certificates!)
  - This script installs the following packages onto the system:
  'compat-openldap openldap-servers-sql openldap openldap-clients openldap-devel openldap-servers nss-pam-ldapd'

  EXAMPLES:
  ./ldapServerQuickSetup.pl -d mycompany -t com -u ldapadmin -p changeme
  ./ldapServerQuickSetup.pl -d mycompany -t com -u ldapadmin -P ./secret.txt
  ./ldapServerQuickSetup.pl -d mycompany -t com -u ldapadmin -p changeme -f
Source: README.txt, updated 2017-07-16