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

Re: slapadd, No such object (?)

On Tue, Nov 20, 2001 at 10:56:46AM -0700, Darren Gamble wrote:

> suffix          "o=Shawtest,dc=shaw,dc=ca"
> rootdn          "cn=Manager,o=Shawtest,dc=shaw,dc=ca"

> === Sample input ldif (shawtest1.ldif)
> dn: uid=dgamble,ou=Users,o=Shawtest,dc=shaw,dc=ca

> === Sample command and output
> $ ldapadd -h localhost -f shawtest1.ldif -x -D
> "cn=Manager,o=Shawtest,dc=shaw,dc=ca" -w "d8bxl3"
> adding new entry "uid=dgamble,ou=Users,o=Shawtest,dc=shaw,dc=ca"
> ldap_add: No such object

Trying to add "uid=dgamble" before adding "ou=Users" is like trying
to put passengers on a train when all you've done is lay the track.
All the "higher" obects must exist before an LDAP add operation can
work. Add your "Users" org unit & try again.


P.S. I've always preferred "-W" to "-w secret" but that's your call.
The -w stuff ends up in history files, and also is generally (on most
platforms) visible to any other user/process running on the same system.