]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: Fix forward_ fields handling with reauth requests
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 23 Jun 2022 16:39:57 +0000 (19:39 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 13 Jul 2022 08:58:04 +0000 (08:58 +0000)
src/login-common/client-common-auth.c

index ecb2de0813b8fa38233c25f6430e93fdeeaad112..5e6f1de255cd1936e8c956331882eb8d10e8bf02 100644 (file)
@@ -404,6 +404,9 @@ proxy_redirect_reauth_callback(struct auth_client_request *request,
                        break;
                }
 
+               /* Replace the saved passdb args with the reauth reply. This
+                  way reauth can replace (all of) the forward_* fields. */
+               client->auth_passdb_args = p_strarray_dup(client->pool, args);
                if (reply.proxy.proxy) {
                        login_proxy_redirect_finish(client->login_proxy,
                                                    &reply.proxy.host_ip,