Hello J.
Am 2013-09-06 08:45, schrieb J.:
> 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
>
You have to at least create the organizational unit
"ou=users,dc=mail,dc=mydomain,dc=com" before inserting an user into it.
I assume here, that you have set the LDAP admin user
"cn=admin,dc=mail,dc=mydomain,dc=com" and his password in your LDAP config.
As mentioned before you must enclose all dn's on the command line with
quotes:
# ldapadd -f sogo.ldif -x -w mySlapdPassword -D
"cn=admin,dc=mail,dc=mydomain,dc=com"
Kind regards,
Christian Mack
--
Christian Mack
Gruppe Informationsdienste
Rechenzentrum Universität Konstanz
--
[email protected]
https://inverse.ca/sogo/lists