Hello all !

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 :

rm GNUstep/Defaults/.GNUstepDefaults

defaults write sogod SOGoTimeZone "Europe/Paris"
defaults write sogod SOGoLanguage French
defaults write sogod SOGoAppointmentSendEMailNotifications YES
defaults write sogod SOGoFoldersSendEMailNotifications YES
defaults write sogod SOGoACLsSendEMailNotification YES

defaults write sogod SOGoProfileURL 
'postgresql://sogo:lrCRDr10S@localhost:5432/sogo/sogo_user_profile'
defaults write sogod OCSFolderInfoURL 
'postgresql://sogo:lrCRDr10S@localhost:5432/sogo/sogo_folder_info'
defaults write sogod OCSSessionsFolderURL 
'postgresql://sogo:lrCRDr10S@localhost:5432/sogo/sogo_sessions_folder'

defaults write sogod SOGoMailingMechanism smtp
defaults write sogod SOGoSMTPServer localhost

defaults write sogod SOGoDraftsFolderName Drafts
defaults write sogod SOGoSentFolderName Sent
defaults write sogod SOGoTrashFolderName Trash
defaults write sogod SOGoIMAPServer localhost
defaults write sogod SOGoLoginModule Mail

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 :

2012-12-20 15:25:04.047 sogod[16259] Note: Using UTF-8 as URL encoding in 
NGExtensions.
Dec 20 15:25:04 sogod [16259]: <0x0x7f6cbce54d18[SOGoCache]> Cache cleanup 
interval set every 300.000000 seconds
Dec 20 15:25:04 sogod [16259]: <0x0x7f6cbce54d18[SOGoCache]> Using host(s) 
'localhost' as server(s)
2012-12-20 15:25:04.051 sogod[16259] Note(SoObject): SoDebugKeyLookup is 
enabled!
2012-12-20 15:25:04.051 sogod[16259] Note(SoObject): SoDebugBaseURL is enabled!
2012-12-20 15:25:04.051 sogod[16259] Note(SoObject): relative base URLs are 
enabled.
2012-12-20 15:25:04.071 sogod[16259] WOCompoundElement: pool embedding is on.
2012-12-20 15:25:04.071 sogod[16259] WOCompoundElement: id logging is on.
Dec 20 15:25:04 sogod [16259]: [ERROR] <0x0x7f6cbcee3078[SOGoUserManager]> 
attempted to register a contact/user source with duplicated id (directory)

==> /var/log/ldap.log <==
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 fd=14 ACCEPT from 
IP=127.0.0.1:38426 (IP=0.0.0.0:389)
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=0 BIND dn="cn=admin,dc=ate" 
method=128
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=0 BIND dn="cn=admin,dc=ate" 
mech=SIMPLE ssf=0
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=0 RESULT tag=97 err=0 text=
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=1 SRCH base="" scope=0 
deref=0 filter="(objectClass=*)"
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=1 SRCH attr=subschemaSubentry
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=1 SEARCH RESULT tag=101 err=0 
nentries=1 text=
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=2 SRCH base="cn=Subschema" 
scope=0 deref=0 filter="(objectClass=*)"
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=2 SRCH attr=objectclasses
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=2 SEARCH RESULT tag=101 err=0 
nentries=1 text=
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=3 SRCH 
base="ou=users,ou=domain.fr,dc=root" scope=2 deref=0 
filter="([email protected])"
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=3 SRCH attr=dn
Dec 20 15:25:04 sogo01 slapd[14683]: <= bdb_equality_candidates: (mail) not 
indexed
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=3 SEARCH RESULT tag=101 err=0 
nentries=0 text=

==> /var/log/sogo/sogo.log <==
Dec 20 15:25:04 sogod [16259]: SOGoRootPage Login for user '[email protected]' 
might not have worked - password policy: 65535  grace: -1  expire: -1  bound: 0


==> /var/log/ldap.log <==
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 op=4 UNBIND
Dec 20 15:25:04 sogo01 slapd[14683]: conn=1078 fd=14 closed


So, it seems that sogo does not use the basedn corresponding to the domaine. 
What have I done wrong ?

Thanks for your help 

<</usr/share/emoticons/kde4/smile.png>>

Reply via email to