[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
OpenLDAP and mails on freebsd
# ldapadd -x -D "cn=admin, dc=linux-win, dc=org" -W -f linux-win.ldif
Enter LDAP Password:
adding new entry "o=france,dc=linux-win,dc=org"
ldap_add: No such object (32)
My slapd.conf is :
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/authldap.schema
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
access to *
by dn="cn=admin,dc=linux-win,dc=org" write
by * none
database bdb
suffix "dc=linux-win,dc=org"
rootdn "cn=admin,dc=linux-win,dc=org"
rootpw *******
directory /var/db/openldap-data
index objectClass eq
My linux-win.ldif is :
dn:o=france,dc=linux-win,dc=org
o: france
objectClass: top
objectClass: organization
objectClass: CourierDomainAlias
virtualdomain: mail.linux-win.org
virtualdomainuser: mail.linux-win.org/
dn:cn=admin,o=france,dc=masociete,dc=com
cn: admin
mail: admin@mail.linux-win.org
maildrop: admin@mail.linux-win.org
sn: Administrations
objectClass: top
objectClass: inetOrgPerson
objectClass: CourierMailAlias
dn:cn=flob2009,o=france,dc=linux-win,dc=org
cn: flob2009
gidNumber: 0
mail: flob2009@mail.linux-win.org
sn: Florian
uidNumber: 0
mailbox: mail.linux-win.org/flob2009/
objectClass: top
objectClass: inetOrgPerson
objectClass: CourierMailAccount
userPassword: {CRYPT}Qigb3vRISRuSo
homeDirectory: /home/vmail/
dn:cn=support,o=france,dc=linux-win.org,dc=org
cn: support
gidNumber: 0
mail: support@mail.linux-win.org
sn: Support
uidNumber: 0
mailbox: mail.linux-win.org/support/
objectClass: top
objectClass: inetOrgPerson
objectClass: CourierMailAccount
userPassword: {CRYPT}ie11d2640RGJQ
homeDirectory: /home/vmail/
I don't understand why it says no such object.Anyone have a solution ?
-------