]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: Add proxy field proxy_noauth.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 18 Jul 2021 22:29:23 +0000 (00:29 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 27 Jul 2021 23:49:41 +0000 (01:49 +0200)
src/login-common/client-common-auth.c
src/login-common/client-common.h

index 56856256cdc59d28c99635c9792f95343e156a83..ff9a439f288912743f1c1d95f67f6c835bfb47c5 100644 (file)
@@ -201,6 +201,8 @@ static void client_auth_parse_args(struct client *client, bool success,
                        }
                } else if (strcmp(key, "proxy_mech") == 0)
                        reply_r->proxy_mech = value;
+               else if (strcmp(key, "proxy_noauth") == 0)
+                       reply_r->proxy_noauth = TRUE;
                else if (strcmp(key, "proxy_nopipelining") == 0)
                        reply_r->proxy_nopipelining = TRUE;
                else if (strcmp(key, "proxy_not_trusted") == 0)
@@ -515,6 +517,7 @@ static int proxy_start(struct client *client,
        client->proxy_user = i_strdup(reply->destuser);
        client->proxy_master_user = i_strdup(reply->master_user);
        client->proxy_password = i_strdup(reply->password);
+       client->proxy_noauth = reply->proxy_noauth;
        client->proxy_nopipelining = reply->proxy_nopipelining;
        client->proxy_not_trusted = reply->proxy_not_trusted;
 
index bee965a4b88fb3dd92d8e95b771be2588d8e76b4..c8b5a6ef95d97a6ecbe5d4623a181191d4e9f63b 100644 (file)
@@ -110,6 +110,7 @@ struct client_auth_reply {
        const char *const *all_fields;
 
        bool proxy:1;
+       bool proxy_noauth:1;
        bool proxy_nopipelining:1;
        bool proxy_not_trusted:1;
        bool nologin:1;
@@ -247,6 +248,7 @@ struct client {
        bool auth_process_comm_fail:1;
        bool auth_anonymous:1;
        bool proxy_auth_failed:1;
+       bool proxy_noauth:1;
        bool proxy_nopipelining:1;
        bool proxy_not_trusted:1;
        bool auth_waiting:1;