Thunderbird and LDAP

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

ssozonoff
Posts: 22
Joined: Mon Sep 26, 2005 7:37 am

Thunderbird and LDAP

Postby ssozonoff » Sat Oct 01, 2005 6:09 am

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Sat Oct 01, 2005 11:33 am

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

ssozonoff
Posts: 22
Joined: Mon Sep 26, 2005 7:37 am

Postby ssozonoff » Sat Oct 01, 2005 4:55 pm

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Sat Oct 01, 2005 5:54 pm

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

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Sun Oct 02, 2005 2:50 am

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.
Florian von Kurnatowski, Die Harder!

ssozonoff
Posts: 22
Joined: Mon Sep 26, 2005 7:37 am

Postby ssozonoff » Sun Oct 02, 2005 2:49 pm

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

ianare
Posts: 61
Joined: Tue Sep 19, 2006 1:13 pm

Postby ianare » Tue May 29, 2007 2:29 pm

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?


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 1 guest