]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: master-auth - Add support for MAIL_AUTH_REQUEST_FLAG_IMPLICIT flag.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 27 Jan 2021 12:39:23 +0000 (13:39 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 5 Nov 2021 06:49:45 +0000 (06:49 +0000)
It signals that this login is implicit; no command reply is expected. This is
going to be used by the Submission service to implicitly login a user using the
EXTERNAL SASL mechanism when the first MAIL command is issued. In that case
sending a reply for the implicit AUTH command would break the protocol and this
new flag is used to signal the post-login submission service to not send an
initial reply.

src/lib-master/master-auth.h

index 59db83977bc7624941873d8b7176e3c19481a747..8e0db7452a023535b78d1eacab3b69cecd68e8f5 100644 (file)
@@ -30,6 +30,8 @@ enum mail_auth_request_flags {
        MAIL_AUTH_REQUEST_FLAG_CONN_SECURED = BIT(1),
        /* Connection is secured using SSL specifically */
        MAIL_AUTH_REQUEST_FLAG_CONN_SSL_SECURED = BIT(2),
+       /* This login is implicit; no command reply is expected */
+       MAIL_AUTH_REQUEST_FLAG_IMPLICIT = BIT(3),
 };
 
 /* Authentication request. File descriptor may be sent along with the