]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mail-storage-service - Parse "auth_mech" field from userdb extra fields.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 6 Aug 2019 20:08:54 +0000 (22:08 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 13 Aug 2019 22:46:26 +0000 (00:46 +0200)
src/lib-storage/mail-storage-service.c

index 459e64d44d6b5a467c71076a755875b3eb09cf9d..f3b9081d33802577cac3268822180f4ae618e7f6 100644 (file)
@@ -82,7 +82,7 @@ struct mail_storage_service_user {
        struct event *event;
        ARRAY(struct event *) event_stack;
        struct ioloop_context *ioloop_ctx;
-       const char *log_prefix, *auth_token, *auth_user;
+       const char *log_prefix, *auth_mech, *auth_token, *auth_user;
 
        const char *system_groups_user, *uid_source, *gid_source;
        const char *chdir_path;
@@ -290,6 +290,8 @@ user_reply_handle(struct mail_storage_service_ctx *ctx,
                                        i_error("setpriority(%d) failed: %m", n);
                        }
 #endif
+               } else if (str_begins(line, "auth_mech=")) {
+                       user->auth_mech = p_strdup(user->pool, line+10);
                } else if (str_begins(line, "auth_token=")) {
                        user->auth_token = p_strdup(user->pool, line+11);
                } else if (str_begins(line, "auth_user=")) {