Pedro Pagan - 2017-07-08

[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

 

Last edit: Pedro Pagan 2017-07-16