cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with AUTH against Telia SMTP server

From: Kim Johansson <kbkj_at_telia.com>
Date: Wed, 31 Jul 2013 09:44:04 +0200

I have tested version 7.27 7.29 and 7.31 with the same negative result.
 
I did the change w. V 7.31

curl_easy_setopt(curl, CURLOPT_USERPWD, "username:password;options");

and tested against Telia SMTP server

LOGIN OK
PLAIN OK
CRAM-MD5 OK
DIGEST-MD5 FAILS

To exclude server side problem, I tested DIGEST-MD5 with Kmail , no problem
It seems to be a bug in curl.

Kim

-+-+-+-+-+
Den Tuesday 30 July 2013 21.44.31 skrev Steve Holme:
> Hi Kim,
>
> On Tue, 30 Jul 2013, Kim Johansson wrote:
> > Log from smtp-multi , username & password is correct !
> > Is it possible to change so that curl uses plain AUTH ?
>
> What version of libcurl are you using?
>
> Libcurl will use the best level of authentication from the list of
> supported mechanisms reported by the server.
>
> If however, you are using libcurl v7.31, you can specify the preferred
> authentication mechanism in the URL or by using the CURL_EASY_SETOPT option
> instead of CURLOPT_USERPWD instead of CURLOPT_USERNAME and
> CURLOPT_PASSWORD. If you go for the later then you will need to modify
> smtp-multi by removing the following:
>
> curl_easy_setopt(curl, CURLOPT_USERNAME, USERNAME);
> curl_easy_setopt(curl, CURLOPT_PASSWORD, PASSWORD);
>
> and replacing it with:
>
> curl_easy_setopt(curl, CURLOPT_USERNAME, "username:password;options");
>
> For example: "testuser:testpass;auth=PLAIN".
>
> However, I would be more interested to know why the DIGEST-MD5 mechanism is
> failing.
>
> Kind Regards
>
> Steve
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-07-31