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

Re: ldap_bind Invalid DN entry?!?!

First your ldapsearch arguments are wrong.  To specify a bind_dn for
ldapsearch you need to use -D <bind_dn>.  ldapsearch -h will give you all
the arguments but you can try:

ldapsearch -x -D "toto" -w "toto" -b "o=my_org,c=fr" 

As for binding as just toto, I don't think you can do that.  Other people
in this list may be able to answer this question better than I can.


Quoting Alexandru POPESCU <angelrabbit99@yahoo.com>:

> hi,
> I've set up an OpenLDAP server and I try to use it through the
> Netscape
> API. I have the rootdn set to "toto" and the rootpass to "toto".
> When I do:
> ldapsearch -x toto -w toto -b "o=my_org,c=fr" 
> I get all the users under this base entry. But when I try to use
> ldap_bind
> or ldap_simple_bind with "toto" as user DN and "toto" as password I
> get
> "Invalid DN entry". I do not understand...How does ldapsearch manages
> to
> bind and search and what should I do in my C code to achieve the same
> result. 
> thanks,
> alex.
> ps: I MUST use ONLY "toto" as rootdn and not a classic dn entry...
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com

Secure Webmail sent through: Echostar Solutions - www.echostar.ca