On 17/10/2019 20:45, Ludovic Marcotte (lmarco...@inverse.ca) wrote:
On 2019-10-17 5:56 a.m., Christoph Zechner (zech...@vrvis.at) wrote:

Is there any news for this? The bug still persists and our id is correctly setup in the sogo config.

I don't have this issue. You could always share your exact site.js and SOGo.conf to make sure (by stripping password information).

site.js (we only changed this one line)

pref("sogo-connector.autocomplete.server.urlid", "ldap.example.com");



sogo.conf

SOGoUserSources = (
        {
            CNFieldName = gecos;
            IDFieldName = uid;
            KindFieldName = kind;
            MultipleBookingsFieldName = Multiplebookings;
            UIDFieldName = uid;
            baseDN = "ou=Users,o=example,c=com";
            bindFields = (
                uid
            );
            canAuthenticate = YES;
            displayName = "Example Users";
            filter = "(status='A')";
            hostname = localhost;
            id = ldap.example.com;
            isAddressBook = YES;
            port = 389;
            scope = ONE;
        }
    );


prefs.js after sogo-connector installation in Thunderbird:


user_pref("ldap_2.autoComplete.directoryServer", "ldap_2.servers.public");
user_pref("ldap_2.servers.public.description", "Example Users");
user_pref("ldap_2.servers.public.filename", "ldap.mab");
user_pref("ldap_2.servers.public.uri", "carddavs://sogo.example.com/SOGo/dav/testuser/Contacts/ldap.example.com/");

prefs.js after the next restart:

user_pref("ldap_2.autoComplete.directoryServer", "ldap_2.servers.public_1");
user_pref("ldap_2.servers.public.description", "Example Users");
user_pref("ldap_2.servers.public.filename", "ldap.mab");
user_pref("ldap_2.servers.public.uri", "carddavs://sogo.example.com/SOGo/dav/testuser/Contacts/ldap.example.com/");
user_pref("ldap_2.servers.public_1.description", "Example Users");
user_pref("ldap_2.servers.public_1.filename", "ldap-1.mab");
user_pref("ldap_2.servers.public_1.uri", "carddavs://sogo.example.com/SOGo/dav/testuser/Contacts/ldap.example.com/");

after every Thunderbird restart, a new directory server is being added like "_1", "_2" and so on. It also creates a new MAB file every time. Thunderbird automatically uses the newest one in

"ldap_2.autoComplete.directoryServer" every time. The Preferences > Composition > Addressing menu always only shows one directory server, not multiple (see attached screenshot from the 5th Thunderbird restart).


Also, you could always remove all the junk in Preferences > Composition > Addressing by deleting all bogus directory services.

We do all our testing in a clean testing environment and use the following Windows batch script for scrubbing Thunderbird's data after every test run:

@echo off

call "C:\Program Files\Mozilla Thunderbird\uninstall\helper.exe" -ms
echo "Uninstalled Thunderbird!"
rem removing app data
RMDIR /S /Q C:\Users\testuser\AppData\Roaming\Thunderbird
RMDIR /S /Q C:\Users\testuser\AppData\Local\Thunderbird
echo "removed app data!"

Hope this helps.

Best regards
Christoph Zechner
--
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to