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

Re: ldapadd problem



John Weissberg wrote:
> 
> 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"
 
> ...

> -------- 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

> ...
> 
> 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

You need to (at least) change round the "o" and "ou" in entry 3. Entry 1
creates o=perfectproof, under which you intend to create ou=perfectproof
with entry 3. So this should be
dn: ou=perfectproof,o=perfectproof

Dave
--
Dave Lewney
Principal Systems Programmer, Computing Service
University of Sussex, Brighton BN1 9QJ. Tel: 01273 678354 Fax: 01273
271956