Hi.
I test ldapSend to query user's position in AD tree.

The problem is that I must always specify username and password otherwyse I 
cannot search (always return 0).

I tested same situation using ldp.exe utility and I can bind the search without 
specify Username and Password.
Probably I missed something.

In ldapSend.pas file I can read:

    {:Try to connect to LDAP server and start secure channel, when it is 
required.}
    function Login: Boolean;

    {:Try to bind to LDAP server with @link(TSynaClient.Username) and
     @link(TSynaClient.Password). If this is empty strings, then it do 
annonymous
     Bind. When you not call Bind on LDAPv3, then is automaticly used anonymous
     mode.

     This method using plaintext transport of password! It is not secure!}
    function Bind: Boolean;

    {:Try to bind to LDAP server with @link(TSynaClient.Username) and
     @link(TSynaClient.Password). If this is empty strings, then it do 
annonymous
     Bind. When you not call Bind on LDAPv3, then is automaticly used anonymous
     mode.

So why I cannot search in anonynous mode?

Thanks
Luca
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to