curl / Mailing Lists / curl-library / Single Mail

curl-library

CURLOPT_LOGIN_OPTIONS to select multiple ones?

From: Volker Schmid <volker.schmid_at_regify.com>
Date: Tue, 3 Jul 2018 17:06:11 +0200

Hello,

a mailserver is offering those algorithms after STARTTLS:

250-AUTH GSSAPI NTLM LOGIN

Now, libcurl GSSAPI seems broken and it fails due to this. The initial idea was to stop libcurl from using GSSAPI, but I found no option to exclude such for SMTP. So I tried to force libcurl to use NTLM using

CURLOPT_LOGIN_OPTIONS with "AUTH=NTLM"

This works, but what happens if another customers mailserver does not offer NTLM but PLAIN, LOGIN or CRAM-MD5? I tried but after setting such, it is no longer using any other option.

I also tried to do like this:

"AUTH=NTLM CRAM-MD5 LOGIN PLAIN" but then I get CURL error 3 (CURLE_URL_MALFORMAT / The URL was not properly formatted. ).

So, how to simply exclude GSSAPI or make CURLOPT_LOGIN_OPTIONS accepting multiple values like "AUTH=NTLM CRAM-MD5 LOGIN PLAIN"?

Thanks!

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-07-03