]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Remove passdb/userdb fields_supported flag
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 9 Aug 2024 20:20:05 +0000 (23:20 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:39:59 +0000 (10:39 +0200)
All passdbs and userdbs now support it.

16 files changed:
src/auth/passdb-bsdauth.c
src/auth/passdb-imap.c
src/auth/passdb-ldap.c
src/auth/passdb-oauth2.c
src/auth/passdb-pam.c
src/auth/passdb-passwd-file.c
src/auth/passdb-passwd.c
src/auth/passdb-sql.c
src/auth/passdb-static.c
src/auth/passdb.h
src/auth/userdb-ldap.c
src/auth/userdb-passwd-file.c
src/auth/userdb-passwd.c
src/auth/userdb-sql.c
src/auth/userdb-static.c
src/auth/userdb.h

index ab4feca89cb0f96ec86d1291c78f6e474e948555..68292679b7fc53daa822f55156c364c9367156b0 100644 (file)
@@ -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,
index 7ed72ea4c1585d0106a1241ee7d5578f05a57f59..cc3f5908fee9d9c4b18416c59744e8f2dfe335b1 100644 (file)
@@ -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,
 };
 
index eb7564f2641179403e95172313b31ac247485747..fca6b8619d8dafe4488efc6053a0ac4997f0fca3 100644 (file)
@@ -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,
index 40f2f89f02a72825669f622185ebffb44fe693ab..96d902d323d96dd109d801b93a7fa2d3222eba8b 100644 (file)
@@ -63,5 +63,4 @@ struct passdb_module_interface passdb_oauth2 = {
 
        .preinit = oauth2_preinit,
        .verify_plain = oauth2_verify_plain,
-       .fields_supported = TRUE,
 };
index 9ad2ef1a66766ce14c2e1cd98f8fea79cadd7a18..2acbceb80a39ad70696d0df78a71bd1ca0d738b1 100644 (file)
@@ -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,
index 17e69c5ddf5a021305083b5caf23dcc510a9f4f8..91c4fb07c14a8f903f87a6fddf0a050e16498bb4 100644 (file)
@@ -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,
index a2f000ad8e4c08a9f83b8642adbb3b22404f7dea..13003151f9c409adcc97564bb3331e00029d1b6c 100644 (file)
@@ -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,
index 636e21e10318b7216cb636c312a2444d8de5779f..614344f66a4d0df607f580d424b6286e3cb6f47e 100644 (file)
@@ -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,
index b97acb99de429a4ee18ef81a86c62fbcd43b4680..78843f056a8ee350401bba37c590122855bb8184 100644 (file)
@@ -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,
index f2eb93a0c8d5511dca5fe23d244393b430d11808..dd853036edc1c278f8ff181954e0dadf231cd940 100644 (file)
@@ -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. */
index c10c9eecf365a0550b4310a3adf85c0051321889..8be21826f4ea13122a6e3393ff75c34bbb44063c 100644 (file)
@@ -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,
index 95ff9c79fdef7db2dfb4bebf5181fe47aa0efbbb..4f6c9d8db85b4bf4fafa73db0e69af89330f9e3b 100644 (file)
@@ -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,
index 06f3f708726dfb526c8f8b0cf71105a6137ae936..5241129a0ccb8c8e861334dcf757538b1f6406fa 100644 (file)
@@ -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,
 
index 3ed57bbea3e8a67f5adab4766157b20e50ce9375..576076044d617842b8d9d2b98fdcfad7a3f85b1a 100644 (file)
@@ -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,
index 1f6cd6467d3584f4c51d0bf78d583de0d7967bac..e6163137184836a193c2dd4557ac77dfb7348932 100644 (file)
@@ -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,
index 828bdb2c560b7344efeab368a202cdb6042af4bf..3343595722f644dc72e56cdd66127c80bd6106d5 100644 (file)
@@ -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. */