Hello Julien Gormotte
On 2012-12-20 15:59, Julien Gormotte wrote:
>
> i'm trying to configure multiple domains, and from what i see sogo
> always tries to query the same basedn
>
> This is the script I use to configure my SOGo installation :
< ... >
> defaults write sogod domains '{
> "dom2.info" = {
> SOGoMailDomain = "dom2.info";
> SOGoUserSources = (
> {
> type = ldap;
> CNFieldName = ou;
> IDFieldName = ou;
> UIDFieldName = mail;
> baseDN = "ou=users,ou=dom2.info,dc=root";
> bindDN = "cn=admin,dc=root";
> bindFields = (mail);
> bindPassword = somepass;
> canAuthenticate = YES;
> displayName = "ORG2";
> hostname = 127.0.0.1;
> id = directory;
> isAddressBook = YES;
> port = 389;
> });};
>
> "domain.fr" = {
> SOGoMailDomain = "domain.fr";
> SOGoUserSources = (
> {
> type = ldap;
> CNFieldName = ou;
> IDFieldName = ou;
> UIDFieldName = mail;
> baseDN = "ou=users,ou=domain.fr,dc=root";
> bindDN = "cn=admin,dc=root";
> bindFields = (mail);
> bindPassword = sompass;
> canAuthenticate = YES;
> displayName = "name";
> hostname = 127.0.0.1;
> id = directory;
> isAddressBook = YES;
> port = 389;
> });};
> }'
>
> Connecting with a user from domain.fr works.
>
> However, when I connect with a user from dom2.info, the logs say this :
< ... >
> Dec 20 15:25:04 sogod [16259]: [ERROR]
> <0x0x7f6cbcee3078[SOGoUserManager]> attempted to register a contact/user
> source with duplicated id (directory)
>
< ... >
> So, it seems that sogo does not use the basedn corresponding to the
> domaine. What have I done wrong ?
>
You didn't read the error message ;-)
You _must_ have different values for "id" in your SOGoUserSources.
In your config they are both set to "directory".
Kind regards,
Christian Mack
--
Christian Mack
Gruppe Informationsdienste
Rechenzentrum Universität Konstanz
--
[email protected]
https://inverse.ca/sogo/lists