curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: libcurl LDAP in asyncmod

From: Fulup Ar Foll via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 2 May 2021 11:01:33 +0200

Patrick,

It is not as clear as that, if you have a wrong LDAP request schema,
ldap returned code is also store into msg->result, when in my opinion
this is an LDAP protocol error. In any case it allows to retrieve an
classify low level errors as: invalid-credential, invalid-request, ...
which is what I was looking for.

Have a nice Sunday.

Fulup

On 02/05/2021 00:44, Patrick Monnerat via curl-library wrote:
>
> On 5/1/21 10:15 PM, Fulup Ar Foll wrote:
>>
>> _at_patrick:  retrieving connection code with LDAP works in both
>> synchronous and asynchronous mode and not only in HTTP,TFTP,...
>>
>>
> There are two things:
>
> - the curl result code of type CURLcode: this one is always available
> as this is the value returned by most functions in the API. It is
> generated by curl and never transmitted across a connection.
>
> - The protocol returned code: this code is protocol-dependent and sent
> by the server within a response. You can get it with
> curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &code). It has no
> direct relationship with the curl result code.
>
> Your initial question seemed to be about the second, that's why I
> pointed you on its unavailablity for the LDAP protocol.
>
> -------------------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette:   https://curl.se/mail/etiquette.html


-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-05-02