tactical vim

nerdy bits & pieces

thunderbird LDAP autocomplete with Active Directory

with one comment

The core problem is that the autocomplete while composing emails in Thunderbird uses a different LDAP filter than when you’re just looking in the address book. Depending on how your Exchange/Active Directory admins set up the attributes – and the design of the login names, we have 3 different styles in my company – you may “miss” finding people depending on how you type parts of their name.

Once your LDAP server is set up in Thunderbird it will have preferences based on the name you gave it; I’ll use MYSERVER below, replace with your correct name.

  1. Open the Thunderbird Preferences, select the Advanced -> General tab
  2. Click Config Editor (dismiss the warning if it appears)
  3. Rightmouse click and chose New -> String Value to add these items (so repeat the process for each pair below):
  4. Preference name: ldap_2.servers.MYSERVER.attrmap.DisplayName
    Preference value: displayName
    
    Preference name: ldap_2.servers.MYSERVER.autoComplete.commentFormat
    Preference value: [displayName]
    
    Preference name: ldap_2.servers.MYSERVER.autoComplete.nameFormat
    Preference value: [displayName]
    
    Preference name: ldap_2.servers.MYSERVER.autoComplete.filterTemplate
    Preference value: (|(mail=*%v*)(displayName=*%v*)(givenName=*%v*)(sn=*%v*)(cn=*%v*))
    

Now you know, and knowing is half the battle. (Go Joe!)

Advertisement

Written by troyengel

2011-10-22 at 09:42

One Response

Subscribe to comments with RSS.

  1. Note that attributes in search filters might require that those attributes be indexed by the administrators. Your directory server administrators should provide guidance as to which attributes should be used when searching a directory for whatever purpose.

    Terry Gardner

    2011-10-24 at 05:36


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.