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

RE: Windows SDK LDAP APIs..



hi Sanjay,
known problem
you use the VC wldap32.dll
you need the wldap32.dll from the platform SDK
you can download it form msdn.microsoft.com
(or on troubles, tell me and i'll send it to you)

cheers
eli

-----Original Message-----
From: sanjay [mailto:sanjay.a@lifetreeindia.com]
Sent: יום שלישי 03 פברואר 2004 12:26
To: Eli Elhadad; Fran?ois Beretti
Cc: openldap-software@OpenLDAP.org
Subject: Re: Windows SDK LDAP APIs..


Hi eli,

my application is crashing at the API  ldap_set_option ( ), its working fine
in the init ( ) APIs .. Could you tell me the reason ?
The exception is .. Access violation .... the code is given below ..

 pLdap = ldap_sslinit("192.168.1.167", 389, 0);
 if (pLdap == NULL)
 {
      printf("Error in connection to the server: (%d)\n",
LdapGetLastError());
      return;

 }// if

 ULONG dwRet;
 int version = LDAP_VERSION3;
 dwRet = ldap_set_option(pLdap, LDAP_OPT_PROTOCOL_VERSION, (void
*)&version);
 if (dwRet != LDAP_SUCCESS)
 {
      printf("Error while getting the option: (%x), %s\n", dwRet,
ldap_err2string(dwRet));
      return;

 }// if

Regards,
Sanjay

----- Original Message -----
From: "Eli Elhadad" <eelhadad@finjan.com>
To: "sanjay" <sanjay.a@lifetreeindia.com>; "Fran?ois Beretti"
<francois.beretti@enatel.com>
Cc: <openldap-software@OpenLDAP.org>
Sent: Tuesday, February 03, 2004 3:22 PM
Subject: 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!
****************************************************************************
********





************************************************************************************
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!
************************************************************************************