Thunderbird: mass activate and configure ldap address book

Hi,

I'm looking for a way to deploy and configure the thunderbird address book with a ldap server.
The ldap server all ready exist, I know how to conf thunderbird manually, but we have more than 200 accounts, so i have to script it.
All stations are linux.
Thanks a lot,

David
elhijoAsked:
Who is Participating?
 
elhijoAuthor Commented:
I'll answer myself
What a shame that I can't win my points ;)
I just added those lines in ~/.thunderbird/xxx.default/prefs,js

-----------------------------------------------------------------------------------------------------
user_pref("ldap_2.autoComplete.directoryServer", "ldap_2.servers.ldap");
user_pref("ldap_2.autoComplete.useDirectory", true);
user_pref("ldap_2.prefs_migrated", true);
user_pref("ldap_2.servers.bix61.position", 0);
user_pref("ldap_2.servers.default.attrmap.HomeAddress", "homePostalAddress,mozillaHomeStreet");
user_pref("ldap_2.servers.default.attrmap.SecondEmail", "homeMail,mozillaSecondEmail,xmozillasecondemail");
user_pref("ldap_2.servers.default.attrmap.WorkAddress", "postalAddress,street,streetaddress,postOfficeBox");
user_pref("ldap_2.servers.default.filename", "default.mab");
user_pref("ldap_2.servers.default.replication.lastChangeNumber", 0);
user_pref("ldap_2.servers.default.uri", "moz-abldapdirectory://default.mab");
user_pref("ldap_2.servers.history.replication.lastChangeNumber", 0);
user_pref("ldap_2.servers.ldap.position", 0);
user_pref("ldap_2.servers.ldap_1.auth.savePassword", true);
user_pref("ldap_2.servers.ldap_1.description", "ldap");
user_pref("ldap_2.servers.ldap_1.filename", "abook-1.mab");
user_pref("ldap_2.servers.ldap_1.replication.lastChangeNumber", 0);
user_pref("ldap_2.servers.ldap_1.uri", "ldap://servername:389/dc=example,dc=com??sub?(objectclass=*)");
user_pref("ldap_2.servers.pab.replication.lastChangeNumber", 0);
user_pref("ldap_2.servers.test.position", 0);
-----------------------------------------------------------------------------------------------------

The two lines containing attrmap is only to map ldap attributes to thunderbird's expected attributes....

It's not a very clean way but it works....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.