LDAP (Lightweight Directory Application Protocol) is often associated with user authentication. While it is true that LDAP is used extensively for authentication, it can be used for a wide variety of applications.
We'll stick with the user theme, but instead of authenticating, we'll use an LDAP connection to create a listing of users and their telephone numbers.
Joomla! provides us with the
JLDAP class; this class allows us to connect to an LDAP server and browse the contents. To use the class we must import the corresponding library:
Before we jump in head first, there is one more thing we need to take a look at. For the purpose of the following examples we will use an LDAP test server.
This screenshot depicts ...