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! |
23bdbb7b1831785c6ba6df190f6369da882d2b9d |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Require comparisons to be strict boolean expressions
* No implicit integer -> boolean or pointer -> boolean conversions
* !expr can be used only if expr is boolean type
These were checked with a patched clang. It found various actual bugs,
which were fixed by the previous commits. |
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. |
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 |
7bafda1813454621e03615e83d55bccfa7cc56bd |
|
04-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Removed MEMBER() macro. Require C99 style struct initializer.
--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 |
ba8566b02903a4b00a39a611d19f421739a09456 |
|
09-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Code cleanup for specifying what passdb features auth mechanisms need.
--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 |
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 |
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 |
78c471cb3d6467b7bb889330a86912cb8493e0fd |
|
24-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Fixes incorrect error message and adds missing hex_to_binary() return value
check. 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 |
09ea3aa6bc03544a9e712d263f07976255aaaaf0 |
|
11-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
allow LM authentication for older (Win9x) clients
which do not pass NTLM response in type 3 message. fixes
crash in dovecot-auth (empty credentials could be passed to
hex_to_binary function if NTLM2 was negotiated). Patch by Andrey Panin
--HG--
branch : HEAD |
1704aa6b56b6a97bab6e995bcf7170b0c6527291 |
|
22-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
support OEM encoding in NTLM messages. Patch by Andrey Panin.
--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 |
1acbc717de94ed9b08a41705964618c4f01e6e23 |
|
07-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
fix endianness problem, patch by Andrey Panin
--HG--
branch : HEAD |
88c2db95c4a0f8f7986a63cd57cf4b6850d76543 |
|
05-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
NTLM2 authentication support. Patch by Andrey Panin
--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 |
d43c646d4b84635aa795946555be04a553d5413a |
|
30-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Added LANMAN password scheme. Patch by Andrey Panin
--HG--
branch : HEAD |
c7480644202e5451fbed448508ea29a25cffc99c |
|
28-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
NTLM authentication. Patch by Andrey Panin
--HG--
branch : HEAD |