PHP is another web application language you know better than I do, but that does not make it hard to use PHP to access a directory.

After installing PHP with the wrappers for the OpenLDAP libraries, I replicated the small LDAP web application posted earlier using Java with JNDI. (PHP version zip download) I had already installed OpenDS SE 2.0, and imported Example.ldif for the data.

For the user, the only changes are the colors and the title.




The user kvaughan is present in Example.ldif.



Here is the PHP code for that:

LDAP Authentication Results

Return to top page.

Return to top page.

Again, searching is even easier.



...search results coming up...



Here is the PHP code for the search.

LDAP Search Results

Return to top page.

Return to top page.



More...