ace06232cfa0e99ecca1040e8553b3216d025768 |
|
11-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Use mem_equals_timing_safe() for all password hash comparisons.
It's unlikely these could be used to perform timing attacks, since the
attacker would have to have broken MD5/SHA badly enough to be able to
quickly generate string that result in wanted hashes. Still, the extra
cost is almost nothing and it's always better to be super paranoid! |
9625595c47c665f5aee57ebfcb1fcbe9ad1bf3a0 |
|
31-May-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
[LEN] to [static LEN] on some function parameters
Also add STATIC_ARRAY macro to hide it in c++ compilation. |
2d5d7890bd9b282eb1092fc788a2432a6c79a7ad |
|
03-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Replace buffer_get_used_size(buf) with buf->used
Doesn't make any diffence to code generation, but it's somewhat simpler code.
It's also more consistent since most of the code nowadays uses the ->used. |
1b81b28b2e7856748cffd7d01052a944b6c80b23 |
|
25-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Mark memory pools as growing and use the same sizes for all mechanisms.
Mainly to have DEBUG log fewer warnings. |
a8672a757f6f9a610d9bf1e65bd3503904f44f1f |
|
07-May-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Minor code cleanup |
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. |
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 |
50782de8a9d5ebe11ee61496b4e695a1d3875230 |
|
08-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Removed unnecessary auth_request callback and context uses.
--HG--
branch : HEAD |
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 |
7289c5600711b45f30fe289ab5b0293b51d87041 |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Moved some variables generated from settings to struct auth_settings.
--HG--
branch : HEAD |
7bafda1813454621e03615e83d55bccfa7cc56bd |
|
04-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Removed MEMBER() macro. Require C99 style struct initializer.
--HG--
branch : HEAD |
7b4259e30aca35f80a490d0eaa6e7190e129585d |
|
01-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
auth: digest-md5, rpa mechanisms no longer require the realm to be listed in auth_realms.
--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 |
a64adf62fa33f2463a86f990217b0c9078531a40 |
|
28-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for config rewrite.
--HG--
branch : HEAD |
ba8566b02903a4b00a39a611d19f421739a09456 |
|
09-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Code cleanup for specifying what passdb features auth mechanisms need.
--HG--
branch : HEAD |
e065490f54101777ff1b5771499dc24361d5d14d |
|
18-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
RPA auth mechanism: Fixed handling usernames longer than 255 characters.
--HG--
branch : HEAD |
78b995972a317f52dd3228468eef6ed18bffe861 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Allocate auth_realms from auth pool instead of from data stack.
--HG--
branch : HEAD |
648d24583c1574441c4fa0331a90bd4d6e7996c5 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
pool_unref() now takes ** pointer.
--HG--
branch : HEAD |
0f66f12eb4cdbf47670975044c88d8f388bf92df |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed buffer_free() and buffer_free_without_data() APIs to take ** pointer
which is set to NULL instead of hiding it with a macro.
--HG--
branch : HEAD |
b44650b0f48a4b5f0dc240ed836833a00b643b9f |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
All password schemes can now be encoded with base64 or hex. The encoding is
".b64", ".base64" or ".hex" suffix in the scheme, eg. {plain.b64}.
Password scheme verification function can now be set to NULL, in which case
the verification is done by generating a new crypted password from given
plaintext password and comparing it.
--HG--
branch : HEAD |
cbf9ab418bb8f5fb41b15fad82b47b9cd6ee8a6b |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
cleanup: use a bit less magic numbers
--HG--
branch : HEAD |
a8e132559a7ebe54c8269d79ce29fa3338c76199 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Removed enum passdb_credentials. Use scheme strings directly instead. This
makes it possible to implement new mechanisms in plugins.
--HG--
branch : HEAD |
f968e62caa52a8924bd05ebf76ff515b5c18e17b |
|
31-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Reverted accidental commit. This code isn't ready yet.
--HG--
branch : HEAD |
1108376e39a19912e8394e64e19b1bc6f6691cf6 |
|
30-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Moved all storage destruction code to mail-storage.c and made destroy()
optional. Removed set_callbacks(). Made autodetect() optional.
--HG--
branch : HEAD |
ccb77e2f63626ec46e5745ef4f38baa8e8e504fc |
|
26-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Cleanups and minor fixes
--HG--
branch : HEAD |
35136dd2baf8dc30e4e754294ed81ff48e8c1e64 |
|
08-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Added auth_request_set_credentials() to modify credentials in passdb and
implemented it for SQL passdb. Added passdb_need_set_credentials boolean to
mechanisms to indicate that it's required (OTP will need it). Patch by
Andrey Panin.
--HG--
branch : HEAD |
e70d5895795732b8247ab9abb045b438e954bc46 |
|
17-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Added mech_generic_auth_internal() and mech_generic_auth_free() functions
and used them wherever possible to reduce code duplication. Patch by Andrey
Panin.
--HG--
branch : HEAD |
e074ffeaee1ce283bd42f167c6810e3d013f8218 |
|
16-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Relicensed dovecot-auth to MIT.
--HG--
branch : HEAD |
8d6cb44a0161d88743756733f83c4fb278485987 |
|
14-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
While casting const pointers to something else, the const was often
unneededly dropped out in the middle of casts.
--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 |
9426f0585f821606cbf332282a57eea24376a765 |
|
28-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Removed need_passdb from mechanism definitions. passdb_need_plain/credentials is enough to know that. Also give a better error message if no passdbs are set and a mechanism requires passdb.
--HG--
branch : HEAD |
e03ec0b7b9d92551331bc509bcd86920544171d1 |
|
28-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Use a bit larger initial pool sizes
--HG--
branch : HEAD |
0469ed17dafcc56589ce00960a23f4f06817dfb5 |
|
27-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Added GSSAPI support. Patch by Jelmer Vernooij and some fixes by
pod@herald.ox.ac.uk
--HG--
branch : HEAD |
d368b5e0c6ecc4361de943119db898e9c62e5f2c |
|
22-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Grow default auth_request pools to 512 bytes per request.
--HG--
branch : HEAD |
5bcbe269efd7aeb8bf38a16d1e7cdaee1425576b |
|
24-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Proper realm support for RPA. Now RPA will use auth_realms and
auth_default_realm configuration parameters instead of my_hostname variable.
Patch by Andrey Panin.
--HG--
branch : HEAD |
ac3cf88b470320c924965622329930c2c89b8e72 |
|
09-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Realm fixes. Patch by Andrey Panin
--HG--
branch : HEAD |
4ac5448461b63de9637de839fbc611a3d503287c |
|
08-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Another try with API cleanup.
--HG--
branch : HEAD |
78ed6a99e980228a75fa59cff84327dc0ea82857 |
|
08-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
API cleanup
--HG--
branch : HEAD |
49e513d090753ccbf95560b2f3a21f081a5b6c51 |
|
08-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Added auth_request_log_*().
--HG--
branch : HEAD |
1e21e6be70994b1aa9e52ca0e2f51afefca6d0df |
|
08-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Cleanups.
--HG--
branch : HEAD |
97c339398f1aba6f315b55a9b6ee6b020e33bea4 |
|
07-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Reorganized the code to have less global/static variables.
--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 |
517d1e7142d57299c733b30423e35e7e1f8d01d6 |
|
07-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Make FAIL reply contain "temp" parameter if the authentication failed
because of temporary internal error. Also cleaned up the auth code a bit.
--HG--
branch : HEAD |
b97514e470fc4c78f6f1ce4660f1e5aec559c3b4 |
|
29-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Initial response support for NTLM and RPA. Patch by Andrey Panin.
--HG--
branch : HEAD |
87cc5e9025e7fb6408f0de64c48d2d2897773ba5 |
|
19-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
s/protocol/service/ in authentication
--HG--
branch : HEAD |
defc2cef0658ea5abe145111336ecc2274eecdb8 |
|
18-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Didn't work with asynchronous passdb.
--HG--
branch : HEAD |
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0fae |
|
13-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Changed dovecot-auth protocol to ASCII based. Should be easier now to write
replacement server if needed by someone. Also cleaned up/made more
consistent auth code. The new code could still use some cleaning though..
--HG--
branch : HEAD |
4b058f90f9e8a2c6b2eed275de4eb8cc5195a71d |
|
08-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Buffer API change: we no longer support limited sized buffers where
writes past limit wouldn't kill the process. They weren't used hardly
anywhere, they could have hidden bugs and the code for handling them was too
complex.
This also changed base64 and hex-binary APIs.
--HG--
branch : HEAD |
63969c244e8973a61760a98a23b127827d3d652c |
|
15-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fixes and cleanups
--HG--
branch : HEAD |
9abfe876fa81576f130f3f82f622ae936c21a716 |
|
30-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Changed "invalid username" error message.
--HG--
branch : HEAD |
0bca7c45b737daf3890e91a1ab2473ab360e78f1 |
|
28-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Added auth_username_translation setting.
--HG--
branch : HEAD |
a4ac325c2802693c6b761e5a8fda961e5d7490ea |
|
19-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Added Compuserve RPA authentication. Patch by Andrey Panin.
--HG--
branch : HEAD |