Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1029
  • Last Modified:

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
0
elhijo
Asked:
elhijo
1 Solution
 
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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now