]> git.ipfire.org Git - thirdparty/curl.git/commit
imap: Provide method to disable SASL if it is advertised 10041/head
authorChris Talbot <chris@talbothome.com>
Mon, 5 Dec 2022 23:05:01 +0000 (18:05 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 16 Jun 2023 01:31:02 +0000 (21:31 -0400)
commit64aefea3d9aca43ea84a7ad8a606f4ee49cb1eab
tree75d91b63edb4b9b2c521b113229a375c759e9867
parent2b6222a64c0ada177fc51db8a0484dffbcaef7b9
imap: Provide method to disable SASL if it is advertised

- Implement AUTH=+LOGIN for CURLOPT_LOGIN_OPTIONS to prefer plaintext
  LOGIN over SASL auth.

Prior to this change there was no method to be able to fall back to
LOGIN if an IMAP server advertises SASL capabilities. However, this may
be desirable for e.g. a misconfigured server.

Per: https://www.ietf.org/rfc/rfc5092.html#section-3.2

";AUTH=<enc-auth-type>" looks to be the correct way to specify what
authenication method to use, regardless of SASL or not.

Closes https://github.com/curl/curl/pull/10041
docs/cmdline-opts/login-options.d
docs/libcurl/opts/CURLOPT_LOGIN_OPTIONS.3
lib/imap.c
tests/data/Makefile.inc
tests/data/test799 [new file with mode: 0644]