I've read a bit about ldap and have a few questions about getting things going.
Do I need to somehow add the ou "users" to the ldap server before anything else
(and if so, how)? When I configured slapd during install, I set up
mail.mydomain.com as the dn of the system, next I used the config example from
the installation guide in my sogo.conf file:
SOGoUserSources = (
{
type = ldap;
CNFieldName = cn;
UIDFieldName = uid;
IDFieldName = uid; // first field of the DN for direct binds
bindFields = (uid, mail); // array of fields to use for indirect binds
baseDN = "ou=users,dc=mail,dc=mydomain,dc=com";
bindDN = "uid=sogo,ou=users,dc=mail,dc=mydomain,dc=com";
bindPassword = qwerty;
canAuthenticate = YES;
displayName = "Shared Addresses";
hostname = ldap://127.0.0.1:389;
id = public;
isAddressBook = YES;
}
);
Then I'm trying to set up the Admin account and I get an error:
dn: uid=sogo,ou=users,dc=mail,dc=mydomain,dc=com
objectClass: top
objectClass: inetOrgPerson
objectClass: person
objectClass: organizationalPerson
uid: sogo
cn: SOGo Administrator
mail: [email protected]
sn: Administrator
givenName: SOGo
# ldapadd -f sogo.ldif -x -w mySlapdPassword -D
cn=admin,dc=mail,dc=mydomain,dc=com
adding new entry "uid=sogo,ou=users,dc=mail,dc=mydomain,dc=com"
ldap_add: No such object (32)
matched DN: dc=mail,dc=mydomain,dc=com--
[email protected]
https://inverse.ca/sogo/lists