From: Timo Sirainen Date: Fri, 9 Aug 2024 20:20:05 +0000 (+0300) Subject: auth: Remove passdb/userdb fields_supported flag X-Git-Tag: 2.4.1~738 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8a6741c9d0edb9b5d08ad8317ca021c08ad8136;p=thirdparty%2Fdovecot%2Fcore.git auth: Remove passdb/userdb fields_supported flag All passdbs and userdbs now support it. --- diff --git a/src/auth/passdb-bsdauth.c b/src/auth/passdb-bsdauth.c index ab4feca89c..68292679b7 100644 --- a/src/auth/passdb-bsdauth.c +++ b/src/auth/passdb-bsdauth.c @@ -119,7 +119,6 @@ static void bsdauth_deinit(struct passdb_module *module ATTR_UNUSED) struct passdb_module_interface passdb_bsdauth = { .name = "bsdauth", - .fields_supported = TRUE, .preinit = bsdauth_preinit, .deinit = bsdauth_deinit, .verify_plain = bsdauth_verify_plain, diff --git a/src/auth/passdb-imap.c b/src/auth/passdb-imap.c index 7ed72ea4c1..cc3f5908fe 100644 --- a/src/auth/passdb-imap.c +++ b/src/auth/passdb-imap.c @@ -115,7 +115,6 @@ passdb_imap_verify_plain(struct auth_request *auth_request, static struct passdb_module_interface passdb_imap_plugin = { .name = "imap", - .fields_supported = TRUE, .verify_plain = passdb_imap_verify_plain, }; diff --git a/src/auth/passdb-ldap.c b/src/auth/passdb-ldap.c index eb7564f264..fca6b8619d 100644 --- a/src/auth/passdb-ldap.c +++ b/src/auth/passdb-ldap.c @@ -489,7 +489,6 @@ struct passdb_module_interface passdb_ldap_plugin = #endif { .name = "ldap", - .fields_supported = TRUE, .preinit = passdb_ldap_preinit, .init = passdb_ldap_init, diff --git a/src/auth/passdb-oauth2.c b/src/auth/passdb-oauth2.c index 40f2f89f02..96d902d323 100644 --- a/src/auth/passdb-oauth2.c +++ b/src/auth/passdb-oauth2.c @@ -63,5 +63,4 @@ struct passdb_module_interface passdb_oauth2 = { .preinit = oauth2_preinit, .verify_plain = oauth2_verify_plain, - .fields_supported = TRUE, }; diff --git a/src/auth/passdb-pam.c b/src/auth/passdb-pam.c index 9ad2ef1a66..2acbceb80a 100644 --- a/src/auth/passdb-pam.c +++ b/src/auth/passdb-pam.c @@ -431,7 +431,6 @@ static int pam_preinit(pool_t pool, struct event *event, struct passdb_module_interface passdb_pam = { .name = "pam", - .fields_supported = TRUE, .preinit = pam_preinit, .verify_plain = pam_verify_plain, diff --git a/src/auth/passdb-passwd-file.c b/src/auth/passdb-passwd-file.c index 17e69c5ddf..91c4fb07c1 100644 --- a/src/auth/passdb-passwd-file.c +++ b/src/auth/passdb-passwd-file.c @@ -179,7 +179,6 @@ static void passwd_file_deinit(struct passdb_module *_module) struct passdb_module_interface passdb_passwd_file = { .name = "passwd-file", - .fields_supported = TRUE, .preinit = passwd_file_preinit, .init = passwd_file_init, diff --git a/src/auth/passdb-passwd.c b/src/auth/passdb-passwd.c index a2f000ad8e..13003151f9 100644 --- a/src/auth/passdb-passwd.c +++ b/src/auth/passdb-passwd.c @@ -157,7 +157,6 @@ static void passwd_deinit(struct passdb_module *module ATTR_UNUSED) struct passdb_module_interface passdb_passwd = { .name = "passwd", - .fields_supported = TRUE, .preinit = passwd_preinit, .deinit = passwd_deinit, diff --git a/src/auth/passdb-sql.c b/src/auth/passdb-sql.c index 636e21e103..614344f66a 100644 --- a/src/auth/passdb-sql.c +++ b/src/auth/passdb-sql.c @@ -340,7 +340,6 @@ static void passdb_sql_deinit(struct passdb_module *_module) struct passdb_module_interface passdb_sql = { .name = "sql", - .fields_supported = TRUE, .preinit = passdb_sql_preinit, .init = passdb_sql_init, diff --git a/src/auth/passdb-static.c b/src/auth/passdb-static.c index b97acb99de..78843f056a 100644 --- a/src/auth/passdb-static.c +++ b/src/auth/passdb-static.c @@ -81,7 +81,6 @@ static_lookup_credentials(struct auth_request *request, struct passdb_module_interface passdb_static = { .name = "static", - .fields_supported = TRUE, .verify_plain = static_verify_plain, .lookup_credentials = static_lookup_credentials, diff --git a/src/auth/passdb.h b/src/auth/passdb.h index f2eb93a0c8..dd853036ed 100644 --- a/src/auth/passdb.h +++ b/src/auth/passdb.h @@ -36,7 +36,6 @@ typedef void set_credentials_callback_t(bool success, struct passdb_module_interface { const char *name; - bool fields_supported:1; /* FIXME: temporary - remove */ /* Create a new passdb_module based on the settings looked up via the given event. */ diff --git a/src/auth/userdb-ldap.c b/src/auth/userdb-ldap.c index c10c9eecf3..8be21826f4 100644 --- a/src/auth/userdb-ldap.c +++ b/src/auth/userdb-ldap.c @@ -374,7 +374,6 @@ struct userdb_module_interface userdb_ldap_plugin = #endif { .name = "ldap", - .fields_supported = TRUE, .preinit = userdb_ldap_preinit, .init = userdb_ldap_init, diff --git a/src/auth/userdb-passwd-file.c b/src/auth/userdb-passwd-file.c index 95ff9c79fd..4f6c9d8db8 100644 --- a/src/auth/userdb-passwd-file.c +++ b/src/auth/userdb-passwd-file.c @@ -247,7 +247,6 @@ static void passwd_file_deinit(struct userdb_module *_module) struct userdb_module_interface userdb_passwd_file = { .name = "passwd-file", - .fields_supported = TRUE, .preinit = passwd_file_preinit, .init = passwd_file_init, diff --git a/src/auth/userdb-passwd.c b/src/auth/userdb-passwd.c index 06f3f70872..5241129a0c 100644 --- a/src/auth/userdb-passwd.c +++ b/src/auth/userdb-passwd.c @@ -232,7 +232,6 @@ static int passwd_preinit(pool_t pool, struct event *event ATTR_UNUSED, struct userdb_module_interface userdb_passwd = { .name = "passwd", - .fields_supported = TRUE, .preinit = passwd_preinit, diff --git a/src/auth/userdb-sql.c b/src/auth/userdb-sql.c index 3ed57bbea3..576076044d 100644 --- a/src/auth/userdb-sql.c +++ b/src/auth/userdb-sql.c @@ -345,7 +345,6 @@ static void userdb_sql_deinit(struct userdb_module *_module) struct userdb_module_interface userdb_sql = { .name = "sql", - .fields_supported = TRUE, .preinit = userdb_sql_preinit, .init = userdb_sql_init, diff --git a/src/auth/userdb-static.c b/src/auth/userdb-static.c index 1f6cd6467d..e616313718 100644 --- a/src/auth/userdb-static.c +++ b/src/auth/userdb-static.c @@ -128,7 +128,6 @@ static int static_preinit(pool_t pool, struct event *event, struct userdb_module_interface userdb_static = { .name = "static", - .fields_supported = TRUE, .preinit = static_preinit, .lookup = static_lookup, diff --git a/src/auth/userdb.h b/src/auth/userdb.h index 828bdb2c56..3343595722 100644 --- a/src/auth/userdb.h +++ b/src/auth/userdb.h @@ -47,7 +47,6 @@ struct userdb_iterate_context { struct userdb_module_interface { const char *name; - bool fields_supported:1; /* FIXME: temporary - remove */ /* Create a new userdb_module based on the settings looked up via the given event. */