Now that you know how LDAP works, it's time to put it intopractice. In this article, find out how to compile, install and configurethe OpenLDAP software suite, create an LDAP directory for your organization,and add entries to it. Also included: a detailed discussion of how to searchthe database using both the UNIX client tools supplied with OpenLDAP, andthe LDAP client built into Qualcomm Eudora.
And that's about it for the moment. In this two-part article, I first took you through a crash course in LDAP theory, explaining the LDAP information model and showing you how LDAP directory entries are structured. I also explained LDAP's object-oriented characteristics, and showed you the basics of dissecting and using a schema definition when creating directory entries.
With the theory out of the way, I then proceeded to a quick-and-dirty implementation of the OpenLDAP software suite, demonstrating how to compile and install the software, initialize the LDAP directory, and use the supplied client tools to add, edit and remove entries from the LDAP directory. I also showed you the basics of searching the LDAP directory using a variety of different filters and expressions, and guided you through the process of hooking your LDAP-aware mail client to the LDAP directory to simplify searching for user contact information.
Of course, all this is just the tip of the iceberg. LDAP is a vast and complex topic, and there are still many miles to traverse before you can claim to be reasonably adept in the subject. Here are a few links to help in this process:
That's about it from me. I hope you enjoyed this article, and that you learnt something from it. Until next time...be good!
Note: Examples are illustrative only, and are not meant for a production environment. Melonfire provides no warranties or support for the source code described in this article. YMMV!