A Really Quick Example LDAP Database
Are you looking for a quick way to get an LDAP directory server going with a nice pile of example data?
This script will configure Symas OpenLDAP to use an example database, load the database, start the OpenLDAP server, and perform a sample search. It’s a great way to quickly get an example database going for demonstrations, education, or just plain trying to figure out how things work.
The script is only for Silver and Gold versions of Symas OpenLDAP for Linux and UNIX. The example below shows how to set up a database on a Linux system, but the same technique works for Solaris, AIX, and HP-UX versions of Symas OpenLDAP. All you need to do is download the appropriate Symas OpenLDAP packages and use the appropriate installation commands, such as pkgadd for Solaris, swinstall for HP-UX, and so on.
Here are the steps you need to follow to get your example database up and running quickly:
1. Download the Symas OpenLDAP Gold or Silver package to your system. These will have name of the form “symas-openldap-gold.i386-2.4-23.0.rpm” or “symas-openldap-silver.i386-2.4-23.0.rpm”.
2. Assuming you downloaded the packages referenced above, become root and type the following commands,:
rpm -i symas-openldap-gold.i386-2.4-23.0.rpm
If you downloaded different files, change the names in the installation commands as needed to match the actual names of the files you downloaded.
3. Locate the shell script “exampledb.sh”, located in the “/opt/symas/etc/openlap” directory.
4. As root, type the following command:
sh /opt/symas/etc/openldap/exampledb.sh
This script will configure the newly installed Symas OpenLDAP, load an example database, start the server, and optionally perform a test search of the directory. The script deletes existing Symas OpenLDAP configuration files, so back up any live configuration files that may be installed on the server.
5. Using your favorite GUI, such as JXplorer you can now connect to the directory server.
The dn and password to use for logging in are as follows:
Be careful, though, these are the super-user passwords for the directory!
Enjoy!
