# Username to use for users logging in with ANONYMOUS SASL mechanism
#auth_anonymous_username = anonymous
-# Maximum number of dovecot-auth worker processes. They're used to execute
-# blocking passdb and userdb queries (eg. MySQL and PAM). They're
-# automatically created and destroyed as needed.
-#auth_worker_max_count = 30
-
# Host name to use in GSSAPI principal names. The default is to use the
# name returned by gethostname(). Use "$ALL" (with quotes) to allow all keytab
# entries.
DEF(BOOL, ssl_username_from_cert),
DEF(BOOL, use_winbind),
- DEF(UINT, worker_max_count),
-
DEFLIST(passdbs, "passdb", &auth_passdb_setting_parser_info),
DEFLIST(userdbs, "userdb", &auth_userdb_setting_parser_info),
.use_winbind = FALSE,
- .worker_max_count = 30,
-
.passdbs = ARRAY_INIT,
.userdbs = ARRAY_INIT,
if (set->debug)
set->verbose = TRUE;
- if (set->worker_max_count == 0) {
- *error_r = "auth_worker_max_count must be above zero";
- return FALSE;
- }
-
if (set->cache_size > 0 && set->cache_size < 1024) {
/* probably a configuration error.
older versions used megabyte numbers */
bool ssl_username_from_cert;
bool use_winbind;
- unsigned int worker_max_count;
-
/* settings that don't have auth_ prefix: */
ARRAY(struct auth_passdb_settings *) passdbs;
ARRAY(struct auth_userdb_settings *) userdbs;
obsolete(ctx, "%s has been removed", key);
return TRUE;
}
+ if (strcmp(key, "auth_worker_max_count") == 0) {
+ obsolete(ctx,
+ "%s has been replaced with service auth-worker { process_limit }",
+ key);
+ config_apply_line(ctx, key,
+ t_strdup_printf("service/auth-worker/process_limit=%s", value),
+ NULL);
+ return TRUE;
+ }
if (ctx->old->auth_section == 1) {
if (!str_begins_with(key, "auth_"))
key = t_strconcat("auth_", key, NULL);