Hi Niklaas,

On 24.11.2016 11:47, Niklaas Baudet von Gersdorff ([email protected]) wrote:
> Maik Derstappen [2016-11-22 20:14 +0100] :
>
>> I'm trying to setup SOGoDomainsVisibility to make more domain visible in
>> one account.
>>
>> From the docs it is not clear what the syntax is, because the text an
>> the example show different syntax.
> I don't think so.
the docs are just changed to the nested array example, before it was ja
a list in the example ;)
>> I tried several variant but nothing work like expected.
> Just set this up for two of my domains. I guess the most
> important aspect to note is that it's an "array of arrays". So,
> each group of domains that should be visible to each other is one
> array. If you want to have multiple groups that share visibility
> you need multiple arrays.
>
> For example if a group consisting of domain1, domain2, and
> domain3 should see each other, and another group of domain2,
> domain4, and domain5 should see each other, you'd have to
> specify:
>
>   SOGoDomainsVisibility = ( ( domains1, domain2, domain3 ), ( domain2, 
> domain4, domain5 ) ) ;
>
> Does this help to better understand it?
>
>     Niklaas
ok good to know thx for the example.

You are using domain1 and domain2 instead of domain1.com and domain2.com.
I have the feeling that there is something strange in general with the
multi domain config.
I set it up like:

  domains = {
    dom1.de = {
      SOGoMailDomain = dom1.de;
      SOGoUserSources = (
              {
                type = sql;
                id = dom1_dir;
                DomainFieldName = "domain";
                viewURL =
"postgresql://sogo:[email protected]:5432/mail/sogo_users";
                SOGoDomainsVisibility = ((dom1.de, dom2.de));
                canAuthenticate = YES;
                isAddressBook = YES;
                userPasswordAlgorithm = ssha;
              }
      );
    };
    dom2.de = {
      SOGoMailDomain = dom2.de;
      SOGoUserSources = (
              {
                type = sql;
                id = dom2_dir;
                DomainFieldName = "domain";
                viewURL =
"postgresql://sogo:[email protected]:5432/mail/sogo_users";
                SOGoDomainsVisibility = ((dom1.de, dom2.de));
                canAuthenticate = YES;
                isAddressBook = YES;
                userPasswordAlgorithm = ssha;
              }
      );
    };
  };

But if a user from dom2.de is logged in, he can see addresses from
dom1.de but surprisingly not for his domain dom2.de.
Any idea what that could be.


-- 
viele Grüße
Maik Derstappen

--
Maik Derstappen
Geschäftsführer

derico - web development & consulting
-- Python - Plone - Zope - Pyramid - Django --
Demmeringstr. 57 - 04177 Leipzig - Deutschland
Tel: +49 178 861 2 833 - E-Mail: [email protected] - Web: http://derico.de

-- help --
Ask your Plone questions on Gitter: https://gitter.im/plone/public


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

Reply via email to