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

Re: ldapadd error

--On Tuesday, April 11, 2006 4:28 PM -0500 Adam Williams <awilliam@mdah.state.ms.us> wrote:

Quanah Gibson-Mount wrote:

Yes, you must create it in your LDAP database, too, with LDIF.  See
the URL's above.

Ok, I did that, and I have an error:

ldapadd -x -D "cn=adam,dc=mdah,dc=state,dc=ms,dc=us" -W -h
roark.mdah.state.ms.us -f stanford.LDIF
Enter LDAP Password:
adding new entry "dc=mdah,dc=state,dc=ms,dc=us"
ldap_add: Already exists (68)

So I did a search:

ldapsearch -x -b dc=mdah,dc=state,dc=ms,dc=us

That is an anonymous search. I bet that anonymous doesn't have read access, thus you get no such object returned.

I advise you do a simple bind as a part of your search, just like you are doing with your add.


Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html