Personal tools
fr.gif, 1 kB    en.gif, 1 kB

Multi-LDAP Technical Documentation

This page was last modified 13:54, 9 October 2008.

From Milimail

Jump to: navigation, search

> User Manual > Add-on: Multi-LDAP > Technical Documentation

Contents

Add-on: Multi-LDAP - Technical Documentation

Architecture

Synthetic presentation of the architecture of the extension

This feature is developed as a Thunderbird add-on.

  • Users autocompletion with multi-directory LDAP

Architecture

This feature is based on the standard autocompletion from Thunderbird. It overload functions setupLdapAutocompleteSession(), AddDirectorySettingsObserver() and RemoveDirectorySettingsObserver() of the MsgComposeCommands.js file.

GUI files

  • Global preferences:

Servers list in the global preferences

  • User account preferences:

Servers list in the user account preferences

Global configuration

  • preferencesOverlay.xul file overload preferences.xul file. It includes the file composeLDAPOverlay.xul. It use the composeLDAPOverlay.js library
  • composeLDAPOverlay.js : retrieve the LDAP server list configured. It builds dynamically all XML items to create the GUI servers list. This list is accessible from the global preferences, in the composition tab.
  • Property to activate LDAP autocompletion (boolean): ldap_2.autoComplete.useDirectory
  • Property to define LDAP server list (string): ldap_2.autoComplete.directoryServers

GUI Architecture

User account preferences

  • Architecture is the same as above with a level less of inclusion (No file preferencesOverlay.xul). The file am-addressingOverlay.xul overloads am-addressingOverlay.xul. It uses the library file am-addressingOverlay.js
  • Property to overload the activation of LDAP autocompletion (boolean):ldap_2.identity.%IDENTITYKEY%.overrideGlobal_Pref.multi-ldap
  • Property to overload the definition of LDAP server list (string):ldap_2.identity.%IDENTITYKEY%.directoryServers

XPCOM files

This extension doesn't provided any new XPCOM. Mainly, it uses the built-in XPCOM nsIAutoCompleteSession and nsILDAPAutoCompFormatter that allows to manage the standard autocompletion on LDAP server.

Reference: English – Translations:  Français  • 


Files

Third Party Projects