Mojo/Mozilla: Mail: LDAP

UI Proposal

Global Address Book/Account Specific LDAP

Last Modification:

Author: Jennifer Glick 
Creation Date: 16 March 2001

Status: Proposal



Feature Team


Dan Mosedale, Srilatha Moturi 


Mitch Green




Robin Foster Clark


Jennifer Glick



Please post all comments and suggestions regarding this spec to the newsgroup, netscape.public.mozilla.mail-news.



This spec outlines a proposal in which Address Book setting are Global and LDAP directory server settings are Per Account.


Design Details

A. Global Address Book Preferences

Preferences associated with Address Book are global for all accounts and are located in the Preferences: Mail and Newsgroups: Address Books panel.  This includes Email Address Collection and Address Autocompletion settings.


Address Autocompletion

Users can configure address autocompletion to search their "Local Address Books" and/or an "LDAP Directory Server".  From this dialog, users can not specify which LDAP directory server will be used.  A different LDAP directory server can be used for each separate account.  The LDAP directory server which is associated with each specific account will be used.  Setting up and/or selecting an LDAP directory server is accessed using the Mail/News Account Settings dialogs.  An LDAP directory panel is available per account.

Potential problems:  

  1. The relationship between enabling an LDAP directory server in the global preferences panel and how to select/setup an LDAP directory server in the account specific Mail/News Account Settings panels is not apparent to users.
  2. Can users enable the LDAP directory server setting in the Global prefs if they have not yet setup a per account LDAP directory server?  If yes, users might enable this feature but never be aware it isn't working because they never selected a per account LDAP directory server.  If no, is this checkbox disabled until an LDAP directory server has been set up for each account? How are users supposed to know this?


B. Account Specific LDAP Directory Servers

Selecting and configuring an LDAP directory server is per account.  Each account can be associated with a different LDAP directory server. In the future, each account can be associated with multiple LDAP directory servers.


1. Option 1

Each IMAP and POP (NNTP?) server panel will have an "LDAP Directory Server..." button on it which will enable the user to select and/or setup an LDAP directory server.


Clicking the "LDAP Directory Server..." button opens the "LDAP Directory Servers" dialog. This dialog is used to select and LDAP directory server or edit or delete an existing server, or add a new server. 


Clicking "Add" or "Edit" from the LDAP Directory Servers dialog opens the "Directory Server Properties" dialog.  Note: Offline tab is not currently implemented.

The "Find..."  button retrieves Search Root information from the server and opens a dialog of available suffixes.


Clicking on the "Advanced..." button on the "Directory Server Properties" dialog opens the "Advanced Directory Server Properties" dialog, which is used to configure more detailed LDAP directory settings.


2. Option 2

Each IMAP and POP (NNTP?) server panel will have an "Advanced..." button on it which will provide access to select and/or setup an LDAP directory server.  Note: the IMAP Server panel already has an Advanced button, but the POP server panel does not.


3. Option 3

Each account has its own LDAP directory server panel.


Requirements from Srilatha Moturi

Typedown pane -Edit->mail/news->Account Settings. One pane per account.

  1. Per-account typedown pane: exactly like Pinpoint Addressing "box" of 4.x preferences Addressing pane 
  2. Plus one more item: "Don't complete against more than ___ results" 
  3. Move "Enable address autocomplete" from Address Books preference to per-account typedown
    pane (similar to Address Auto completion box in the screen shots). One modification from screen shots is that, we should be able to select more than one server. (this will be implemented in the future). 

Directory Servers Dialog - Same as the screen shot. 

Directory Servers properties dialog: 

  1.  Directory Name 
  2. Hostname (LDAP Server)
  3. BaseDN (Search Root) 
  4. Advanced Options Button
  5. OK and Cancel Buttons

No offline tab for this release. 

Advanced Options Dialog: 

  1. Port number 
  2. Login with username and password 
  3. Save Password (disabled at this point) 
  4. Search filter (applis to entries within the specified scope of the search)
  5. Scope (scope of the search. If no scope is specified, the server performs a base search. )
    • Base (radio button, retrieves information only about the distinguished name (<base_dn>) specified in theURL) 
    • One (radio button, one retrieves information about entries one level below the distinguished name (<base_dn>) specified in the URL) 
    • Sub (radio button.  retrieves information about entries at all levels below the distinguished name (<base_dn>) specified in the URL. The base entry is included in this scope. ) 
  6. Don't return more than X results

The "Do not display more than X results" in "Address Autocompletion" box is the preference for autocompletion where we will not show more than X results in the mail compose window. 

The "Do not return more than X results" is the preference we set to tell the server to return only X