Page 1 of 1
Thunderbird and LDAP
Posted: Sat Oct 01, 2005 6:09 am
by ssozonoff
Hi,
I would like to setup an LDAP address book in Thunderbird which would allow each user access to their Personal Contacts so that they have the same address book view as when they are using the web client and looking in their "Personal Contacts"
So far I have been unable to get this to work, anyone have any guidelines or examples?
Kind thanks,
Serge
Posted: Sat Oct 01, 2005 11:33 am
by ScalixSupport
The base dn for Personal Contacts is "o=MyContacts". The only way this information can be accessed is via an authenticated bind so the user *must* supply their password.
Cheers
Dave
Posted: Sat Oct 01, 2005 4:55 pm
by ssozonoff
Hi Dave,
Yeah, this is what I have been trying but so far no luck.
I am also having troubles browsing MyContacts with an LDAP browser.
I will have to enable some debugging to see whats going on?
Thanks,
Serge
Posted: Sat Oct 01, 2005 5:54 pm
by ScalixSupport
I have a working installation with the following settings:
Go to Edit->Preferences and select the Composition Tab.
In the Address AutoCompletion section, make sure that the Directory Servers option is enabled and select Edit Directories.
You'll get a list of existing directories but select Add.
Set the following options:#
Name: Anything
Hostname: server.domain.com
Base DN: o=MyContacts
Port number: 389
Bind DN: cn=User Name
Click OK/OK/OK
When you write a message you can now resolve the address against your personal contacts. If you want to search, select Address Book and you should see an address book called "Anything" in the list. You will need to enter some text in the search field and the results will be displayed. You may be prompted for your password.
To test this from the command line, run the command:
ldapsearch -xh localhost -b "o=MyContacts" -D "cn=User Name" -W cn=*
You'll be prompted for your password but you should get a list of the entries.
Cheers
Dave
Posted: Sun Oct 02, 2005 2:50 am
by florian
Two things should also be noted and might be helpful...
- as MyContacts is really a "special" conversion function and not a full LDAP directory, some LDAP browsers might not work correctly on this (as, for example, it will not expose schema metadata and other stuff). The search function in Thunderbird will work, though, we do this in every training.
- one very common error happens, when your display name generation is set to "Last, First". If this is the case, your CN in the DN used for the bind will be quoted, i.e. you might need to type something like:
ldapsearch -h localhost -p 389 -D 'cn="Sozonoff, Serge", o=Scalix' -w mypass -x '(surname=mysearch)'
to verify what your DN really is, issue a "omldapsearch '(surname=Sozonoff)'" first against the SYSTEM directory; if the dn line contains quotes (") in the CN part, you have to specify those.
Good luck,
Florian.
Posted: Sun Oct 02, 2005 2:49 pm
by ssozonoff
Hi Dave and Florian,
ScalixSupport wrote:Name: Anything
Hostname: server.domain.com
Base DN: o=MyContacts
Port number: 389
Bind DN: cn=User Name
I have this working now.
Thanks a bunch.
Serge
Posted: Tue May 29, 2007 2:29 pm
by ianare
on TB 2.0 I did this but after asking me for the password it shows no entries. The user does have contacts when in SWA.
Any ideas?