ac581db9a4ff22c5f99cf1666a0a1a7f7889e0a2 |
|
31-Jan-2018 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on ssl_iostream_destroy(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- ssl_iostream_destroy(&E);
- }
+ ssl_iostream_destroy(&E); |
cff2942962a11f78d23bcb0a4ed56f67e751819c |
|
31-Jan-2018 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on iostream_proxy_unref(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- iostream_proxy_unref(&E);
- }
+ iostream_proxy_unref(&E); |
e9fbe5e18b798728041b7e2ffc6c4fa964fc35a3 |
|
31-Jan-2018 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on str_free(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- str_free(&E);
- }
+ str_free(&E); |
935febe5d151719a9ddf1d2ba25449b19c76be04 |
|
11-Jan-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
*-login: Fix clients linked list corruption with SSL connections
This could have resulted in infinite loops or some of the clients being
skipped for some operations. |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
3609e0b9b8fcd1a183a785af690cdcad33c345aa |
|
28-Dec-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
login-common: Indicate TLS encryption if haproxy says it was |
a074b1e4012665af44b198a05baa5e478220ec3f |
|
14-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
*-login: Avoid unnecessary "OK Waiting for authentication process to respond"
These happened with SSL connections when the process was starting up.
The ssl-istream was triggering the IO callback, which was thinking that the
client was sending a command. If this happened early on before auth process
connection was finished, this caused several unnecessary notifications to
the client. |
9666d130b63653a5a6d5d2f38ca2df72a5f3f7a7 |
|
11-Dec-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
login-common: Added flag to client that indicates whether connection is secured using SSL specifically. |
dfafc4ac89195b8cdd48afa619599d5b392ef479 |
|
11-Dec-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
login-common: Added client_disconnect(), which allows explicitly disconnecting the client before it is destroyed.
This is sometimes needed to make sure the SSL layer is closed properly before destroying the underlying connection. |
a1852ab4cf0a942a3fcf4ca5636a7932ebcc7970 |
|
11-Dec-2017 |
Stephan Bosch <stephan@rename-it.nl> |
login-common: Added support for login services that handle their own input io. |
c147bff818798a979d93537f72f5c1f68f5d5ba8 |
|
24-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Use t_buffer_create
sed -i -e 's/buffer_create_dynamic(pool_datastack_create(), */t_buffer_create(/g' |
04d4432f5e21ba621ef8af3cb497ef7ededa87e3 |
|
15-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
*-login: Close SSL connections cleanly
Don't close the socket before SSL "close notify" is sent. |
3e06f836ce9c97ad09c7cb4b5660c5787900c1c6 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: Stop using ssl-proxy entirely |
feb8f7b9490ddef989094ee21d7d1a222ccc4cb2 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: Use lib-ssl-iostream for incoming SSL/TLS connections |
0256180043b9f55b606b523b775e8b23b1b12f83 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: Change process title to show different connection types
Separate pre-login connections, proxy connections and post-login TLS
proxies. |
a7efba62b6235e5efc124cbf702ddeb547ca3665 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: Destroy all fd proxies at deinit. |
87dbf3e85526ccde5908a611eb9a798f1d0ccac3 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: Implement post-login proxying and use it with SSL connections
Note: This temporarily breaks the SSL connections a bit. If post-login
process disconnects the client, it's not noticed by the login process.
Client connections are noticed by the post-login though. |
be6e55ff7c81afdc7ed9b47c6021a4f7827e4407 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: client_alloc() - remove unnecessary ssl parameter |
b1485f2691de41ed7b5f96cebda2ebcb69a5e22f |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: Extract SSL/TLS initialization into client_init_ssl() |
66ea9eaaa2d7531b3be8f633937628c94d907031 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: Split client_create() to client_alloc() and client_init()
client_unref() can be used to free an allocated client that hasn't been
fully created. |
1312cf655d3ea22c0ab6487ce710ad4060c25905 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-proxy: Move client fd closing to client_unref() |
86bca14f79caeff0830abd2315d8a0e5db4b979b |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: Move code in client_destroy_internal_failure() to its only caller
No need to have a function that has only a single caller. |
1a1159e589def1e32b7dc25397f15146672ef73e |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: Avoid using client_destroy_success() when mail_max_userip_connections is reached
This was currently the only way how data != NULL here.
This change destroys ssl_proxy on client_destroy() instead of
client_unref(), but that doesn't make much of a practical difference. This
new behavior is a bit more correct though. |
b833824981bc75af72adb844f8a4a992bd2f3ad3 |
|
02-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: client_unref() - always set client pointer to NULL
This is the common coding practise elsewhere as well. |
a44e36b9c7fc0ad7dca26793c8216b13fb8632dd |
|
02-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
login-common: Remove unnecessary client_ref/unref from STARTTLS handling
There used to be code between them that could have destroyed the connection,
but that was removed long time ago. |
9a84b90d894a741ae6e090de104d31382a41d0aa |
|
01-Nov-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on [io]_stream_close(NULL) being a no-op
Cleanup performed with the following semantic patch (and a bit of
hand-editing):
@@
expression E;
@@
- if (E != NULL) {
- i_stream_close(E);
- }
+ i_stream_close(E);
@@
expression E;
@@
- if (E != NULL) {
- o_stream_close(E);
- }
+ o_stream_close(E); |
b6fbc235f981b10333403e2fd6d333fd351c7a3c |
|
16-Oct-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
login-common: Use HAproxy provided proxy.ssl information
If the connection is proxied via system that can terminate
ssl for us, such as HAproxy, use that information only. |
c69a177207ed18d0f0210347430a60957136bd6c |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on pool_unref(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- pool_unref(&E);
- }
+ pool_unref(&E); |
204ee6ed414f5e4eeb6f6c10763b55daf56f11ac |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on [io]_stream_unref(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- i_stream_unref(&E);
- }
+ i_stream_unref(&E);
@@
expression E;
@@
- if (E != NULL) {
- o_stream_unref(&E);
- }
+ o_stream_unref(&E); |
0d1b8b6bec79746c5d89d57dd8c1688946bd9237 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on timeout_remove(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- timeout_remove(&E);
- }
+ timeout_remove(&E); |
5f1d689131a75c39f064cbd4202373e7edf78f18 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on io_remove{,_closed}(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- io_remove(&E);
- }
+ io_remove(&E);
@@
expression E;
@@
- if (E != NULL) {
- io_remove_closed(&E);
- }
+ io_remove_closed(&E); |
b84eff65e25ae86dfd6f798386577209b94838c6 |
|
16-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
*-login: Add client_vfuncs.free() that is called when client refcount=0
This can be useful for plugins that want to run something after proxying
ends.
Use an empty default function so plugins can call super.free() without
having to check if it's NULL. |
21b21a19b55ebd8dd8f719d1839f6f667ebfffec |
|
21-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
*-login: Require client_vfuncs.send_raw_data() to be set
This removes backwards compatibility for managesieve-login. |
ae797f3368ebb86e7786ca25d7c9c703f672b9f5 |
|
21-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
*-login: Add client_vfuncs.send_raw_data()
This allows login plugins to hook into seeing all the data that is sent to
the imap/pop3 client. |
56af9dd10e7e6caeaca64395bad3f882b28ecdff |
|
06-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
*-login: Minor logging cleanup if client is disconnected before sending banner.
Avoid unnecessarily adding "(no auth attempts in 0 secs)" when the reason
string already makes it clear that the user didn't even have a chance to
authenticate.
This kind of disconnection currently happens only with some plugins. |
c4ec7cb598805b1387dc3aab59ec8f32d8cc24e1 |
|
24-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap-login: Move forward_fields updating code to login-common
This allows using the new client_add_forward_field() in e.g. plugins. |
b045b66988bfbaa2795791e42ee724fae6f0db1c |
|
19-Mar-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
login-common: Add preproxy pool
preproxy pool can be used to do allocations that are released
once proxying starts. |
c5e62353a11087958ea4e619660e084a613e1a37 |
|
16-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
*-login: Change API for how login_plugins hook into client allocation.
The previous API worked badly when there were more than one plugin.
The current behavior works similarly to how mail_plugins work. |
2b96880f2d789d125aff6a95eaa7b51f558a6a1c |
|
09-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
*-login: Add client.proxy_get_state() for providing human-readable proxy state
If not implemented, it defaults to the old method of returning proxy_state
number. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Change string position/length from unsigned int to size_t
Mainly to avoid truncating >4GB strings, which might potentially cause
some security holes. Normally there are other limits, which prevent such
excessive strings from being created in the first place.
I'm sure this didn't find everything. Maybe everything could be found with
compiler warnings. -Wconversion kind of does it, but it gives way too many
unnecessary warnings.
These were mainly found with:
grep " = strlen"
egrep "unsigned int.*(size|len)" |
bcf1cf2afb9692b0db555e6ecf662a2fbd19793d |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: API change - var_expand_func_table.func() can now return error.
None of the existing functions were changed to return errors (yet). |
0f5dc4da3982053036be65190e44bf28a67b1ca2 |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: API change - var_expand*() now returns error string.
This allows callers to fail properly if the format string is invalid. |
8ac6623677005256bf99ab33a2ed98c69c1d656c |
|
02-Nov-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
auth,login-common: Added result code for invalid base64-encoded response data. |
04eb0abcf8f8b0c014499b5c5bae89484553613f |
|
02-Nov-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
login-common: Added result codes for mechanism-related failures. |
f32d0295c90ed810889504cdfa5e1a25a415f65f |
|
02-Nov-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
login-common: Added result code for a nologin code from the auth service. |
36b072d84a9076c3c483bf710444a716e987ccc3 |
|
02-Nov-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
auth: Added a code= field to the auth FAIL response that replaces the "authz", "temp", "pass_expired", and "user_disabled" fields. |
acfda38b75d0f0e899ef692fef01593bd56ed85e |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Try to initialize var_expand_tab[] directly.
This avoids accidents with the array numbering being wrong. |
4b1781e4c64be52e25b5994e5242dbe696cc7d29 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use i_strchr_to_next() wherever useful. |
290b91ad6f5ea9e44b2d86b68dd80f0313cd2c57 |
|
20-Oct-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
login-common: Include local_name in login_var_expand_table
This way it can be used in login_log_format |
e93184a9055c2530366dfe617e07199603c399dd |
|
06-Jun-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: remove autoclose parameter from [io]_stream_create_fd
Use [io]_stream_create_fd_autoclose() for autoclose. |
0175d37a5ae5a4d146ca41b684bd38d9b03683cb |
|
30-May-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
Remove t_malloc in favour of t_malloc_no0
Using either t_malloc_no0 or t_malloc0 makes it clear whether the
allocated memory is zeroed or not. |
fc7dde2040af579e5cf6769bbf63880071badf11 |
|
19-Apr-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
Require IPv6 to build |
9132f9df4e12ed5293c70957813aa3736444a13c |
|
15-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
*-login: Allow plugins to hook into client allocation and add module-specific contexts to client. |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
a7d14da6cef3cfe26df5d039088ddd186c8aaedf |
|
27-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
*-login: Session ID generator wasn't encoding remote port number correctly to it.
The upper 8bits of the port number were always written as 0.
This could have lead to duplicate session ID strings in some rare cases.
Found by Coverity. |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
2dfd08e8aa16dfcc975d8a62bc8d20b2ef849d71 |
|
28-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
*-login: Added %{passdb:*} fields to login_log_format_elements |
c12d96f12cac9af464ab2e59046bd59b0c06b4ea |
|
25-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
login_log_format_elements: Added %{listener} variable to expand to the listener socket name. |
a05fec120ecd8c4ed6331c42100cba42adf22893 |
|
15-Jun-2015 |
Stephan Bosch <stephan@rename-it.nl> |
lmtp, *-login: Use ip/port values from struct master_service_connection instead of from the socket.
This way, a proxy protocol like HAProxy can transparently override these
addresses with what is seen by the proxy. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
a117008f03ad9e2d54258b30d3fb03ffa502a448 |
|
09-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
login-common: Fixed potential crash at client disconnect.
Broken by recent change |
0270e64c5b6f553c066c00c99b0636095a3faa86 |
|
05-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
*-login: Flush SSL output when logging out.
The BYE and LOGOUT replies weren't being sent when they were sent from
imap-login process (before logging in). |
0b3e92b6043435c5aa9f1cf1d04b632f3e19abd9 |
|
06-May-2014 |
Phil Carmody <phil@dovecot.fi> |
treewide sparse cleanup - make single-unit-only data static
Helps keep the global namespace clean. Not all the things suggested by
sparse have been moved. All DOVECOT_ABI_VERSION strings, and anything
replicated in all-settings.c by src/config/settings-get.pl has been
left untouched. Some of the latter could be moved, but the script would
need to be modified to replicate the 'static' (it outputs 'extern'). |
6da2d4faed507f513c68b94bb56a13caeeb3ff4a |
|
07-May-2014 |
Timo Sirainen <tss@iki.fi> |
*-login: SSL connections didn't get closed when the client got destroyed. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
dd620bc3687f995c483152115590e769094e77d5 |
|
14-Jan-2014 |
Timo Sirainen <tss@iki.fi> |
*-login: Fix to previous commit: Default auth_user to original_user |
2f90189c6ee66a17f7bf838a8eb8a69868630fb8 |
|
14-Jan-2014 |
Timo Sirainen <tss@iki.fi> |
auth, login, mail: Added %{auth_user}, %{auth_username} and %{auth_domain}
They expand to the SASL authentication ID. So if master user login is done,
it expands to the master user. If username changes during authentication, it
expands to the original username. Otherwise %{user} and %{auth_user} are
equal. |
c7eb1ffb7c73cb5d9c1316bbecd02947441a40d4 |
|
22-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
*-login: Added %{orig_user}, %{orig_username} and %{orig_domain} variables.
The original username is what the client sent to server before any
translations. |
de754cb78f75e8b3b994cddafe41c9ed1467c33d |
|
26-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
lib-sasl: Use dsasl_ prefix so we don't conflict with Cyrus SASL library. |
1093de32efb2a231949566d4bd8aa55a8f43fb70 |
|
09-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
imap/pop3-login: Use libsasl for authenticating to remote IMAP/POP3 server.
Also passdb lookup can return "proxy_mech" extra field to specify which SASL
mechanism to use. |
325d17cdbb7a338f7c413788f5e8e42d2e80a7f8 |
|
22-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Added real_[lr]ip, real_[lr]port variables.
The unreal ones differ when a trusted proxy overrides them. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
da62041ae41e58c9e3ef91bd46c15484390c8247 |
|
18-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
login_log_format_elements: Added %{real_rip} variable.
It differs from %r when Dovecot proxy sends an updated client IP address.
Patch by Jack Bates. |
ab90f702ceedb7ba445a9a592be0b213b27cbafa |
|
14-Sep-2012 |
Stephan Bosch <stephan@rename-it.nl> |
Added support to perform token-based service process authentication.
Creates hidden SASL method DOVECOT-TOKEN. This method is not available on
the normal auth login socket and thus never presented to clients.
Creates new auth socket type 'tokenlogin'. This otherwise normal login
socket only offers authentication using the DOVECOT-TOKEN mechanism.
Creates new token-login directory in base_dir to separate token logins from
normal logins. This directory is otherwise completely identical to the
normal login dir, i.e. it contains sockets for the service backends, used
to chroot login processes to, etc.
Makes default login socket configurable.
Performs some minor changes to src/login-common to build very sparse
protocols, e.g. avoid the need to implement methods that are not needed. |
3f878e1442c881e4c5a80661b391926bcdee6016 |
|
06-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
login: s/succesful/successful/ |
f29756821a4c6b12b73e4a2a3e1c230117a43773 |
|
28-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
Moved ssl_* settings from login-common to lib-master.
This allows creating other SSL servers more easily. |
6a9e034441607c0c5a61858ff559af4615ac31ca |
|
17-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
login: Don't allow STARTTLS if ssl=no in client's settings, even if ssl=yes globally. |
e2a88d59c0d47d63ce1ad5b1fd95e487124a3fd4 |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added o_stream_nsend*() and related functions to make delayed error handling safer.
Once o_stream_nsend*() is called, o_stream_nfinish() must be called before
stream is destroyed to finish checking if there were any errors. If
something failed and the stream is just wanted to be closed,
o_stream_ignore_last_errors() can be called.
For streams where errors don't really make any difference (network sockets)
you can call o_stream_set_no_error_handling() immediately after creating the
stream. |
ca843e046e98b12f4730f4b87ee2e1a659c26e78 |
|
16-May-2012 |
Timo Sirainen <tss@iki.fi> |
login: If user is disabled or password expired, say it in logout reason. |
8601157bee434e08be01912a81ba8d6ccbe0a4f4 |
|
17-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
login: Log message change: Tried to use s/disabled/disallowed/ plaintext auth |
42a6ae32e417eb19b48ef312b988d0a527b85ed7 |
|
26-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
*-login: Previous SSL fixes were still broken with service_count=1. |
b6b7a17731a917958b6479920b3fac5ca991db6a |
|
22-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
imap-login: Memory leak fix. |
5da4bfdce070b54ce8dfcd1bf6249798cda86bd6 |
|
22-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
*-login: Another crashfix |
fa02962b74d39e8d74c4c307c0210791b2f0a1ca |
|
22-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
*-login: Fixed crashing when proxying SSL connections to a remote server. |
b55f914c0ade77252cfd798ea8eb9a84bda56315 |
|
07-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
Added a "session ID" string for imap/pop3 connections, available in %{session} variable.
The session ID passes through Dovecot IMAP/POP3 proxying to backend server.
The same session ID is can be reused after a long time (currently a bit
under 9 years). |
b5917cf6476ffb7cdeb2e2544057ea1605ea6fdc |
|
07-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
login_log_format_elements: Allow using %{long_variables} without breaking. |
7a94f950fd1dcc81537acfc8adb030b5e703d722 |
|
01-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
login: If session timeouts after authentication, log a better error about it. |
ddbdc644a15f56f4b43596f1b8c0fc196c101445 |
|
25-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
imap/pop3/lmtp proxy: Implemented detection of proxy loops with TTL.
If proxying tries to continue after 5 forward connections, it fails. The
limit of 5 is hard coded currently. |
12c6ef6f1268ed4d5b63709bb4215c481b4f078c |
|
25-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
login-common: Code cleanup |
717bb0dbaf4bd3f745669570647845e6d493bfe0 |
|
15-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
login: If auth client disconnects without having ever succeeded, destroy clients. |
9f627b360ed38fdc54cb02ec5e67246c3f0d5b0f |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
login-common API made more extensible for different kinds of protocols.
Patch by Stephan Bosch. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
80980955bb1bbcc1bd73623fe0912f334194ddd2 |
|
27-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
login proxy: If remote auth fails, say so in disconnect message instead of "internal failure". |
9ddd3d7d8651985e373a6c48e0ddc76b8a4ef1c7 |
|
20-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Improved warning message about aborting auth requests. |
b9c76fe9d9ca194816606342da1ddbd9be6bc8ab |
|
12-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
login: Added logging if auth process doesn't respond fast enough for greeting. |
88c92ce2caa8f9fa34708471c6ed4e974d5a7953 |
|
19-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
login: Show empty username in disconnect message. |
6998ca95b4947c90647ac5d4794ebd6311acada2 |
|
19-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
login: Log a different disconnect message if client didn't finish SASL auth. |
7c849dbc7be089175c1a83a84ee7249ed695810d |
|
18-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
login: Differentiate between auth failure and auth process communication failure.
Log a warning if auth connection dies. |
2aac7ca853f63b62ea79ef8eae9ded83ed6063a5 |
|
18-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
login: Minor potential authentication fix when service_count>1 |
28dae6a0064e79f86da091625b0f2b92336a2a91 |
|
16-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
login: Improved auth failed log messages. |
843640f0ca224bb9999acb290bca5f76037ab984 |
|
08-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
login: If login fails for some reason, but auth was successful, don't log "auth failed".
For example if proxy fails to connect to remote server. |
baebb412a9a5a44b1756e01cfa3b99f5d8a846b6 |
|
21-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
login: Added -R <dir> parameter to write pre-login rawlogs to given directory. |
b4b87fa19d26aadb2ea9e8a9ae7af6cfdaab4cfb |
|
22-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
login: "cert required, client didn't start TLS" error could have been logged wrongly. |
5a250816ffc4cc5db203f9410ea99b6601c7b91a |
|
30-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
login-common API redesign so that the library doesn't refer to nonexistent variables. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
434abef12f61881a5cfa28d27193d0854a9639a0 |
|
04-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
login: ssl_require_client_cert and ssl_username_from_cert settings should have had auth_ prefix.
The actual functionality was provided by the auth_* settings, but with these
duplicated settings login process didn't give as good error messages. |
bdb9f7f7fbf828fb85a393bd2803167b1bb8ff0d |
|
03-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
Log login pid/id for internal failures to allow matching errors between processes. |
506e41a4efbc7f4bba93cd295ca4dba18ed3cf09 |
|
14-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
*-login: If client didn't log in, don't log mpid in logout message. |
6303191abcb37164f435ccdc56e9dbddf1288851 |
|
19-May-2010 |
Timo Sirainen <tss@iki.fi> |
login proxy: If passdb returns proxy_refresh=<secs>, send username to proxy-notify fifo every n secs.
--HG--
branch : HEAD |
92c49f3005f4dff1a6f576fffa8112ef6d1cae7f |
|
04-May-2010 |
Timo Sirainen <tss@iki.fi> |
Compile fix
--HG--
branch : HEAD |
7839797af86d5536124c67f09ede30df08cf678a |
|
14-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
login: Keep binary-specific defaults in a struct.
--HG--
branch : HEAD |
5a9e240ebf8d0daaf029973973b52e415148070b |
|
08-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
login: Always disconnect clients after 3 minutes if they haven't logged in.
--HG--
branch : HEAD |
5d2e7ec2ea725c8a6a63f56b771e746f93e782ec |
|
19-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
*-login: Disconnect from auth server after idling for a minute.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
46552a931924c2d743f045e95b08c3ce6beda91a |
|
02-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
login-common: Renamed common.h to login-common.h
--HG--
branch : HEAD |
660b99a7059824676b2b8d6f79b8e15d47df25a2 |
|
10-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Removed per-connection auth failure penalties. Trust auth server to do it.
--HG--
branch : HEAD |
cec3230c9b2a96bac1ea42c69475e8aea4b91eab |
|
29-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
ssl: Don't start handshake until client has been set.
--HG--
branch : HEAD |
54533aa265f5c87730022cc7576090bc51370f97 |
|
27-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Show better state with verbose_proctitle=yes.
--HG--
branch : HEAD |
f059a046515f4b2b15a6c2a10a6f12f6166e39a5 |
|
21-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap-login: If imap_capability is set, use it.
--HG--
branch : HEAD |
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3 |
|
20-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Redesigned how login process passes connections to mail processes and changed related APIs.
Master process is no longer in the middle.
--HG--
branch : HEAD |
4de2a17e0a2aed3b57a6c1057329b6a132b56ae2 |
|
10-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Close auth client connection after (proxying) process no longer needs it.
--HG--
branch : HEAD |
d873ff0b3e44137e712ed274e9b0e0fd3baea521 |
|
08-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Don't set connection fd to non-blocking twice.
--HG--
branch : HEAD |
3ffb7fd86484c474b42f3f1e981ab0f7168b5df9 |
|
05-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Log more precise reasons for some auth failures.
--HG--
branch : HEAD |
336b825e0321b798690351d9899b1b0cb99ec462 |
|
01-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap-login: "Disconnected for inactivity" should be sent as BYE.
--HG--
branch : HEAD |
ec23e16ed879e289d12c6e1a5f9745dd3979004a |
|
11-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Fixes to SSL/login proxy connection counting.
--HG--
branch : HEAD |
6fdfa4d4cf14d1d7764d7faa8258f112e39c8dbe |
|
11-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Fixed dropping oldest connection when reaching all limits.
--HG--
branch : HEAD |
c7fca6cbb32388556d9f6d8313486cc4e4a3c058 |
|
11-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Don't leak client when it's aborted while waiting for reply from master.
--HG--
branch : HEAD |
0266a571e98246e2e1b9dd7fe0301e21e226929a |
|
31-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Removed last traces of login_process_per_connection setting.
--HG--
branch : HEAD |
a75907609d7c410c9e17beedfafbf28b4439fa8a |
|
13-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Allow auth input to be larger than the rest of the input.
--HG--
branch : HEAD |
46ec792dd4ccf6c34706c4774228301fafde6aa9 |
|
13-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Allow backend to parse SASL responses from client (for managesieve).
--HG--
branch : HEAD |
4c6ddf2491104f917d00e6900e833e80ea02c7b6 |
|
12-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Abstract out SASL continue reply sending (for managesieve).
--HG--
branch : HEAD |
05e55893a799de645fc8cd2203d6013f0e0f1b79 |
|
11-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Call client_vfuncs.destroy() on client_destroy(), not on unref.
--HG--
branch : HEAD |
e248fe370c4047cee921a91b48edc37944ab0526 |
|
10-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Moved most of the common code to login-common.
--HG--
branch : HEAD |
97db4761382024093f441e4bc78ba8b6a056504d |
|
15-May-2009 |
Timo Sirainen <tss@iki.fi> |
login processes: Added initial support for per-connection configuration.
--HG--
branch : HEAD |
a64adf62fa33f2463a86f990217b0c9078531a40 |
|
28-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for config rewrite.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
8372fc7efb6d64dff2e5f55fb4a3822c56869cfe |
|
21-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
imap/pop3-login: Cleaned up proxying code. Don't disconnect client on proxy failures.
Log proxy failures as errors.
--HG--
branch : HEAD |
f77ffa31038d46ca9c6d24d93e3d76c9aa8d4d0c |
|
13-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
var_expand(): Added support for long %{variable} names.
--HG--
branch : HEAD |
38318f5e82662615cd88e99e398efe4a630ce020 |
|
19-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Login process: Log auth failure reasons better in disconnect message.
For example if client certs are required it now logs if the cert wasn't sent
or if the cert was invalid.
--HG--
branch : HEAD |
4e35bae013cee5a06d281776a347b534b958aaa4 |
|
29-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
login_log_format_elements: Added %k to show SSL protocol/cipher information.
--HG--
branch : HEAD |
087939d3fa9c4056419386c9d6c81f147de534cd |
|
13-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Pass the created mail process PID back to login process so it can log it.
Added %e log format element for it.
--HG--
branch : HEAD |
ab0d9eecd85f74acae18fe88529302e0776cc500 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
extern/static fixes (from a sparse check by Diego Liziero)
--HG--
branch : HEAD |
89795c6bbbc52bb382e88bc8617d22092223e9a5 |
|
21-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Support transferring original IPs and ports through IMAP proxies.
Clients from login_trusted_networks are allowed to override them. Dovecot's
IMAP proxy sends them via IMAP ID command. They're always sent if the remote
advertises ID in the banner's CAPABILITY.
--HG--
branch : HEAD |
bb8d0ec26bdd548624d7a7424071cca693b72f55 |
|
08-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
If TLS connection closes with anything except a clean disconnection, log the
reason in the normal disconnected line.
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--HG--
branch : HEAD |
d3d769026fae5d21c2d29614d3bc4579e8d79e81 |
|
06-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Use linked list macros for handling clients linked list.
--HG--
branch : HEAD |
45155bb1250cf5a120278f349465aded513a100f |
|
06-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Make sure all user input is sanitized before it's logged.
--HG--
branch : HEAD |
ad004e44be109684521494b5af2ad1da39b8bb27 |
|
04-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Forgot from imap/pop3-login clients hash -> linked list commit.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
12cf3d0e03fc70fb0c8b91bc8fd83b4e14d7cdef |
|
03-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added %a=local port and %b=remote port variables for
login_log_format_elements.
--HG--
branch : HEAD |
4ead43ecc06d10047998966c4dc0b142ecce4b66 |
|
16-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
If SSL/TLS handshake didn't finish, show "TLS handshaking" instead of "TLS"
in logout line.
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
3595d562038a9cb119660ed60913acca2bf17f4d |
|
22-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
We printed "SSL" to log for localhost connections. Use "secured" instead.
--HG--
branch : HEAD |
9439bed2f07d6475febd8a247cd2f0990fb32a13 |
|
14-May-2005 |
Timo Sirainen <tss@iki.fi> |
Added configurable logging for login process. Added configurable pop3 logout
string. Based on a patch by Andrey Panin.
--HG--
branch : HEAD |
1d4f710106fb498750456724628da6063e012e6d |
|
13-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
forgot to add
--HG--
branch : HEAD |