O'Reilly logo

Mastering Joomla! 1.5 Extension and Framework Development by Chuck Lanham, James Kennard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

LDAP

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:

jimport('joomla.client.ldap');

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required