ports/mail/dovecot/patches/patch-src_auth_auth_h

19 lines
633 B
Text

auth: Fix handling passdbs with identical driver/args but different
mechanisms/username_filter
7bad6a24160e34bce8f10e73dbbf9e5fbbcd1904
Index: src/auth/auth.h
--- src/auth/auth.h.orig
+++ src/auth/auth.h
@@ -41,6 +41,11 @@ struct auth_passdb {
struct passdb_template *default_fields_tmpl;
struct passdb_template *override_fields_tmpl;
+ /* Supported authentication mechanisms, NULL is all, {NULL} is none */
+ const char *const *mechanisms;
+ /* Username filter, NULL is no filter */
+ const char *const *username_filter;
+
enum auth_passdb_skip skip;
enum auth_db_rule result_success;
enum auth_db_rule result_failure;