On 13/05/15 10:14, Marc Patermann wrote:
I created a bug two weeks ago, but it seems there was no further activity since. :(
http://www.sogo.nu/bugs/view.php?id=3154
I'm very unhappy, there has nothing happened at all in 1.5 month with this bug! :(

Is there any way to change this?

Hi Marc,

Yes, there is a way to change this. Tanmay ([email protected]) spotted what is going on back on 2nd May. I was away on holiday last week but have tested his solution and it works fine for us.

In summary, the SOGo Connector does not employ any "smart" logic or communicate with the SOGo backend on the server to help it calculate the Cal/CardDAV URLs. Instead it simply uses the username from the first IMAP account configured in Thunderbird and injects it into the URL. If you have your IMAP account in Thunderbird configured to use a simple username you get something like:

    https://www.example.net/SOGo/dav/username/Calendar/personal/

Whereas, if you log into your IMAP account using an email address ([email protected]) you get:

https://www.example.net/SOGo/dav/[email protected]/Calendar/personal/

You next need to check which of these SOGo is configured to expect in sogo.conf:

  SOGoUserSources = (
    {
      type = ldap;
      CNFieldName = displayName;
      UIDFieldName = mail;
      MailFieldNames = ( mail, otherMailbox );
      baseDN = "CN=Users,dc=example,dc=net";
      bindDN = "CN=auth-sogo,CN=Users,DC=example,DC=net";
      bindFields = (sAMAccountName, mail);
      bindPassword = "<strong_password>";
      canAuthenticate = YES;
      displayName = "Global Address Book";
      hostname = ldap://127.0.0.1:389;
      filter = "mail = '*'";
      id = directory;
      isAddressBook = YES;
    }

The key part here is the UIDFieldName. If this is configured to expect a username, then log into IMAP with a username in Thunderbird. If it is configured to expect an e-mail address, log into IMAP with an e-mail address in Thunderbird.

(An alternative way to check is to log into SOGo with a web browser, right-click Properties on your personal calendar. On the Links to this Calendar tab you will see the CalDAV URL and be able to tell whether your system is configured for username or e-mail address.)

If your users aren't too worried about their local Thunderbird preferences, you can simply remove their profile and re-configure it using the correct style of username for your system. Otherwise, the following procedure (a bit long winded) is working for me:

1. Start TB.
2. Go to Add-ons and disable both the SOGo Connector and SOGo
   Integrator extensions.
3. Restart TB.
4. Right-click your IMAP account in the tree-list on the left and
   select Settings.  Navigate to Server Settings below your account
   name and update the Username.
5. Move down to Outgoing Server (SMTP) at the bottom of the list and
   Edit your entry.  Update the Username field appropriately and click OK.
6. Close Account Settings by clicking OK.
7. Restart TB and log into your IMAP account when prompted (save
   password with Password Manager, if desired).
8. Click the Address Book toolbar button.  Delete all address books by
   right-clicking and selecting Delete.  Two will remain (local
   personal and collected addresses).
9. Open the Calendar and Unsubscribe from all calendars by
   right-clicking them.  (You may have to create a temporary new local
   calendar to allow the last one to be removed.)
10. Re-enable both the SOGO Connector and SOGO Integrator extensions.
11. Restart TB and log into your SOGo account when prompted (save
   password with Password Manager, if desired).

It is possible that after this procedure you will see two SOGo directories in Address Book after this has completed. (In our case called Global Address Book from the displayName = "Global Address Book" line in sogo.conf.) Work out which one is using the wrong URL by checking its Properties and delete it. (Your personal address book title will probably vanish at this stage but do not panic!) Restart TB and everything will work normally.

I will update the bug with this information in a while. I have been thinking lots about this as it has been causing me considerable pain on three customer sites. While strictly not a bug (simply a Thunderbird mis-configuration) I think the connector should be smarter and ask the SOGo back-end for the URL of the resources. This way it would support changing the UIDFieldName style without the horrible local Thunderbird procedure above. Does this sound like a sensible enhancement request?

P.S. Although I have no connection with Inverse I suspect the team have been deep in OpenChange integration work for the last few weeks. I'm sure they will catch up here and with the bug reports prior to the next release.

Hope this all helps?


Ian.
--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to