[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
no such object (ITS#1082)
Hi
I have this problem and I'm not able to solve it
when i run this command :
ldapadd -f file.ldif
I have this msg :
adding new entry o=Lerdorf, c=IT
ldap_add: No such object
can you help me ?
bye
this is my slapd.conf :
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /usr/local/etc/openldap/slapd.at.conf
include /usr/local/etc/openldap/slapd.oc.conf
schemacheck off
#referral ldap://root.openldap.org/
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "o=Lerdorf, c=IT"
rootdn "cn=root, o=Lerdorf, c=IT"
# cleartext passwords, especially for the rootdn, should
# be avoid. See slapd.conf(5) for details.
# rootpw secret
# database directory
# this directory MUST exist prior to running slapd AND
# should only be accessable by the slapd/tools Mode 700 recommended.
directory /usr/local/var/openldap-ldbm
----------------------------------------------------
and this is my ldif file
dn: o=Lerdorf, c=IT
o: Lerdorf
objectclass: organization
dn: ou=Friends, o=Lerdorf, c=IT
ou: Friends
objectclass: organizationalunit
dn: ou=Colleagues, o=Lerdorf, c=IT
ou: Colleagues
objectclass: organizationalunit
dn: ou=Misc, o=Lerdorf, c=IT
ou: Misc
objectclass: organizationalunit
dn: cn=Rasmus Lerdorf, ou=Friends, o: Lerdorf c=IT
cn: Rasmus Lerdorf
sn: Lerdorf
mail: rasmus@lerdorf.on.it
objectclass: person
dn: cn=John Doe, ou=Misc, o: Lerdorf c=IT
cn: John Doe
sn: Doe
mail: test@address.com
objectclass: person
------------------------------