/* use a dummy userdb static. */
auth_userdb_preinit(auth, &userdb_dummy_set);
}
- auth_mech_list_verify_passdb(auth);
return auth;
}
{
struct master_service_settings_output set_output;
const struct auth_settings *service_set;
- struct auth *auth;
+ struct auth *auth, *const *authp;
unsigned int i;
const char *not_service = NULL;
+ bool check_default = TRUE;
i_array_init(&auths, 8);
auth = auth_preinit(service_set, services[i], pool, reg);
array_append(&auths, &auth, 1);
}
+
+ if (not_service != NULL && str_array_find(services, not_service+1))
+ check_default = FALSE;
+
+ array_foreach(&auths, authp) {
+ if ((*authp)->service != NULL || check_default)
+ auth_mech_list_verify_passdb(*authp);
+ }
}
void auths_init(void)