Use address book stored in LDAP server like Active Directory or OpenLDAP (WebMail Pro 6 PHP)

From AfterLogic Wiki

Jump to: navigation, search

By default, WebMail Pro works with contacts stored in its own database. It is, possible, however, to configure the product so that contacts are retrieved from LDAP address book instead. This approach requires LDAP authentication enabled.

In order to enable LDAP address book access, download the plugin and extract it under data/plugins directory so that index file of the plugin is located at data/plugins/ldap-contacts/index.php filesystem path.

After that, you need to enable and configure the plugin. That is done by modifying config.php file. Add the following to the array there:

'plugins.ldap-contacts' => true

The plugin itself consists of two files. The sole purpose of index.php file is to override default access to contacts, see "Use Webmail without a database" article for details. We're not setting value to nodb here; instead, ldap value is supplied.

In helper.php file, you'll find a number of functions which provide access to LDAP address book. Those functions were specifically designed for Sun JES LDAP storage, feel free to modify them and configure access to your particular LDAP storage. Alternately, you can request assistance on this from us in terms of a small custom development project.

It's possible to use LDAP address book access without LDAP authentication enabled. In this case, you'll need to implement some other way to find out how address book URL is retrieved for particular user, the URL should be stored in UserPabUrl session variable, see GetPabUrlFromId function.

Last edit: 2011/6/21

WebMail Pro PHP documentation

Installation


Configuring WebMail

Customization

Integration

Synchronization

Clustering

See Also