In this second, and concluding, article, dig deeper into PHP'sLDAP API by writing complex search queries and building a Web-basedadministration module to retrieve and modify entries from the LDAP directorytree.
And that's about it for the moment. In this concluding article, I delved further into the PHP API for LDAP, demonstrating the PHP functions that let you retrieve and modify data in the LDAP directory tree. After a brief detour to demonstrate how you can easily build search forms for complex LDAP queries, I took you through the process of building a Web-based administration module for an LDAP directory, demonstrating the PHP API calls that allow you to add new entries to, and modify and delete existing entries from, the LDAP server. I also took a brief look at PHP's error-handling capabilities in the LDAP world, demonstrating the two PHP functions that can be used to trap and gracefully handle errors in your PHP-LDAP scripts.
Obviously, this is just the beginning - LDAP has a whole bunch of different applications, and PHP is well-suited to all of them. The synergy between the two technologies cannot be overemphasized, and, as the LDAP API in PHP evolves, you can expect to see more and more applications building on this synergy.
In case you'd like to learn more about PHP and LDAP, I'd recommend some quality time with the following links:
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!