cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl problem on ldap with tls

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 01 Apr 2015 14:15:21 -0400

On 4/1/2015 5:52 AM, Michael Wood wrote:
> On 31 Mar 2015 7:47 PM, "Ray Satiro via curl-library"
> <curl-library_at_cool.haxx.se <mailto:curl-library_at_cool.haxx.se>> wrote:
>
> >
> > On 3/31/2015 4:50 AM, 林聖艦 wrote:
> >>
> >> I want to use curl ldap api with tls protocol.
> >> Now I know I can use following setting:
> >> curl_easy_setopt(curl, CURLOPT_URL, "ldap://xxx.xxx");
> >> or
> >> curl_easy_setopt(curl, CURLOPT_URL, "ldap://xxx.xxx");
> >> if ssl protocol.
> >>
> >> Here is my question:
> >> How to use ldap with tls?
> >
> >
> > If your build has ldaps support you can do ldaps://xxx.xxx
>
> I suspect he meant to use ldaps in his second example. I think he
> wants to connect to port 389 and upgrade to TLS on that same
> connection, rather than connecting to port 636 and talking SSL directly.
>
> Is this possible with libcurl?
>

Oh. I don't know about that but I don't think so. STARTTLS isn't in
ldap.c, so unless the ldap library does it I don't know where the
upgrade would occur. Hopefully someone else can give you a concrete answer.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-04-01