]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Mon, 12 Aug 2024 08:56:10 +0000 (11:56 +0300)]
lib-program-client, global: Remove program_client_parameters.debug
Just inherit it from the parent event.
Timo Sirainen [Mon, 12 Aug 2024 08:47:49 +0000 (11:47 +0300)]
lib-program-client, global: Rename struct program_client_settings to program_client_parameters
Also rename the parameter/variable names.
Timo Sirainen [Tue, 10 Sep 2024 14:27:59 +0000 (17:27 +0300)]
global: Use settings_defaults_dup() where possible
Timo Sirainen [Tue, 10 Sep 2024 14:23:37 +0000 (17:23 +0300)]
lib-settings: Add settings_defaults_dup()
Timo Sirainen [Mon, 2 Sep 2024 10:18:37 +0000 (13:18 +0300)]
stats: Expand metric_group_by setting to a hierarchy of settings
doveadm stats add --group-by preserves the old syntax for now.
Timo Sirainen [Mon, 2 Sep 2024 10:28:10 +0000 (13:28 +0300)]
stats: Move metrics_group_by_exponential/linear_init()
Simplifies the following commits.
Timo Sirainen [Mon, 2 Sep 2024 10:26:53 +0000 (13:26 +0300)]
stats: Split off metrics_group_by_exponential/linear_init()
Simplifies the following commits.
Timo Sirainen [Sat, 31 Aug 2024 06:23:01 +0000 (09:23 +0300)]
lib-settings: Add uintmax setting type
Timo Sirainen [Thu, 29 Aug 2024 11:09:42 +0000 (14:09 +0300)]
stats: Rename event_exporter_format_args setting to event_exporter_time_format
The time format was the only used args.
Timo Sirainen [Thu, 29 Aug 2024 11:04:45 +0000 (14:04 +0300)]
stats: Remove event_exporter_transport_args and _transport_timeout settings
These are handled by transport-specific settings now.
Timo Sirainen [Sat, 31 Aug 2024 06:11:58 +0000 (09:11 +0300)]
stats: Change metrics_driver setting to be enum
Timo Sirainen [Thu, 29 Aug 2024 11:02:14 +0000 (14:02 +0300)]
stats: http post event exporter - Convert to using global settings
Timo Sirainen [Thu, 29 Aug 2024 10:55:44 +0000 (13:55 +0300)]
stats: file event exporter - Convert to using global settings
Timo Sirainen [Thu, 29 Aug 2024 09:59:00 +0000 (12:59 +0300)]
stats: Change event exporters to be proper objects of type event_exporter_transport
Timo Sirainen [Thu, 29 Aug 2024 10:19:57 +0000 (13:19 +0300)]
stats: Rename struct exporter_file to file_event_exporter
Timo Sirainen [Thu, 29 Aug 2024 10:10:43 +0000 (13:10 +0300)]
stats: Rename struct exporter to event_exporter
Timo Sirainen [Thu, 29 Aug 2024 09:49:36 +0000 (12:49 +0300)]
stats: Change event exporter transports to be extensible
Timo Sirainen [Thu, 29 Aug 2024 09:27:51 +0000 (12:27 +0300)]
stats: Rename event_exporter_transport to _driver and make it default to _name
sergey.kitov [Thu, 29 Aug 2024 08:48:58 +0000 (11:48 +0300)]
stats: Change metric_exporter_include setting to boollist
sergey.kitov [Thu, 29 Aug 2024 08:46:38 +0000 (11:46 +0300)]
stats: Change metric_fields setting to boollist
Timo Sirainen [Mon, 2 Sep 2024 07:56:11 +0000 (10:56 +0300)]
stats: Immediately allocate dynamic metric settings from persistent pool
This avoids having to duplicate the memory later on, which gets more
difficult in the following changes.
Timo Sirainen [Mon, 2 Sep 2024 07:53:22 +0000 (10:53 +0300)]
stats: Fix settings memory leak on invalid metric settings
Timo Sirainen [Tue, 20 Aug 2024 07:35:54 +0000 (10:35 +0300)]
lib: Add array_lsearch_ptr[_modifiable]() and array_lsearch_ptr_idx()
Timo Sirainen [Thu, 29 Aug 2024 08:40:05 +0000 (11:40 +0300)]
lib-settings: Rename boollist_null_terminate() to public settings_boollist_finish()
Marco Bettini [Fri, 6 Sep 2024 15:04:16 +0000 (15:04 +0000)]
auth: ldap - Change string auth_sasl_mechanism into bool list auth_sasl_mechanisms
Marco Bettini [Fri, 6 Sep 2024 13:59:16 +0000 (13:59 +0000)]
auth: ldap - Change ldap_deref & ldap_scope into enums
Timo Sirainen [Thu, 29 Aug 2024 08:23:51 +0000 (11:23 +0300)]
auth: Rename :protected suffix to :default
This is more understandable.
Timo Sirainen [Thu, 29 Aug 2024 06:33:47 +0000 (09:33 +0300)]
auth: Remove empty password check for nopassword
The new fields { .. } way makes this a bit more difficult. Previously
it was ok to put nopassword to default_fields or override_fields even
if the passdb itself returned a password - this empty password check
was done only if the passdb internally returned both password and
nopassword. However, now it's all in the same fields { .. } where it's
not always easy to prevent adding the password.
Timo Sirainen [Fri, 9 Aug 2024 20:20:05 +0000 (23:20 +0300)]
auth: Remove passdb/userdb fields_supported flag
All passdbs and userdbs now support it.
Timo Sirainen [Fri, 9 Aug 2024 20:18:50 +0000 (23:18 +0300)]
auth: Remove passdb/userdb_default/override_fields
All passdbs and userdbs now support the passdb/userdb_fields, which
replaces these.
alexandre.roux [Mon, 26 Aug 2024 11:30:10 +0000 (13:30 +0200)]
lib-dict: drop dict prefix from redis settings
Timo Sirainen [Thu, 15 Aug 2024 07:59:57 +0000 (10:59 +0300)]
lib-storage: Fix IMAP SPECIAL-USE capability when using global mailbox settings
Timo Sirainen [Thu, 15 Aug 2024 07:54:45 +0000 (10:54 +0300)]
lib-storage: Rename mail_user_check_namespace_settings() to mail_user_settings_update_special_use()
Also add a comment to clarify why this is done here.
Timo Sirainen [Thu, 15 Aug 2024 07:49:49 +0000 (10:49 +0300)]
lib-storage: mail_user_check_namespace_settings() - Remove alias_for checks
They don't need to be here. The full alias_for checks are done later.
Timo Sirainen [Thu, 15 Aug 2024 08:17:06 +0000 (11:17 +0300)]
lib-storage: Fix final namespace alias_for chaining check
Timo Sirainen [Wed, 14 Aug 2024 20:15:13 +0000 (23:15 +0300)]
lib-storage: Fix using global mailbox settings
Previously mailbox settings had to be inside namespace for the settings to
work.
Timo Sirainen [Wed, 14 Aug 2024 20:05:46 +0000 (23:05 +0300)]
lib-settings: Add comments about how settings overrides are parsed
Timo Sirainen [Sun, 11 Aug 2024 06:28:53 +0000 (09:28 +0300)]
config: Define PLUGIN_BUILD so auth plugins' settings are included
Timo Sirainen [Fri, 9 Aug 2024 19:04:22 +0000 (22:04 +0300)]
auth: Fix linking problems when using lua as plugin
After recent changes passdb-template was used only by the Lua code.
If it was built as plugin, there was nothing in auth binary that used it,
so linker dropped it entirely. This drop happens only for symbols within
.a libraries. Fixed by not building libauth.a at all.
Marco Bettini [Mon, 22 Jul 2024 08:29:59 +0000 (08:29 +0000)]
auth: ldap - Use container_of()
Marco Bettini [Wed, 24 Jul 2024 15:33:57 +0000 (15:33 +0000)]
auth: db-ldap - Prefix events with currently connected host
Marco Bettini [Wed, 17 Jul 2024 14:39:01 +0000 (14:39 +0000)]
auth: db-ldap - Restore prefixes to messages
(replaces previously removed conn->config_path)
Marco Bettini [Wed, 17 Jul 2024 13:30:30 +0000 (13:30 +0000)]
m4: want_ldap - Drop LDAP_DEPRECATED
Marco Bettini [Mon, 15 Jul 2024 14:59:24 +0000 (14:59 +0000)]
auth: ldap - Drop deprecated ldap_init() and ldap_host settings
Marco Bettini [Wed, 17 Jul 2024 09:28:13 +0000 (09:28 +0000)]
auth: ldap - Replace deprecated ldap_bind() with ldap_sasl_bind()
Marco Bettini [Mon, 15 Jul 2024 14:38:06 +0000 (14:38 +0000)]
auth: ldap - Replace deprecated ldap_get_values() with ldap_get_values_len()
Marco Bettini [Mon, 15 Jul 2024 14:28:01 +0000 (14:28 +0000)]
auth: ldap - Replace deprecated ldap_unbind() with ldap_unbind_ext()
Marco Bettini [Wed, 17 Jul 2024 12:25:22 +0000 (12:25 +0000)]
auth: ldap - Replace deprecated ldap_result2error() with ldap_parse_result()
Marco Bettini [Fri, 12 Jul 2024 09:45:40 +0000 (09:45 +0000)]
auth: ldap - Add ldap_connection_group
Marco Bettini [Wed, 10 Jul 2024 14:47:09 +0000 (14:47 +0000)]
auth: ldap - Restore db_ldap_field_hide_password() functionality
Marco Bettini [Thu, 1 Aug 2024 12:33:02 +0000 (12:33 +0000)]
lib: strfuncs - Add str_ends_with() & str_ends_icase_with()
Marco Bettini [Wed, 10 Jul 2024 08:36:14 +0000 (08:36 +0000)]
auth: ldap - Move *attrs_names away from struct ldap connection
Multiple db instances sharing the same ldap connection were
overwriting each other attribute's fields in preinit as all
preinits are done before using the connections.
Marco Bettini [Wed, 10 Jul 2024 08:22:09 +0000 (08:22 +0000)]
auth: ldap - Make struct ldap_request_search::attributes const
Marco Bettini [Wed, 10 Jul 2024 08:11:42 +0000 (08:11 +0000)]
auth: ldap_set_attrs() - pass directly pool_t rather than ldap_connection
Marco Bettini [Mon, 8 Jul 2024 14:40:35 +0000 (14:40 +0000)]
auth: ldap - Split pre/post settings and finish the conversion
Marco Bettini [Thu, 11 Jul 2024 08:04:41 +0000 (08:04 +0000)]
auth: ldap_field_hide_password() - Disable temporarily
Marco Bettini [Wed, 27 Mar 2024 10:24:18 +0000 (10:24 +0000)]
auth: ldap - Collapse ldap_pass_filter and ldap_user_filter into ldap_filter
Marco Bettini [Mon, 25 Mar 2024 14:23:51 +0000 (14:23 +0000)]
auth: ldap - Add support for fields { .. }
Marco Bettini [Tue, 14 May 2024 14:15:58 +0000 (14:15 +0000)]
auth: db-ldap - Drop auth_sasl_bind
Now inferred by non-empty ldap_auth_sasl_mechanism.
Marco Bettini [Wed, 17 Jul 2024 08:14:05 +0000 (08:14 +0000)]
auth: ldap - Rename ldap_bind* into passdb_ldap_bind*
Marco Bettini [Fri, 5 Jul 2024 14:21:49 +0000 (14:21 +0000)]
auth: struct ldap_settings - Add auth_ prefixes
Marco Bettini [Wed, 20 Mar 2024 16:25:00 +0000 (16:25 +0000)]
auth: db-ldap-settings - Defer some checks to runtime
Marco Bettini [Wed, 20 Mar 2024 11:49:33 +0000 (11:49 +0000)]
auth: ldap - Use global passdb_use_worker from auth_passdb
Marco Bettini [Wed, 20 Mar 2024 11:42:33 +0000 (11:42 +0000)]
auth: ldap - Use passdb_default_pass_scheme from auth_passdb
Marco Bettini [Tue, 19 Mar 2024 15:08:26 +0000 (15:08 +0000)]
auth: db-ldap - Use also ssl_settings
ldap_tls_require_cert=demand/allow has replaced by ssl_client_require_valid_cert=yes/no.
The other values of the original setting are no longer supported.
Marco Bettini [Tue, 19 Mar 2024 13:50:45 +0000 (13:50 +0000)]
auth: db-ldap - Move validation to settings
Marco Bettini [Thu, 21 Mar 2024 10:26:19 +0000 (10:26 +0000)]
auth: struct ldap_settings - Rename parsed fields into parsed_xxx
Marco Bettini [Tue, 19 Mar 2024 14:55:26 +0000 (14:55 +0000)]
auth: struct ldap_settings - Rename tls into starttls
Marco Bettini [Thu, 1 Aug 2024 08:36:37 +0000 (08:36 +0000)]
auth: db_ldap_set_options() - Fix protocol_version to reflect actual setting name
Marco Bettini [Wed, 20 Mar 2024 16:13:16 +0000 (16:13 +0000)]
auth: struct ldap_settings - Fix ldap_ldap_version -> ldap_version
Marco Bettini [Fri, 15 Mar 2024 10:17:54 +0000 (10:17 +0000)]
auth: struct ldap-settings - Drop ldaprc_path
Marco Bettini [Fri, 15 Mar 2024 09:31:44 +0000 (09:31 +0000)]
auth: ldap - Read settings from main config
Marco Bettini [Fri, 15 Mar 2024 10:05:40 +0000 (10:05 +0000)]
auth: struct ldap_settings - Reorder fields by type [BUILD-BROKEN]
(build broken until next commits)
Marco Bettini [Tue, 12 Mar 2024 14:13:37 +0000 (14:13 +0000)]
auth: struct ldap_settings - Move to db-ldap-settings.[ch] [BUILD-BROKEN]
(build broken until next commits)
Marco Bettini [Thu, 1 Aug 2024 09:35:17 +0000 (09:35 +0000)]
auth: struct ldap_connection - Change set into a pointer
Marco Bettini [Wed, 24 Jul 2024 15:50:47 +0000 (15:50 +0000)]
auth: db_ldap_set_options() - Move variables local to their usage
Specifically, int value could cause an unused warning/error
if LDAP_OPT_DEBUG_LEVEL is not defined
Marco Bettini [Tue, 19 Mar 2024 14:11:08 +0000 (14:11 +0000)]
auth: db-ldap - Remove conn->config_path from messages
Marco Bettini [Mon, 20 May 2024 09:17:31 +0000 (09:17 +0000)]
auth: db-ldap - Drop subqueries
Subqueries are replaced by multiple passdb/userdb stanzas,
where the successive one sets ldap_base to the dn fetched/composed
using the fields of the previous one.
Marco Bettini [Fri, 14 Jun 2024 15:14:49 +0000 (15:14 +0000)]
auth: auth-request - Add auth_request_set_(pass|user)db_fields_ex()
Timo Sirainen [Tue, 27 Feb 2024 20:52:32 +0000 (22:52 +0200)]
lib-settings: Support overriding include groups via cli/userdb
For example namespace/inbox/@mailboxes=foo is equivalent to:
namespace inbox {
@mailboxes = foo
}
Timo Sirainen [Tue, 27 Feb 2024 20:47:54 +0000 (22:47 +0200)]
lib-settings, config: Add support for including groups
It works like:
group @label name {
..any settings here..
}
any filter {
@label = name
}
For example:
group @mailboxes defaults {
mailbox Sent {
special_use = \Sent
auto = subscribe
}
}
namespace inbox {
@mailboxes = defaults
}
Timo Sirainen [Tue, 22 Oct 2024 12:32:35 +0000 (15:32 +0300)]
lib-settings: Move seen_filter to struct settings_apply_ctx
Simplifies the following changes.
Timo Sirainen [Mon, 3 Jun 2024 16:47:05 +0000 (19:47 +0300)]
config: Split off config_dump_full_write_filter()
Timo Sirainen [Mon, 3 Jun 2024 16:46:04 +0000 (19:46 +0300)]
config: Split off config_dump_full_stdout_write_filter()
Timo Sirainen [Tue, 27 Feb 2024 20:43:35 +0000 (22:43 +0200)]
config: Add some comments to config dumping code
Marco Bettini [Fri, 26 Jul 2024 07:43:39 +0000 (07:43 +0000)]
plugins: acl_backend_user_is_in_group() - Retrofit array_bsearch() in place of array_get() + i_bsearch()
Timo Sirainen [Tue, 22 Oct 2024 12:37:30 +0000 (15:37 +0300)]
lib: Add event_filter_has_field_prefix()
Marco Bettini [Thu, 25 Jul 2024 15:40:41 +0000 (15:40 +0000)]
lib: array - Make array_bsearch() const
Marco Bettini [Fri, 26 Jul 2024 09:04:05 +0000 (09:04 +0000)]
lib: array - Add array_bsearch_modifiable()
Marco Bettini [Fri, 26 Jul 2024 08:56:54 +0000 (08:56 +0000)]
lib: array - Generalize ARRAY_LSEARCH_CALL() into ARRAY_SEARCH_CALL()
Marco Bettini [Fri, 26 Jul 2024 07:49:17 +0000 (07:49 +0000)]
lib: sort - Rename bsearch_(case)strcmp() into search_(case)strcmp()
Aki Tuomi [Fri, 26 Jul 2024 10:54:37 +0000 (13:54 +0300)]
dict: Add dict_name to command event
Vincent Kenbeek [Wed, 10 Jul 2024 09:19:41 +0000 (11:19 +0200)]
lib-settings, config: Differentiate between doveconf and config binaries
Karl Fleischmann [Wed, 10 Jul 2024 12:03:02 +0000 (14:03 +0200)]
auth: passdb-bsdauth - Move settings from "args" to individual settings
This commit enables bsdauth lookups caching by default while previously
it was necessary to supply a specific argument.
Karl Fleischmann [Tue, 9 Jul 2024 12:27:38 +0000 (14:27 +0200)]
auth: passdb-bsdauth - Add support for passdb_fields
Timo Sirainen [Thu, 21 Mar 2024 22:25:36 +0000 (00:25 +0200)]
dict: Support accessing non-legacy dicts
The dicts can be configured inside dict_server { .. } filter, e.g.:
dict_server {
dict cassandra {
..
}
dict cassandra2 {
driver = cassandra
..
}
}
Timo Sirainen [Thu, 21 Mar 2024 22:25:18 +0000 (00:25 +0200)]
lib-dict: Add dict_init_filter_auto()
Timo Sirainen [Thu, 21 Mar 2024 22:09:06 +0000 (00:09 +0200)]
dict: Rename dict_settings variables to server_settings
Timo Sirainen [Thu, 21 Mar 2024 22:03:53 +0000 (00:03 +0200)]
dict: Rename dict_init_cache_get() to dict_init_cache_get_legacy()
Timo Sirainen [Thu, 21 Mar 2024 22:01:35 +0000 (00:01 +0200)]
dict: Rename dict_server_settings.dicts to legacy_dicts