From: Timo Sirainen Date: Wed, 17 Jan 2024 23:07:37 +0000 (-0500) Subject: auth: Add passdb_default_password_scheme and passdb_use_worker settings X-Git-Tag: 2.4.1~1099 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9c93f84f23de30706b818fef9f2a622cb12e82f;p=thirdparty%2Fdovecot%2Fcore.git auth: Add passdb_default_password_scheme and passdb_use_worker settings These will be used by passdbs as they are converted to new settings. --- diff --git a/src/auth/auth-settings.c b/src/auth/auth-settings.c index 7a3f9bd2db..9af7c32f42 100644 --- a/src/auth/auth-settings.c +++ b/src/auth/auth-settings.c @@ -109,6 +109,8 @@ static const struct setting_define auth_passdb_setting_defines[] = { DEF(BOOLLIST, mechanisms), DEF(STR, username_filter), + DEF(STR, default_password_scheme), + DEF(ENUM, skip), DEF(ENUM, result_success), DEF(ENUM, result_failure), @@ -116,6 +118,7 @@ static const struct setting_define auth_passdb_setting_defines[] = { DEF(BOOL, deny), DEF(BOOL, master), + DEF(BOOL, use_worker), SETTING_DEFINE_LIST_END }; @@ -127,6 +130,8 @@ static const struct auth_passdb_settings auth_passdb_default_settings = { .mechanisms = ARRAY_INIT, .username_filter = "", + .default_password_scheme = "PLAIN", + .skip = "never:authenticated:unauthenticated", .result_success = "return-ok:return:return-fail:continue:continue-ok:continue-fail", .result_failure = "continue:return:return-ok:return-fail:continue-ok:continue-fail", @@ -134,6 +139,7 @@ static const struct auth_passdb_settings auth_passdb_default_settings = { .deny = FALSE, .master = FALSE, + .use_worker = FALSE, }; const struct setting_parser_info auth_passdb_setting_parser_info = { diff --git a/src/auth/auth-settings.h b/src/auth/auth-settings.h index afafa9ff5b..f6dd1ef992 100644 --- a/src/auth/auth-settings.h +++ b/src/auth/auth-settings.h @@ -22,12 +22,15 @@ struct auth_passdb_settings { ARRAY_TYPE(const_string) mechanisms; const char *username_filter; + const char *default_password_scheme; + const char *skip; const char *result_success; const char *result_failure; const char *result_internalfail; bool deny; bool master; + bool use_worker; }; struct auth_userdb_pre_settings {