bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
d1ba8ecbb936ace90179d2292952546708d68f71 |
|
30-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Replace o_stream_nfinish() with o_stream_flush() |
a943ed0f901e312445fd393249b91932797bba79 |
|
03-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: use i_close_fd{,_path}() instead of open-coding them |
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); |
0043fea12a75cf8fcf2892673106844376da8e76 |
|
07-Sep-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: lib-signals: Removed explicit notification of ioloop change through lib_signals_reset_ioloop() in favor of implicit method.
Before, if the ioloop changed, the application had to explicitly notify lib-signals using lib_signals_reset_ioloop().
This is error-prone and requires doing this all over the Dovecot code base.
Now, lib-signals registers an ioloop switch callback that deals with this implicitly.
The application can detach lib-signals from the ioloop explicitly if delayed signal handling is not required/desired in the new ioloop.
Specific delayed signal handlers can be exempt from this automated behavior using a flag, meaning that such signal handlers need to be moved between ioloops explicitly. |
adea69875046ece77dc36abd3f88a241a3f17ad9 |
|
10-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Add asserts to make static analyzer happier. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
9199e32b86d2de2fb7b73b6ec03b5c205b995490 |
|
27-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-auth: Minor debug logging improvement.
Include "PASS" or "USER" in the prefix to make it clear what the reply is
for. |
7a60e1dc9e93ef3f7c7fe1af6385a0bfa1e31bc3 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Replaced t_strsplit_tab() calls with t_strsplit_tabescaped()
This is useful especially in auth code to support LFs in extra fields.
Other pieces of code were also tab-escaping strings, but never unescaping
them. Usually it didn't matter, because nobody would use the escaped
characters. Still, the code wasn't exactly behaving correctly.
One downside to this change is that it's now possible to pass through TABs,
CRs and LFs through the various protocols. In theory this shouldn't cause
any problems, but combined with other bugs this could trigger some security
problems. |
ef0c36aa8114feee80aa696d9cb8106140371243 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Code cleanup - Use t_strsplit_tabescaped() to avoid str_tabunescape() |
c7aa61396c20ae4bb32d10ce118b1238d96ed84f |
|
08-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-auth: Avoid crash after user iteration if connection failed. |
a9e71f5a055a0735c01194bb2b43b4d5d517bf1f |
|
04-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-auth: Unescape passdb/userdb extra fields.
This only affected \001, \t, \r and \n characters which were left
tab-escaped (e.g. \t as "\001t"). |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
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. |
0f3d4fbcf88e2ffd674893aed8cc1288fe17d290 |
|
18-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use [io]_stream_get_error() insted of %m |
2087543679f0b35a8f70e1277b234e66ffdf96ed |
|
11-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm-auth: If auth_debug setting is enabled, send "debug" field to auth lookups.
The idea is that you could enable auth_debug for specific requests with e.g.:
doveadm -o auth_debug=yes user user@example.com |
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/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
83b7b796c758aee9b6de130bd7e8631fe9fc0beb |
|
25-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
lib-auth: auth_master_pass/user_lookup() now returns -2 for user-specific errors.
Compared to -1 which are about a more generic error with auth process
communication. If -2 is returned the lookup could still succeed for another
user. |
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> |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
a3ed53b37b359597dde3817c0a1e8863c7805077 |
|
23-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
lib-auth: auth_master_cache_flush() always waited for timeout before finishing. |
e262b92fc5c1a73e5edac5b9f787c36325e2b6a1 |
|
21-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Fixed infinite looping if user listing failed because auth process disconnected. |
bdb454d51506bf66990b9c6cb6613395cace2d33 |
|
21-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Recent cleanup commit was actually cleaning up too much. |
d5b366506a39870e6ea36dd89cf7ef548c5a9916 |
|
20-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Don't leave stale pointers to stack lying around in memory. |
769dea751e901be63c3ce4303d0b1afbf47d9d44 |
|
05-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Previous changes didn't set the current ioloop correctly, causing problems. |
3d422a98304352692cb1f3585ac6481d5c4b4155 |
|
05-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
lib-auth: auth_master_user_list_*() shouldn't create ioloop if it already exists. |
0c26faa13d505338720edc5e336922d987fce91c |
|
05-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Another crashfix to auth_master_user_list_*() |
28abd7c6e719c430b7ab83b3e5d46f12d197b9ca |
|
30-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Don't crash in auth_master_user_list_*() if socket can't be connected to. |
0f4fb03953afa4a39d5e32e9ca0527c0a84f9aee |
|
12-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
lib-auth: auth_master_user_list_*() no longer reads the entire user list into memory. |
8ae72ad7d0c69e972cfa65d1e2ce4e3e9a8b765c |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Replaced all -1U and (unsigned int)-1 with UINT_MAX.
It's somewhat clearer this way. Also clang's -fsanitize=integer gives
runtime errors about -1U (but not about explicit casts, so no need to change
(type)-1 casts). |
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. |
89fda66c5c4204f3bc27e160fbadb463e028b811 |
|
28-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Added auth_master_get_socket_path() |
bdd36cfdba3ff66d25570a9ff568d69e1eb543cf |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed network.[ch] to net.[ch].
The function prefixes already started with net_ instead of network_.
And icecap wants to use network.h for other purpose. :) |
d03a871a77f8ec36f48f5fea98d810e51b186fdb |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed str_tabescape_write() to str_append_tabescaped() |
a43145989f87ec68754e21234e7b6d892c4a4421 |
|
04-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added "auth cache flush" command. |
31a574fda352ef4f71dbff9c30e15e4744e132c0 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added array_append_zero() to write a zero-filled record to an array.
Replaced (void)array_append_space() calls with it. |
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. |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
e438c85a6b0f77889e25913bbbba808d6078282d |
|
02-Jun-2012 |
Stephan Bosch <stephan@rename-it.nl> |
Adds 'anonymous' field to struct mail_user; derived indirectly from userdb extra fields.
Depends: none |
3c296d819c54e21ce05c3d2eeeedc79be42ac593 |
|
19-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
Use t_strsplit_tab() wherever possible |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
665e9d14c005b65d95eae0baaa471c51e5caca73 |
|
23-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
lib-auth: auth_master_user_list_init() now takes user_mask and info parameters.
These are passed to auth process, which may use them to limit what usernames
are returned. |
61767c7537efe3eb51f80d37cda12d69c67f3c05 |
|
06-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
lib-auth: When debug logging auth input, hide values of all fields containing "pass" in key. |
7cdf66ecb4957ab2789a4fe39ee01e01b3c2e76c |
|
16-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-auth: If connection to auth-master gets lost, reconnect. |
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. |
9d2a30e39c0662498db3368dbb010e36df54b7e8 |
|
05-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Less leaky fix to previous auth_master_*() bugfix. |
f98b69fec1b012b09e6d1eefd53527b3c5b35729 |
|
05-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Don't crash in auth_master_*() lookups if caller hasn't created ioloop. |
36bf6cd88b1c71055ef12b07253f5223d981e43d |
|
20-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Don't abort userdb iteration if it takes longer than 1 minute. |
d99107ddf4d9bccb710994482daf65276a9d6321 |
|
04-May-2010 |
Timo Sirainen <tss@iki.fi> |
auth/login related timeouts are now in one place and they make more sense.
Most importantly now auth client doesn't abort lookup before server does.
--HG--
branch : HEAD |
9261dbf0675204898c6557591c7aa376e23a52b2 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Started using str_to_*() functions instead of libc's ones.
--HG--
branch : HEAD |
a3f5bd60d81b456b7e4b79b26a825b71b836a537 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Make sure auth_master_*_lookup() returns non-NULL fields.
--HG--
branch : HEAD |
3b22894b8805b186c73d8b754001e8d7e944be85 |
|
31-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Added support for userdb lookup to fail with a reason (many API changes).
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
c5a6a6565be93224fc26522eda855b0990f256e8 |
|
16-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Idle-disconnecting auth master connections is now optional. LMTP no longer does it.
--HG--
branch : HEAD |
2ba63f475f74b2aa87f9fd9e28a6c5738deb0878 |
|
18-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Fixed "auth input" debug messages.
--HG--
branch : HEAD |
21c1655dbc5fe861a152dc9a8a388d0d64f5ae20 |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Use net_connect_unix_with_retries() instead of duplicating the code everywhere.
--HG--
branch : HEAD |
9f10cc61ec303351b43e54155c86699ef53cb8be |
|
19-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Changed auth_master_user_lookup() API.
--HG--
branch : HEAD |
e5acc283bf030b0b5c79ca4e52d315c516a299fa |
|
16-Oct-2009 |
Pascal Volk <user@localhost.localdomain.org> |
Log debug-level messages with i_debug().
--HG--
branch : HEAD |
9bb91f1dbf7cf8cfbd2df7784101df98d59fb46d |
|
05-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
auth-master lookup: Give better error message on connect() EACCES errors.
--HG--
branch : HEAD |
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75 |
|
31-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Added auth_master_pass_lookup() and changed auth_master_used_lookup() API.
User lookup can now send local/remote IPs and ports to auth process.
--HG--
branch : HEAD |
69d60dcff2614c4bfc8ad59e8fdc09e39c9dd0dc |
|
15-May-2009 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Added auth_master_user_list_count().
--HG--
branch : HEAD |
5c0ab4cc4dff573940df683eb4b23bd6077153fa |
|
15-May-2009 |
Timo Sirainen <tss@iki.fi> |
auth master: Fixed hanging when iterating through users.
--HG--
branch : HEAD |
4b1359bde7d32667197548652a4b4f540062e2ac |
|
15-May-2009 |
Timo Sirainen <tss@iki.fi> |
lib-auth: Added support for iterating through all users.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
52d058e5234181fca90048d5904a151a1ccc8a6b |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
deliver: Allow userdb to change the username.
--HG--
branch : HEAD |
64bfe7b4a42512971db154937905dfa2bdb9cf2c |
|
01-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
auth-master API cleanups.
--HG--
branch : HEAD |
1c6dd898551d7d4d61970b24a8372438f6b72f97 |
|
01-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
auth-master API cleanup.
--HG--
branch : HEAD |
aba994a4e79a020b4748e0ceffc194e5a18e1d1a |
|
01-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Cleanups and fixes to auth-master API.
--HG--
branch : HEAD |
fc71e94957d0c2959a609450a2f303640d681858 |
|
24-Oct-2008 |
Sascha Wilde <wilde@intevation.de> |
New generic userdb lookup api `auth-master' in lib-auth.
--HG--
branch : HEAD |