From: Stephan Bosch Date: Tue, 6 Aug 2019 20:08:54 +0000 (+0200) Subject: lib-storage: mail-storage-service - Parse "auth_mech" field from userdb extra fields. X-Git-Tag: 2.3.9~328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=409a6ba1fd62c4e610f19b5df907a1c03f7e31e9;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: mail-storage-service - Parse "auth_mech" field from userdb extra fields. --- diff --git a/src/lib-storage/mail-storage-service.c b/src/lib-storage/mail-storage-service.c index 459e64d44d..f3b9081d33 100644 --- a/src/lib-storage/mail-storage-service.c +++ b/src/lib-storage/mail-storage-service.c @@ -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=")) {