]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
2 years agoauth: Reformat auth-policy.h
Stephan Bosch [Thu, 7 May 2020 10:31:53 +0000 (12:31 +0200)] 
auth: Reformat auth-policy.h

2 years agoauth: Reformat auth-policy.c
Stephan Bosch [Thu, 7 May 2020 10:31:01 +0000 (12:31 +0200)] 
auth: Reformat auth-policy.c

2 years agodoveadm: Reformat client-connection-http.c
Stephan Bosch [Thu, 7 May 2020 09:26:14 +0000 (11:26 +0200)] 
doveadm: Reformat client-connection-http.c

2 years agolib-test: test-common - Add test_out_reason_quiet()
Stephan Bosch [Tue, 25 Jul 2023 15:32:59 +0000 (17:32 +0200)] 
lib-test: test-common - Add test_out_reason_quiet()

2 years agolib: istream - Simplify i_stream_read_data() EOF and error handling
Stephan Bosch [Tue, 26 Sep 2023 00:06:23 +0000 (02:06 +0200)] 
lib: istream - Simplify i_stream_read_data() EOF and error handling

2 years agoimapc: Propagate INPROGRESS notifications from backends
Marco Bettini [Wed, 8 Nov 2023 14:20:49 +0000 (14:20 +0000)] 
imapc: Propagate INPROGRESS notifications from backends

2 years agolib-imap-client: struct imapc_command - Add start_time
Marco Bettini [Thu, 9 Nov 2023 10:59:40 +0000 (10:59 +0000)] 
lib-imap-client: struct imapc_command - Add start_time

2 years agolib-imap-client: Add imapc_client_find_command_by_tag()
Marco Bettini [Thu, 9 Nov 2023 10:23:30 +0000 (10:23 +0000)] 
lib-imap-client: Add imapc_client_find_command_by_tag()

2 years agodoveadm: auth - Cancel request on shutdown
Aki Tuomi [Thu, 22 Dec 2022 11:41:05 +0000 (13:41 +0200)] 
doveadm: auth - Cancel request on shutdown

Allows CTRL+Cing out of a request.

2 years agolib-master: Add master_service_set_killed_callback()
Aki Tuomi [Fri, 3 Nov 2023 10:26:38 +0000 (12:26 +0200)] 
lib-master: Add master_service_set_killed_callback()

Adds a callback that gets called when the master service is killed.

2 years agoauth: auth-request - Handle final failure response
Stephan Bosch [Wed, 1 Nov 2023 23:07:25 +0000 (00:07 +0100)] 
auth: auth-request - Handle final failure response

2 years agoauth: auth-request - Fix success response data without policy lookup
Stephan Bosch [Wed, 1 Nov 2023 23:06:06 +0000 (00:06 +0100)] 
auth: auth-request - Fix success response data without policy lookup

In that case the success data was discarded and not passed to the client.

2 years agologin-common: sasl-server - Remove handing of final response
Stephan Bosch [Fri, 27 Oct 2023 03:42:15 +0000 (05:42 +0200)] 
login-common: sasl-server - Remove handing of final response

It is now handled implicitly by the auth client.

2 years agolib-auth-client: auth-client - Implement implicit handling of final SASL reply
Stephan Bosch [Fri, 27 Oct 2023 02:42:09 +0000 (04:42 +0200)] 
lib-auth-client: auth-client - Implement implicit handling of final SASL reply

Turn it into a additional SASL interaction cycle if the client does not support
handing a final reply/challenge.

2 years agolib-auth-client: auth-client - Move request removal decision to auth_client_request_s...
Stephan Bosch [Fri, 3 Nov 2023 00:57:38 +0000 (01:57 +0100)] 
lib-auth-client: auth-client - Move request removal decision to auth_client_request_server_input()

2 years agolib-auth-client: auth-client-request - Use auth_client_request_is_aborted()
Stephan Bosch [Fri, 3 Nov 2023 00:48:12 +0000 (01:48 +0100)] 
lib-auth-client: auth-client-request - Use auth_client_request_is_aborted()

2 years agolib-auth-client: auth-client-connection - Allow calling auth_client_connection_remove...
Stephan Bosch [Fri, 27 Oct 2023 18:25:31 +0000 (20:25 +0200)] 
lib-auth-client: auth-client-connection - Allow calling auth_client_connection_remove_request() on removed request

2 years agoauth: auth-request - Add comment for final-resp-ok request field flag
Stephan Bosch [Thu, 2 Nov 2023 01:03:48 +0000 (02:03 +0100)] 
auth: auth-request - Add comment for final-resp-ok request field flag

2 years agoauth: auth-request - Restore final-resp-ok support
Stephan Bosch [Thu, 26 Oct 2023 22:36:23 +0000 (00:36 +0200)] 
auth: auth-request - Restore final-resp-ok support

Auth clients other than Dovecot itself will still not handle a final success
response correctly.

Was removed by 73ea09d00148edd2db2a59a71ec91f7bab06697b.

2 years agologin-common: client-common-auth - Make final SASL server success response available...
Stephan Bosch [Thu, 26 Oct 2023 15:47:49 +0000 (17:47 +0200)] 
login-common: client-common-auth - Make final SASL server success response available to application

2 years agologin-common: sasl-server - Return server final response data in success callback
Stephan Bosch [Thu, 26 Oct 2023 15:36:58 +0000 (17:36 +0200)] 
login-common: sasl-server - Return server final response data in success callback

2 years agologin-common: sasl-server - Remove useless parsing of resp= field
Stephan Bosch [Thu, 26 Oct 2023 15:39:15 +0000 (17:39 +0200)] 
login-common: sasl-server - Remove useless parsing of resp= field

The auth-client already does that and provides it in the data_base64 parameter

2 years agolib-auth: auth-scram-client - Don't assert fail when server keeps interacting unexpec...
Stephan Bosch [Thu, 26 Oct 2023 14:56:30 +0000 (16:56 +0200)] 
lib-auth: auth-scram-client - Don't assert fail when server keeps interacting unexpectedly

Issue an error instead.

2 years agolib-auth: auth-scram-client - Fix whitespace issue
Stephan Bosch [Thu, 26 Oct 2023 14:56:08 +0000 (16:56 +0200)] 
lib-auth: auth-scram-client - Fix whitespace issue

2 years agodoveadm: doveadm-auth - Make sure auth-client request is aborted when doveadm is...
Stephan Bosch [Fri, 3 Nov 2023 00:37:06 +0000 (01:37 +0100)] 
doveadm: doveadm-auth - Make sure auth-client request is aborted when doveadm is interrupted

This did not work for multi-cycle SASL mechanisms because input->request was
cleared upon the first auth server reply. This change restores it if the
authentication interaction continues.

2 years agodoveadm: doveadm-auth - Abort auth-client request when SASL client fails
Stephan Bosch [Fri, 3 Nov 2023 00:35:22 +0000 (01:35 +0100)] 
doveadm: doveadm-auth - Abort auth-client request when SASL client fails

Prevents warning about pending requests in the auth client upon cleanup.

2 years agodoveadm: doveadm-auth - Pass debug setting to auth-client
Stephan Bosch [Fri, 3 Nov 2023 00:34:00 +0000 (01:34 +0100)] 
doveadm: doveadm-auth - Pass debug setting to auth-client

2 years agoauth: mech-oauth2 - Fix segfault occurring when oauth2 passdb is not first
Stephan Bosch [Fri, 3 Nov 2023 00:28:05 +0000 (01:28 +0100)] 
auth: mech-oauth2 - Fix segfault occurring when oauth2 passdb is not first

2 years agoauth: test-mech - Fix empty initial reponse tests
Stephan Bosch [Thu, 2 Nov 2023 13:33:50 +0000 (14:33 +0100)] 
auth: test-mech - Fix empty initial reponse tests

Empty initial responses were interpreted as the absense of an initial response,
thereby triggering an empty server challenge and a subsequent erroneous failure.
This was not how these tests were intended.

2 years agolib-auth-client: Reformat auth-client-connection.c
Stephan Bosch [Fri, 3 Nov 2023 11:56:00 +0000 (12:56 +0100)] 
lib-auth-client: Reformat auth-client-connection.c

2 years agolib-auth-client: Reformat auth-client-request.c
Stephan Bosch [Sat, 28 Oct 2023 01:42:21 +0000 (03:42 +0200)] 
lib-auth-client: Reformat auth-client-request.c

2 years agoauth: Reformat auth-request.h
Stephan Bosch [Thu, 2 Nov 2023 00:47:23 +0000 (01:47 +0100)] 
auth: Reformat auth-request.h

2 years agoauth: Reformat auth-request.c
Stephan Bosch [Thu, 2 Nov 2023 00:38:58 +0000 (01:38 +0100)] 
auth: Reformat auth-request.c

2 years agodict: Fix COMIT typo in log prefix
Timo Sirainen [Mon, 13 Nov 2023 21:59:57 +0000 (23:59 +0200)] 
dict: Fix COMIT typo in log prefix

Added by 93a53a9d590f0220de28600f36a969cc38c3148b

2 years agodict: Add log prefixes to commands that can log something
Timo Sirainen [Thu, 9 Nov 2023 23:45:47 +0000 (01:45 +0200)] 
dict: Add log prefixes to commands that can log something

2 years agocassandra: Fix memory leaks on failures
Timo Sirainen [Thu, 9 Nov 2023 22:37:58 +0000 (00:37 +0200)] 
cassandra: Fix memory leaks on failures

2 years agolib-dict: dict-lua - Add transaction:set_non_atomic()
Timo Sirainen [Thu, 9 Nov 2023 21:28:59 +0000 (23:28 +0200)] 
lib-dict: dict-lua - Add transaction:set_non_atomic()

2 years agodict-sql: Implement dict_transaction_set_non_atomic()
Timo Sirainen [Thu, 9 Nov 2023 21:27:36 +0000 (23:27 +0200)] 
dict-sql: Implement dict_transaction_set_non_atomic()

2 years agolib-dict: Add dict_transaction_set_non_atomic()
Timo Sirainen [Thu, 9 Nov 2023 21:27:10 +0000 (23:27 +0200)] 
lib-dict: Add dict_transaction_set_non_atomic()

2 years agolib-sql, cassandra: Add and implement sql_transaction_set_non_atomic()
Timo Sirainen [Thu, 9 Nov 2023 21:23:22 +0000 (23:23 +0200)] 
lib-sql, cassandra: Add and implement sql_transaction_set_non_atomic()

2 years agocassandra: Support multiple statements in a transaction using batches
Timo Sirainen [Thu, 9 Nov 2023 13:04:10 +0000 (15:04 +0200)] 
cassandra: Support multiple statements in a transaction using batches

2 years agocassandra: Prepare support for multiple statements in transaction
Timo Sirainen [Thu, 9 Nov 2023 20:24:16 +0000 (22:24 +0200)] 
cassandra: Prepare support for multiple statements in transaction

Prepare the code for an array of statements, but don't actually support more
than one yet.

2 years agocassandra: Refactor continuing transaction after pending prepared statement is finished
Timo Sirainen [Thu, 9 Nov 2023 12:44:13 +0000 (14:44 +0200)] 
cassandra: Refactor continuing transaction after pending prepared statement is finished

2 years agocassandra: Add and use enum cassandra_result_type
Timo Sirainen [Thu, 9 Nov 2023 12:12:11 +0000 (14:12 +0200)] 
cassandra: Add and use enum cassandra_result_type

2 years agocassandra: Keep also non-prepared sql_statement until transaction commit
Timo Sirainen [Thu, 9 Nov 2023 11:33:10 +0000 (13:33 +0200)] 
cassandra: Keep also non-prepared sql_statement until transaction commit

2 years agocassandra: Fix setting timestamp with non-prepared sql_statements
Timo Sirainen [Thu, 9 Nov 2023 11:06:25 +0000 (13:06 +0200)] 
cassandra: Fix setting timestamp with non-prepared sql_statements

2 years agocassandra: Get query_type earlier in transactions
Timo Sirainen [Thu, 9 Nov 2023 10:42:11 +0000 (12:42 +0200)] 
cassandra: Get query_type earlier in transactions

This simplifies later commits.

2 years agocassandra: Rename driver_cassandra_send_query() to cassandra_result_connect_and_send_...
Timo Sirainen [Thu, 9 Nov 2023 10:34:28 +0000 (12:34 +0200)] 
cassandra: Rename driver_cassandra_send_query() to cassandra_result_connect_and_send_query()

2 years agocassandra: Rename driver_cassandra_query_init() to driver_cassandra_result_init()
Timo Sirainen [Thu, 9 Nov 2023 10:27:41 +0000 (12:27 +0200)] 
cassandra: Rename driver_cassandra_query_init() to driver_cassandra_result_init()

2 years agocassandra: Split off cassandra_statement_send_query()
Timo Sirainen [Thu, 9 Nov 2023 09:59:17 +0000 (11:59 +0200)] 
cassandra: Split off cassandra_statement_send_query()

2 years agocassandra: statement_query() - Don't generate query string unnecessarily
Timo Sirainen [Wed, 8 Nov 2023 21:24:17 +0000 (23:24 +0200)] 
cassandra: statement_query() - Don't generate query string unnecessarily

2 years agolib-lua: Add functions to split tab separated string arrays
Markus Valentin [Wed, 8 Nov 2023 14:38:23 +0000 (15:38 +0100)] 
lib-lua: Add functions to split tab separated string arrays

For completeness this also adds tabunescape and tabescape.

2 years agodovecot.service: Add OOMPolicy=continue
Markus Valentin [Fri, 10 Nov 2023 09:14:36 +0000 (10:14 +0100)] 
dovecot.service: Add OOMPolicy=continue

Set OOMPolicy to continue to prevent one process of the dovecot
unit being killed by the OOM killer stopping the whole unit.

2 years agoAdd Valgrind suppressions for Addr16 variants of existing iconv dlopen suppressions
Stephan Bosch [Sun, 5 Nov 2023 16:22:54 +0000 (17:22 +0100)] 
Add Valgrind suppressions for Addr16 variants of existing iconv dlopen suppressions

2 years agologin-common: Fix accessing freed memory when handling delayed final SASL responses
Timo Sirainen [Fri, 3 Nov 2023 11:03:47 +0000 (13:03 +0200)] 
login-common: Fix accessing freed memory when handling delayed final SASL responses

auth_request is freed already after authenticate_callback() is called, but delayed
response handler still attempted to use it.

2 years agolib-storage: mdbox - Skip GUID mismatches
Aki Tuomi [Wed, 25 Oct 2023 11:18:25 +0000 (14:18 +0300)] 
lib-storage: mdbox - Skip GUID mismatches

Old behaviour would not fix the box, so lets
log an error and ignore the expunge.

2 years agomdbox: Fix assert-crash if syncing causes storage rebuild
Timo Sirainen [Wed, 1 Nov 2023 09:52:06 +0000 (11:52 +0200)] 
mdbox: Fix assert-crash if syncing causes storage rebuild

Fixes:
Panic: file mail-index-sync.c: line 419 (mail_index_sync_begin_to2): assertion failed: (!index->syncing)

Broken by b073a14640cab4b9e2a84a783aac2f7fd0102473

2 years agomdbox: Reset internal fscked-flag after rebuilding index
Timo Sirainen [Mon, 3 Jul 2023 23:01:35 +0000 (02:01 +0300)] 
mdbox: Reset internal fscked-flag after rebuilding index

The index was just rebuilt. If the flag isn't reset, it might become
rebuilt again.

2 years agomdbox: Fix "Invalid dbox header size" error to use "mdbox"
Timo Sirainen [Mon, 3 Jul 2023 21:34:40 +0000 (00:34 +0300)] 
mdbox: Fix "Invalid dbox header size" error to use "mdbox"

2 years agomdbox: fsck map index only after logging "rebuilding indexes"
Timo Sirainen [Mon, 3 Jul 2023 20:37:20 +0000 (23:37 +0300)] 
mdbox: fsck map index only after logging "rebuilding indexes"

2 years agomdbox: Skip storage rebuild if the reason for it no longer exists after locking map
Timo Sirainen [Mon, 3 Jul 2023 20:36:31 +0000 (23:36 +0300)] 
mdbox: Skip storage rebuild if the reason for it no longer exists after locking map

2 years agomdbox: mdbox_storage_set_corrupted() - Add reason parameter
Timo Sirainen [Mon, 3 Jul 2023 10:57:59 +0000 (13:57 +0300)] 
mdbox: mdbox_storage_set_corrupted() - Add reason parameter

2 years agomdbox: Replace mdbox_storage_set_corrupted() with mdbox_set_mailbox_corrupted() where...
Timo Sirainen [Mon, 3 Jul 2023 10:57:25 +0000 (13:57 +0300)] 
mdbox: Replace mdbox_storage_set_corrupted() with mdbox_set_mailbox_corrupted() where possible

2 years agomdbox: If mdbox_sync_begin() fail with corruption, make sure storage corruption reaso...
Timo Sirainen [Mon, 3 Jul 2023 10:52:01 +0000 (13:52 +0300)] 
mdbox: If mdbox_sync_begin() fail with corruption, make sure storage corruption reason is set

2 years agodbox: Add reason parameter to dbox_storage_vfuncs.set_mailbox_corrupted()
Timo Sirainen [Mon, 3 Jul 2023 10:45:28 +0000 (13:45 +0300)] 
dbox: Add reason parameter to dbox_storage_vfuncs.set_mailbox_corrupted()

2 years agodbox: Add reason parameter to dbox_storage_vfuncs.set_file_corrupted()
Timo Sirainen [Mon, 3 Jul 2023 10:40:36 +0000 (13:40 +0300)] 
dbox: Add reason parameter to dbox_storage_vfuncs.set_file_corrupted()

2 years agomdbox: Change mdbox_storage.corrupted boolean to reason string
Timo Sirainen [Mon, 3 Jul 2023 10:23:52 +0000 (13:23 +0300)] 
mdbox: Change mdbox_storage.corrupted boolean to reason string

2 years agomdbox: Log reason when rebuilding indexes
Timo Sirainen [Mon, 3 Jul 2023 10:19:32 +0000 (13:19 +0300)] 
mdbox: Log reason when rebuilding indexes

Already include the reason also as bitmask in preparation for a later commit
using it.

2 years agomdbox: Remove unused MDBOX_SYNC_FLAG_NO_PURGE
Timo Sirainen [Mon, 3 Jul 2023 09:12:03 +0000 (12:12 +0300)] 
mdbox: Remove unused MDBOX_SYNC_FLAG_NO_PURGE

2 years agomdbox: Rebuild storage in its own atomic context
Timo Sirainen [Mon, 3 Jul 2023 09:10:41 +0000 (12:10 +0300)] 
mdbox: Rebuild storage in its own atomic context

This guarantees that the atomic context is fully committed after rebuild,
instead of rolled back due to sync failing later on.

2 years agomdbox: Move storage rebuild handling to mdbox_sync()
Timo Sirainen [Mon, 3 Jul 2023 09:06:07 +0000 (12:06 +0300)] 
mdbox: Move storage rebuild handling to mdbox_sync()

This simplifies the code, since it's the only place that can actually
rebuild the storage. Also will be needed for following commit.

2 years agolib-index: mail_index_unset_fscked() - Fix to use the latest index header
Timo Sirainen [Mon, 3 Jul 2023 20:46:32 +0000 (23:46 +0300)] 
lib-index: mail_index_unset_fscked() - Fix to use the latest index header

The flags field was updated using the view's header, which may have been
out-of-date. This could have resulted in more than the FSCKD flag update,
and most importantly it could have meant that the FSCKD flag wasn't
actually removed when it should have been.

2 years agodoveadm: Add doveadm stats reopen
Aki Tuomi [Wed, 4 Oct 2023 05:50:12 +0000 (08:50 +0300)] 
doveadm: Add doveadm stats reopen

2 years agostats: Add REOPEN command
Aki Tuomi [Wed, 4 Oct 2023 05:50:04 +0000 (08:50 +0300)] 
stats: Add REOPEN command

2 years agostats: transport file - Add unix socket support
Aki Tuomi [Wed, 4 Oct 2023 05:34:02 +0000 (08:34 +0300)] 
stats: transport file - Add unix socket support

2 years agostats: Add file transport
Aki Tuomi [Tue, 3 Oct 2023 12:01:56 +0000 (15:01 +0300)] 
stats: Add file transport

2 years agostats: Add transport_context for exporter
Aki Tuomi [Wed, 4 Oct 2023 11:41:21 +0000 (14:41 +0300)] 
stats: Add transport_context for exporter

Can be used by transporters

2 years agodoveadm index: Fix for fts crashing on virtual folders
Marco Bettini [Wed, 25 Oct 2023 12:30:16 +0000 (12:30 +0000)] 
doveadm index: Fix for fts crashing on virtual folders

Broken by: d1be7f323f (implemented in indexer but not in doveadm)

2 years agocassandra: Clarify the minimum responses needed log message
Timo Sirainen [Wed, 25 Oct 2023 17:54:15 +0000 (20:54 +0300)] 
cassandra: Clarify the minimum responses needed log message

With "n/m responses received" it looks as if "m" is the total number of
responses that could be received. Using "n of minimum m responses received"
should be clearer.

2 years agolib-oauth2: test-oauth2-jwt - Allow running test from paths other than current directory
Stephan Bosch [Tue, 24 Oct 2023 19:41:04 +0000 (21:41 +0200)] 
lib-oauth2: test-oauth2-jwt - Allow running test from paths other than current directory

2 years agolib-oauth2: Fix recursive field copying
Aki Tuomi [Fri, 13 Oct 2023 06:43:53 +0000 (09:43 +0300)] 
lib-oauth2: Fix recursive field copying

Now arrays are properly copied, and fields are
prefixed with object keys when nested.

2 years agolib-dict: Avoid passing uninitialized pointer as function parameter
Timo Sirainen [Fri, 20 Oct 2023 09:21:25 +0000 (12:21 +0300)] 
lib-dict: Avoid passing uninitialized pointer as function parameter

It wasn't actually dereferencing the pointer, but it seems this was still
causing valgrind to sometimes log an error.

2 years agoauth: Move all final SASL response handling to login-common
Stephan Bosch [Mon, 2 Oct 2023 23:29:25 +0000 (01:29 +0200)] 
auth: Move all final SASL response handling to login-common

Success response was still handled in auth service, which makes little sense.

2 years agologin-common: sasl-server - Move nologin flag from local variable to client struct
Stephan Bosch [Fri, 20 Oct 2023 02:41:11 +0000 (04:41 +0200)] 
login-common: sasl-server - Move nologin flag from local variable to client struct

2 years agologin-common: sasl-server - Split off sasl_server_auth_success_finish()
Stephan Bosch [Tue, 10 Oct 2023 00:23:58 +0000 (02:23 +0200)] 
login-common: sasl-server - Split off sasl_server_auth_success_finish()

2 years agologin-common: client-common-auth - Move all direct (initial) auth client activity...
Stephan Bosch [Tue, 10 Oct 2023 00:15:27 +0000 (02:15 +0200)] 
login-common: client-common-auth - Move all direct (initial) auth client activity to sasl-server.c

This improves separation of concerns and clarity of the code.

2 years agologin-common: client-common-auth - Move delayed final reply handling fully to sasl...
Stephan Bosch [Tue, 10 Oct 2023 00:03:17 +0000 (02:03 +0200)] 
login-common: client-common-auth - Move delayed final reply handling fully to sasl-server.c

2 years agologin-common: client-common-auth - Use safe_memset() to clear auth response
Stephan Bosch [Sat, 7 Oct 2023 23:21:47 +0000 (01:21 +0200)] 
login-common: client-common-auth - Use safe_memset() to clear auth response

2 years agologin-common: client-common-auth - Centralize calling client_auth_respond() to client...
Stephan Bosch [Sat, 7 Oct 2023 23:16:00 +0000 (01:16 +0200)] 
login-common: client-common-auth - Centralize calling client_auth_respond() to client_auth_input

This makes sure the auth response data is always cleared after.

2 years agologin-common: client-common-auth - Move SASL response pre-checks to client_auth_respo...
Stephan Bosch [Sat, 7 Oct 2023 22:54:09 +0000 (00:54 +0200)] 
login-common: client-common-auth - Move SASL response pre-checks to client_auth_response()

This fixes Submission and ManageSieve not calling
sasl_server_auth_delayed_final().

2 years agologin-common: client-common-auth - Remove io first in client_auth_respond()
Stephan Bosch [Sat, 7 Oct 2023 22:48:41 +0000 (00:48 +0200)] 
login-common: client-common-auth - Remove io first in client_auth_respond()

2 years agosubmission-login: client - Properly use client event as event parent for SMTP server
Stephan Bosch [Sun, 8 Oct 2023 01:37:21 +0000 (03:37 +0200)] 
submission-login: client - Properly use client event as event parent for SMTP server

This fixes using "submission" event category for debug logging submission login
STMP activity.

2 years agolib-smtp: smtp-server-connection - Call connnection_deinit() before conn_free() callb...
Stephan Bosch [Mon, 9 Oct 2023 00:08:56 +0000 (02:08 +0200)] 
lib-smtp: smtp-server-connection - Call connnection_deinit() before conn_free() callback to prevent NULL dereference

The callback may destroy stuff that e.g. the event logging depends on. The
connection_deinit() call will cause event logging, which would cause trouble if
it is called after conn_free().

2 years agodoveadm: doveadm-auth - Hide resp field from output
Stephan Bosch [Thu, 5 Oct 2023 00:26:40 +0000 (02:26 +0200)] 
doveadm: doveadm-auth - Hide resp field from output

2 years agolib-smtp: smtp-server-cmd-auth - Clear potentially secret authentication data asap
Stephan Bosch [Mon, 2 Oct 2023 23:28:44 +0000 (01:28 +0200)] 
lib-smtp: smtp-server-cmd-auth - Clear potentially secret authentication data asap

2 years agolib-smtp: smtp-command-parser - Always safely clear potentially secret authentication...
Stephan Bosch [Mon, 2 Oct 2023 23:27:29 +0000 (01:27 +0200)] 
lib-smtp: smtp-command-parser - Always safely clear potentially secret authentication data

2 years agologin-common: Reformat sasl-server.c
Stephan Bosch [Tue, 10 Oct 2023 00:07:16 +0000 (02:07 +0200)] 
login-common: Reformat sasl-server.c

2 years agolib-smtp: Reformat smtp-server-cmd-auth.c
Stephan Bosch [Mon, 2 Oct 2023 23:25:25 +0000 (01:25 +0200)] 
lib-smtp: Reformat smtp-server-cmd-auth.c

2 years agoauth/db-ldap: Replace obsolete ldap_search()
Karl Fleischmann [Fri, 20 Oct 2023 14:35:01 +0000 (16:35 +0200)] 
auth/db-ldap: Replace obsolete ldap_search()

Replace deprecated ldap_search() with suggested ldap_search_ext()
function call. Rename error messages which function failed accordingly.

2 years agolib-imap-urlauth: imap-urlauth - Retry non-matching URL userid in with userdb lookup...
Stephan Bosch [Mon, 16 Oct 2023 00:14:14 +0000 (02:14 +0200)] 
lib-imap-urlauth: imap-urlauth - Retry non-matching URL userid in with userdb lookup for generate and local fetch.

This way, post-login user name changes that are not visible to the user can be accounted for.