e42b74025f8d02ee7aa476897a3f44e25bb8fc10 |
|
18-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: passdb-cache - Verify credentials with worker when enabled |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
47a5a7e8296f3b8f2fac9a0659d4de3f2723ba4a |
|
06-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Use PRI* macros and %zu instead of casting |
ef4ca21b9195a2aca07a4965ea2d1d97c850b89a |
|
05-Sep-2017 |
manuel <manuel@mausz.at> |
auth: cache: don't log password mismatch twice
If auth cache is enabled and the last auth was successful dovecot assumes the
password has been changed and invalidates the cache which results in
double logging of the same password mismatch.
This also applies to expired negative cache entries. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
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. |
44cf91b7a701a9b4d9f59a990552eab4f7f64fbc |
|
08-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If auth_stats=yes, send statistics to stats process. |
90cf976e328e093da91a8332d96182201f4ef6c1 |
|
05-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Small code cleanup to auth cache - deduplicate code.
No functional changes. |
5bb7c9863cbb62c41b13e7f42e04f1d57b4634f8 |
|
05-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Minor code cleanup - fix parameter type |
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. |
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> |
6135260095e1704ed6edff9d00bdfc043c11429c |
|
17-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Use special AUTH_SUBSYS_DB/MECH parameters as auth_request_log*() subsystem.
This avoids hardcoded strings all over the place and also allows assigning
the correct passdb/userdb name for log messages generated by generic
passdb/userdb code, which doesn't know exactly where it was called from. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
d31c77e63713a6cf3687a4b38ff8daf6d6c7a3dd |
|
24-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Cache master user logins also. |
ed3c4faf5ddf559818e4a3f7efc0f53f97396227 |
|
22-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Use a common auth_request_log_unknown_user() for logging "unknown user" entries. |
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. |
3c296d819c54e21ce05c3d2eeeedc79be42ac593 |
|
19-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
Use t_strsplit_tab() wherever possible |
31a12066e4cd9310d64091c81b59fb8eb1986023 |
|
21-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: If auth_cache_size is larger than process VSZ limit, log a warning. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
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. |
6cbe2facd40ea3461620571a1c168ce9884be3b3 |
|
04-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Minor code cleanup, use PASSWORD_HIDDEN_STR macro. |
9766c242ba9c5db1e3f375860263c5f14c564d95 |
|
02-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Disable auth caching entirely for master users.
The cache key contains only the master username, without the logged-in username,
so wrong data could be looked up from cache. |
9ed2951bd0bb1878a27437d7c00611b2baadd614 |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Initial support for per-protocol auth settings.
Currently the list of services is hard-coded. This should be changed so that
config lookup returns the service names.
--HG--
branch : HEAD |
145d2eef238ed8bbff635e3b06951a83f0ee5a03 |
|
04-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth_cache_negative_ttl is now also used for password mismatches.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
61618d4c58080570f689614fec204ae14e90cef2 |
|
10-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Added "size" setting type, which supports B/k/M/G/T suffixes.
--HG--
branch : HEAD |
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8 |
|
05-May-2009 |
Mark Washenberger <none@none> |
Renamed headers to prevent collision if they were flattened on an install.
--HG--
branch : HEAD |
4ed1b49d815ec41a5e4b6a23d23e94b958da1923 |
|
21-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Improved logging for "password scheme not available" failures.
--HG--
branch : HEAD |
7dcb5545370faa9d4ff83b3ede65a69fc3dd4b65 |
|
21-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
auth cache: Don't crash if trying to lookup credentials for NULL password.
--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 |
cc0495b3bbe3c3e41c512274b302d6f0fa028187 |
|
18-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Code cleanup: Don't mix up '\0' and NULL.
--HG--
branch : HEAD |
7ace5117d5f2395bd66f20b09e77dac05492f7ce |
|
21-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
auth_debug: Hide passwords from "cache hit" log lines if
auth_debug_passwords=no
--HG--
branch : HEAD |
c2382d49e4ce80160d288fa367f8146a3f85c551 |
|
21-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
auth_debug: Hide passwords from "cache hit" log lines if
auth_debug_passwords=no
--HG--
branch : HEAD |
13e0d3fac480cf63ee0cb1b550748bbc12bd2530 |
|
21-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
auth_debug: Show cache contents in "cache hit" lines.
--HG--
branch : HEAD |
36411feba562ab0b20452e9a71e891a39ec5e3c7 |
|
21-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
auth_debug: Show cache contents in "cache hit" lines.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--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 |
b522f391ef6aa4e527f2eeb5f7daa3da188790b0 |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Added auth_cache_negative_ttl setting.
--HG--
branch : HEAD |
00bde9ae9eab9e720462bf6ec9a4dd85e88c3bbf |
|
10-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Added more debug logging.
--HG--
branch : HEAD |
553308791c097219e8eb31cbd03a29e9e1333848 |
|
16-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Added auth_request_set_fields() and used it instead of duplicating the code
in multiple places.
--HG--
branch : HEAD |
0b47a03ce89751b2c04b03da255ba68b796864a7 |
|
15-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
If looking up credentials for NULL passwords, return "scheme not available"
instead of assert-crashing.
--HG--
branch : HEAD |
24d7c5fc9fa1cb1f49402ec796654113199ba4e6 |
|
14-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
If last login was valid and the current one wasn't, we returned "not found
from cache" but extra_fields still had been modified, which could have
caused crashes later.
--HG--
branch : HEAD |
8759adc67109b5a12a7af3ed717c7040622a0a04 |
|
13-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
auth_cache: Try to handle changing passwords automatically: If password
verification fails, but the last one had succeeded, don't use the cache.
This works only with plaintext auth.
--HG--
branch : HEAD |
6420154390295de70cfd90be8766f2b10f07c1a8 |
|
22-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added auth_debug_passwords setting. If it's not enabled, hide all password
strings from logs.
--HG--
branch : HEAD |
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
deinit, unref, destroy, close, free, etc. functions now take a pointer to
their data pointer, and set it to NULL. This makes double-frees less likely
to cause security holes.
--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 |
0549732db3a80a0821f42648be2666e74f6b35c5 |
|
06-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash if cache key isn't set but cache is enabled.
--HG--
branch : HEAD |
a3dd97fb6d92a89c3de0597fed2d4b044c7aeb84 |
|
16-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Fixes and cleanups to credentials handling. Also fixed auth caching to work
more correctly in case of internal failures.
--HG--
branch : HEAD |
bcf5f1acb2e3891f951fd0848c23b86c35efe7e1 |
|
07-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Added some more verbosity to cache lookups.
--HG--
branch : HEAD |
3ab7783791bd46cdd46e9b9de3e98e8efcb6c6bf |
|
15-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Auth cache wasn't working if password wasn't given (ie. didn't work for
proxying).
--HG--
branch : HEAD |
f6ef1961e6d02c299b418e3c7038a8b664ffffc9 |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash if cache is enabled and we're caching more than just
password.
--HG--
branch : HEAD |
31e7be5e1d41a77f08d26cef46aba1df24b3f1ba |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Try to keep scheme always included in auth_request->passdb_password.
--HG--
branch : HEAD |
615c4aba4cc0b17eefba3263b85972adaba04586 |
|
05-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Added state variable for auth_request and several assertions to make sure
the state is always valid. Fixed assert crash when a user having cached
passdb entry expired tried to authenticate.
--HG--
branch : HEAD |
42061dd44f742de25d0a52ed1ef766a56df421f1 |
|
28-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Fallback to using expired records from auth cache if database lookups fail.
--HG--
branch : HEAD |
e4d34f2fbee451219599d71505594df704093ce3 |
|
26-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Moved cache handling from sql/ldap-specific code to generic auth-request
code. Did some small optimizations on the way.
--HG--
branch : HEAD |
9f431ccfb6932746db56245c8a3d3415717ef545 |
|
12-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
userdb can now return extra parameters to master. Removed special handling
of home/mail wherever possible, they're just regular extra parameters now.
LDAP passdb and static userdb can return extra parameters now.
--HG--
branch : HEAD |
49e513d090753ccbf95560b2f3a21f081a5b6c51 |
|
08-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Added auth_request_log_*().
--HG--
branch : HEAD |
25bfe4176b33935ccdbe94bfe26b181c52318e9d |
|
06-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Cached passwords didn't return scheme correctly. Patch by Andrey Panin.
--HG--
branch : HEAD |
8ef7c24178fd798c3e0301c5b8afa1a9bdedd27f |
|
22-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Don't try to free cache if it doesn't exist.
--HG--
branch : HEAD |
dc9bfb7dc057964238e181d3d8b08751527bb08a |
|
21-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Added simple LRU cache for auth requests. Currently only for sql passdb.
--HG--
branch : HEAD |