bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
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)" |
9c77606aef2dadad72e1a97f6d820dadb05d1d44 |
|
14-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Don't log errors when cache_key expansion finds unknown %variables |
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. |
3b782d7e82b39c6bc526eeff30d9f1357af1ebe6 |
|
26-Jul-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Fixed caching to support %{passdb} and %{userdb} |
6a6a995b34fbfab76265b9db43a910efef962173 |
|
05-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If auth cache lookup results in expired entry, it should be tracked in stats as a "miss" |
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/' |
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. |
d31c77e63713a6cf3687a4b38ff8daf6d6c7a3dd |
|
24-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Cache master user logins also. |
ac1c78cce5eaa1298e8a302ec592e3a46a9a254d |
|
12-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
auth: When receiving SIGUSR2 log also about current cache usage. |
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. |
678d0463849ba777106eb7875f27db07a5d8e3df |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Hash table API is now (mostly) type safe. |
7536dca18968a279b69c685eedda205bee228fd4 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
hash_table_create(): Removed table_pool parameter.
Every single caller was using default_pool there, so there's no point in
having it. |
7a3d16456e88f49d02dbafb8a646457a9143fc32 |
|
01-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Minor code cleanup |
39dcbe101c4538ee25d8b196eab30e5f0faa22ee |
|
04-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Added CACHE-FLUSH command to flush some/all users from auth cache. |
ca283b86783042541e15cfd17ef253a2ce48aa71 |
|
14-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Make sure auth cache doesn't break if any cache keys have TABs. |
f2e7603c5d53b3dda364e93dd926d74d6047cb25 |
|
14-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed auth cache key generation to support %{long} variables |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
5512d420d826a2f9d4e7cb4e4919e1864fe688b0 |
|
06-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
Use SA_RESTART flag for signals wherever possible.
Only SIGTERM (and SIGINT for standalone programs) shouldn't use it. |
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. |
1e50a4f930a028ab5fcf690503bfd13b54ff6787 |
|
08-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Don't crash if auth_cache_size has a very small value. |
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 |
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8 |
|
05-May-2009 |
Mark Washenberger <none@none> |
Renamed headers to prevent collision if they were flattened on an install.
--HG--
branch : HEAD |
1c7fa51b35231f375998f66d5756f214519218f8 |
|
01-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
lib-signals: Changed callback API to return siginfo_t.
--HG--
branch : HEAD |
20df5a94b36be8e6c2d0e481973cab6715c61bb8 |
|
21-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Sending SIGUSR2 to dovecot-auth now also logs statistics about cache inserts.
--HG--
branch : HEAD |
b229f116305761bc5784cc9c9c47d4498d339263 |
|
07-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Removed extra string escaping from places where it's not necessary (or is even harmful).
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
3ccab0bac68040f179a7de45c516cec258e28fdb |
|
19-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed hash_*() to hash_table_*() to avoid conflicts with OSX's strhash.h
Based on patch by Apple.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
d24a5c09373ec890da5736882c1756aa7fa651eb |
|
02-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Auth cache didn't work for usernames that got translated internally.
--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 |
ba00293b85c7fb4e7a2d100991c716e17b9daaae |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
hash_destroy() and hash_iterate_deinit() now take ** pointer.
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--HG--
branch : HEAD |
b522f391ef6aa4e527f2eeb5f7daa3da188790b0 |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Added auth_cache_negative_ttl setting.
--HG--
branch : HEAD |
814b1e8e301bf58cc03ddf35a380b43c581af4df |
|
15-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
If user is changed with "user=x" in extra_fields, cache the entry with the
original username instead of with the changed username.
--HG--
branch : HEAD |
c5383a0ed56a188a7d5efaaa4c6f8243af432d65 |
|
21-Dec-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Authentication cache caches now also userdb data. Code by Tommi Saviranta.
--HG--
branch : HEAD |
121221dd2970a6f5ec601abb3b1c505c238e0b60 |
|
08-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Add auth_cache_remove() function which will be used by OTP code to evict
old entries from auth cache. Patch by Andrey Panin.
--HG--
branch : HEAD |
3e077925c47a7a18d5f7f266179f5f82862bf81e |
|
15-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
auth cache didn't work properly with multiple passdbs.
--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 |
3c9783956dea385b322cd7fa6bf8c98c17a907a0 |
|
31-May-2006 |
Timo Sirainen <tss@iki.fi> |
Escape SQL strings using sql_escape_string(). Fixes the problems with
PostgreSQL.
--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 |
12a34eb68607d0f8c7c3dc973ee605e89d44ba30 |
|
28-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
cache_key was set wrong for sql/ldap passdbs, so auth_cache was completely
broken with them
--HG--
branch : HEAD |
b321df9603081896b70ec44635af96d674a9839a |
|
16-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Separated passdb_module's interface and the actual data struct. Now it's
possible to have multiple passdbs of same type but with different settings.
--HG--
branch : HEAD |
cdc7e0c3492f8b68699e4d19f0c96ba67f880e48 |
|
07-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash with SIGUSR2 if auth cache hasn't seen any hits
--HG--
branch : HEAD |
321221ddc2dedc4ad79839770765adc40d311a0d |
|
25-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Implemented new signal handling framework, which makes handling signals much
easier.
--HG--
branch : HEAD |
078aac578d08e348836c53939782afb10479def5 |
|
08-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Count cache hits and misses, report them on SIGUSR2.
--HG--
branch : HEAD |
e361b5386c77ee25685b5ad2bd2519a077dea882 |
|
05-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
auth_cache_insert(): Don't remove expired nodes just because they're
expired. Before inserting a node, make sure it doesn't already exist (expired).
--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 |
e80203675151ef9d4f3f850cf02041042eb13096 |
|
07-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Split auth_request* functions from mech.c to auth-request.c
--HG--
branch : HEAD |
ee3cb11d230d549367a1213aefe4598345796256 |
|
15-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Auth cache key was built wrong if any modifiers were used for %vars.
Added var_get_key() function which skips over any modifiers and returns the
actual key.
--HG--
branch : HEAD |
4e21cef121b8ad20439ccbcb4e9072c208f08611 |
|
15-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
When building cache key, use each %key only once, more wastes only memory.
This was mostly needed for more complex SQL queries where same key could be
used multiple times.
--HG--
branch : HEAD |
234ae614898aa93ebed13435d088c7c7c6335810 |
|
06-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
print info about cache clearing
--HG--
branch : HEAD |
019a610a5ce14a80f6b017f94829933664879021 |
|
06-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
SIGHUP now clears cache.
--HG--
branch : HEAD |
5d2e422f9971ca9f0ad77508c1e7c315546e2765 |
|
05-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
ef95f34bc41287eb9fd2cea42ddce648d02d5a39 |
|
01-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
memory leak fixes
--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 |