Hi, Patrick asked me to try out that new feature addressbooks-in-LDAP. I added the ouAB setting and also created ou=addressbooks under each user in the DIT. Unfortunately SOGo uses the wrong DN when trying to add ou=personal,ou=addressbooks,uid=userfoo,ou=users,...
What it does is:
May 21 09:50:05 res slapd[4906]: conn=1002 op=1 SRCH
base="ou=addressbooks,cn=croessner,ou=users,o=example" scope=0 deref=0
filter="(objectClass=*)"
May 21 09:50:05 res slapd[4906]: conn=1002 op=2 ADD
dn="ou=addressbooks,cn=croessner,ou=users,o=example"
May 21 09:50:05 res slapd[4906]: conn=1003 op=1 ADD
dn="ou=personal,ou=addressbooks,cn=croessner,ou=users,o=example"
This is wrong, as there is no user cn=croessner. It would have to be
uid=croessner. So the DN is built incorrectly.
Here is the part from our LDAP-userSource:
sogod domains '{
"example" = {
SOGoMailDomain = "example";
SOGoUserSources = (
{
CNFieldName = cn;
IMAPLoginFieldName = mail;
KindFieldName = Kind;
MailFieldNames = (
mail,
mailAlias
);
UIDFieldName = uid;
ouAB = addressbooks;
baseDN = "ou=Users,o=example";
bindAsCurrentUser = YES;
bindDN = "cn=sogo,ou=services,o=example";
bindFields = (
mail,
mailAlias,
cn,
uniqueIdentifier
);
bindPassword = ********
canAuthenticate = YES;
displayName = example;
encryption = ssl;
hostname = "somewhere.example.com";
id = directory0;
isAddressBook = YES;
port = 636;
scope = SUB;
type = ldap;
}
);
};
}'
We use: SOGo 2.0.0.20120520-1 on Ubuntu 12.04
Is this configuration okay?
-Christian Rößner
---
Roessner-Network-Solutions
Bachelor of Science Informatik
Nahrungsberg 81, 35390 Gießen
F: +49 641 5879091, M: +49 176 93118939
USt-IdNr.: DE225643613
http://www.roessner-network-solutions.com
smime.p7s
Description: S/MIME cryptographic signature
