RHCSA Preparation - Script to Configure a Simple OpenLDAP Server

If you are preparing for the RHCSA exam, this post should be of interest to you. I provide a Bash script which will fully configure a simple OpenLDAP directory server which you can then use to test that your OpenLDAP client setup is correct.