[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldapadd problem



I am trying to build a database with the ldif file attached using
ldapadd. When I run ldapadd, it adds the first 2 entries from the ldif
file, but the dies at the 3rd entry with the error: "No such object
found".

I have also tried ldapadd with Entry 3 removed completely but I get the
same error for entry 4: "No such object found"


-------- slapd.conf ---------------

include  /usr/local/etc/openldap/schema/core.schema
schemacheck off

access to attr=userPassword
 by self write
 by * auth

access to *
 by * read

pidfile  /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args

database ldbm
suffix  "o=perfectproof"
rootdn  "cn=manager,o=perfectproof"
rootpw  secret
directory /usr/local/var/openldap-ldbm
#---------   end slapd.conf --------



-------- ldif file -------------------

# Entry 1
dn: o=perfectproof
objectclass: top
o: perfectproof
objectclass: organization

# Entry 2
dn: cn=manager,o=perfectproof
cn: manager
o: perfectproof
ou: perfectproof
objectclass: organizationalRole

# Entry 3
dn: o=perfectproof,ou=perfectproof
objectclass: department
o: perfectproof
ou: perfectproof

# Entry 4
dn: cn=John Weissberg,o=perfectproof,ou=perfectproof
cn: John Weissberg
sn: Weissberg
mail: jw@perfectproof.com
o: perfectproof
ou: perfectproof
objectclass: person

# Entry 5
dn: cn=Bas Dorst,o=perfectproof,ou=Xalt
cn: Bas Dorst
sn: Dorst
mail: bas@x-alt.nl
o: perfectproof
ou: Xalt
objectclass: person
--

John Weissberg
PerfectProof
www.perfectproof.com

USA
(888) 228 9070 Tel.
(888) 228 9070 FAX

Europe
+32 2 253 0732 Tel.
+32 2 253 3667 FAX