Am 21.12.2012 11:07, schrieb Julien Gormotte:
Ah... I read the error message... but did not correctly understand it :p
Thanks for your help, it seems it's ok now !
/me ashamed :)
Le vendredi 21 décembre 2012 09:04:57 Christian Mack a écrit :
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
You should also edit the respective Thunderbird Plugins (site.js) to
match those ids, meaning, you have different TB-Plugins for each Domain,
which could be a hazzle in case of automatic updates via update.php. You
could add something like ID=id at the end of the isiUpdateurl in the rdf
file and edit your update.php to use that to distinguish between
different Domain plugins.
Hagen
--
[email protected]
https://inverse.ca/sogo/lists