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

RE: Windows SDK LDAP APIs..



yes you can, just do:
	unsigned long version = LDAP_VERSION3;
	ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, (void*)&version );

before the bind

cheers
eli

-----Original Message-----
From: sanjay [mailto:sanjay.a@lifetreeindia.com]
Sent: ??? ????? 03 ?????? 2004 11:33
To: Fran?ois Beretti
Cc: openldap-software@OpenLDAP.org
Subject: Re: Windows SDK LDAP APIs..


Hi François,

So My problem is when i'm trying to connect to the LDAP server using
ldap_open ( ) APIs i'm able to connect to the server, where as if i'm trying
to connect, using ldap_init ( ) APIs and after that ldap_connect ( ) APIs my
application is crashing .. why is it so ??

actually bydefault the ldap_init ( ) creates a ldap object for LDAP v2 but i
have to connect to the LDAP v3 so i'm trying to use ldap_init ( ) and then i
will change the version to V3 and then i will connect to the LDAP server ..

Please tell me how can i connect to the LDAP server V3 using Windows SDK
APIs..

Regards,
Sanjay



----- Original Message -----
From: "François Beretti" <francois.beretti@enatel.com>
To: "sanjay" <sanjay.a@lifetreeindia.com>
Cc: <openldap-software@OpenLDAP.org>
Sent: Tuesday, February 03, 2004 2:55 PM
Subject: Re: Windows SDK LDAP APIs..


> Hi,
>
> I am trying to do that. Maybe I can solve your problem, if you post it
>
> François
>
> sanjay a écrit :
>
> > Hi,
> >
> > Has any one ever used Windows SDK LDAP APIs to connect to the Redhat
> > Linux 9 LDAP server ??
> >
> > Please let me know as its really *URGENT...i'm facing problem in
that...*
> > **
> > Regards,
> > Sanjay
>
>
>



************************************************************************************
Finjan Software

This e-mail and any attached files are confidential and may be legally
privileged. The unauthorized use, disclosure or copying of this email or
any information contained within it is strictly prohibited. This also
confirms that Finjan Software's SurfinGate for E-Mail has scanned this
message for the presence of known viruses and potentially malicious
code.

Finjan Software - Prevention is the Best Cure!
************************************************************************************