]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: authenticate_callback() - Accept valued items for nologin,proxy,anonymous
authorMarco Bettini <marco.bettini@open-xchange.com>
Fri, 27 Jan 2023 13:55:27 +0000 (13:55 +0000)
committerMarco Bettini <marco.bettini@open-xchange.com>
Thu, 2 Feb 2023 14:13:03 +0000 (14:13 +0000)
Previously these fields were expected to be sent only value-less (i.e. with no trailing '=<value>')

src/login-common/sasl-server.c

index ad7c7607dbf66b5a7a0ffe155ae1a6a1307833d3..faa0b9e466cdb7484ee9a7fca1046ff5fe37ee05 100644 (file)
@@ -361,11 +361,11 @@ authenticate_callback(struct auth_client_request *request,
                        if (strcmp(key, "postlogin_socket") == 0) {
                                client->postlogin_socket_path =
                                        p_strdup(client->pool, value);
-                       } else if (strcmp(args[i], "nologin") == 0 ||
-                                  strcmp(args[i], "proxy") == 0) {
+                       } else if (strcmp(key, "nologin") == 0 ||
+                                  strcmp(key, "proxy") == 0) {
                                /* user can't login */
                                nologin = TRUE;
-                       } else if (strcmp(args[i], "anonymous") == 0 ) {
+                       } else if (strcmp(key, "anonymous") == 0) {
                                client->auth_anonymous = TRUE;
                        } else if (login_binary->sasl_support_final_reply &&
                                   strcmp(key, "resp") == 0) {