[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap_init and ldap_open.
As I understand it, you can't simply do an ldap_init, you must either
do an ldap_init()-ldap_bind() or ldap_open() before performing other
operations. If you use ldap_open, then you open an anonymous connection
to the ldap server.
Use ldap_init if you are going to use ldap_bind to authenticate right
afterwards -- it a little more efficient in that case.
>
> Yes, all the tests are successful, yet I still got the problem.
>
> Yudong
>
> On Tue, 6 Jun 2000, Kurt D. Zeilenga wrote:
>
> > Did 'cd tests; make' pass at least one test? If so,
> >
> > ldap_init() is working as all provided ldap tools use it.
> >
> >
> > Kurt
> >
> >
> > At 12:24 AM 6/6/00 +0800, YD_Zheng@SoC wrote:
> >
> > >>>>
> >
> > <fontfamily><param>Arial</param>Hello,
> >
> > </fontfamily>
> >
> > <fontfamily><param>Arial</param> I'm using OpenLdap 1.2.10,
> >
> > I've set up my server successfully and i've written a simple client
> > program.
> >
> > However, it reports "Can't contact ldap server" error when I use
> > ldap_init,
> >
> > if i use ldap_open, then everything is fine.
> >
> > I've checked the archives and someone said this bug was fixed in
> > release 1.2.*
> >
> > but why I still get this problem?
> >
> > Anyone enlighten me will be appreciated.
> >
> >
> >
> > regards,
> >
> > Yudong, Zheng
> >
> > </fontfamily>
> >
> > <<<<<<<<
> >
> >
> >
>
> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
>
> There is NOTHING great without ENTHUSIASM.
>
> Name:Zheng Yu Dong
> Yr:Computer Science, 2nd yr
> E-mail:zhengyud@comp.nus.edu.sg
> isc80045@nus.edu.sg
>
>