4ac2e38bdb450d13b62be41638b12df9e0658009 |
|
20-Sep-2015 |
Stephan Bosch <stephan@rename-it.nl> |
auth: The mechanisms configured using the auth_mechanisms setting were not enforced.
The login service would check whether the mechanism is supported by auth,
but auth performed no such check of its own. This means that any
implemented mechanism was accessible from a login, even though was
presumably disabled. |
ab90f702ceedb7ba445a9a592be0b213b27cbafa |
|
14-Sep-2012 |
Stephan Bosch <stephan@rename-it.nl> |
Added support to perform token-based service process authentication.
Creates hidden SASL method DOVECOT-TOKEN. This method is not available on
the normal auth login socket and thus never presented to clients.
Creates new auth socket type 'tokenlogin'. This otherwise normal login
socket only offers authentication using the DOVECOT-TOKEN mechanism.
Creates new token-login directory in base_dir to separate token logins from
normal logins. This directory is otherwise completely identical to the
normal login dir, i.e. it contains sockets for the service backends, used
to chroot login processes to, etc.
Makes default login socket configurable.
Performs some minor changes to src/login-common to build very sparse
protocols, e.g. avoid the need to implement methods that are not needed. |
50782de8a9d5ebe11ee61496b4e695a1d3875230 |
|
08-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Removed unnecessary auth_request callback and context uses.
--HG--
branch : HEAD |
21c317a20c4c3784b54fb3e90ee3751870afdcc3 |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Moved mechanism list out of struct auth.
It could have been good there, except mechanism list is sent before there's
any knowledge of what type of client is on the other side. Maybe in future
different mechanism list could be given based on the unix socket name.
--HG--
branch : HEAD |
e76073ebaf90fa29abfdc364873acf78983949aa |
|
10-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Added auth failure penalty tracking based on remote IP address.
--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 |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
7242e1ce7803b83bc82e239ef111b47c1c72dd4b |
|
09-Jun-2007 |
Andrey Panin <pazke@donpac.ru> |
Further const'ification of struct mech_module.
--HG--
branch : HEAD |
16f46efe0e090fe6975acf012a61a160f4787985 |
|
22-May-2007 |
Andrey Panin <pazke@donpac.ru> |
Constify struct mech_module.
--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 |
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 |
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 |
70905e51a5148bd5613cb04720807177474a2496 |
|
09-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Changed the way multiple auth processes are handled. It no longer uses a pid
appended to socket name but instead there's a balancer process which
proxies the requests to worker processes.
--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 |
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 |
85c80ced2a2c88a83ab0cdd3886845d860aad2c3 |
|
08-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
When master looked for auth request, it didn't check if the authentication
was yet finished, so auth client could have fooled master by beginning
authentication without finishing it. Login processes didn't allow users to
do this though, so no real problem.
--HG--
branch : HEAD |
63f168d7a6f67842872ebef8d1d3aec3d6b23939 |
|
08-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Requests in failed response queue could still be found from request queue
and destroyed again. This made it possible to crash dovecot-auth by sending
more authentication data than was expected.
--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 |
87cc5e9025e7fb6408f0de64c48d2d2897773ba5 |
|
19-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
s/protocol/service/ in authentication
--HG--
branch : HEAD |
ba90e657bc68a72ab3b3021e2f4a874fac9965ba |
|
18-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Added IMAP and POP3 proxying support.
--HG--
branch : HEAD |
c02a056b724abd6578fb8c4e439de0e94eaea6fe |
|
18-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Authentication OK and FAIL replies can now contain extra fields from passdb.
Implemented this for sql passdb. Special fields are "nologin" (user can't
actually login) and "nodelay" (don't delay failure replies).
--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 |
bef8712387812fc5d9496b9958935c6d0c418777 |
|
10-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Removed Cyrus SASL code completely. It hasn't worked for ages (if ever?) and
there's not much point in having it anyway.
--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 |
3685c7c8ca227960360c720b8bd515801a9e5ad6 |
|
31-May-2004 |
Timo Sirainen <tss@iki.fi> |
Delay reporting failed authentications
--HG--
branch : HEAD |
0373a24e97602b4c394e93a70b75f45e5869fa51 |
|
31-May-2004 |
Timo Sirainen <tss@iki.fi> |
Logging changes. Make sure we don't write control characters to log and also
log IP address.
--HG--
branch : HEAD |
64e244defe74f513ce94f33d000a048ddbe2ea23 |
|
31-May-2004 |
Timo Sirainen <tss@iki.fi> |
Added %l, %r and %P variables and mail_log_prefix setting.
--HG--
branch : HEAD |
d1414c09cf0d58ac983054e2f4e1a1f329272dcf |
|
29-May-2004 |
Timo Sirainen <tss@iki.fi> |
Removed hardcoded mechanism lists. It's now possible to add them
dynamically. Added support for SASL initial response.
--HG--
branch : HEAD |
6d701b8abc45d6d3881ee19ffc6f38b23d35eea5 |
|
29-May-2004 |
Timo Sirainen <tss@iki.fi> |
Don't use hardcoded protocol list for auth process, string is just fine.
--HG--
branch : HEAD |
3b94ff5951db4d4eddb7a80ed4e3f61207202635 |
|
25-May-2004 |
Timo Sirainen <tss@iki.fi> |
Fixed var_expand() to take a table of variables rather than a few predefined
ones. Added support for modifiers.
--HG--
branch : HEAD |
8222ce68120b51353a3b31d3073b5f845d0e9f53 |
|
17-May-2004 |
Timo Sirainen <tss@iki.fi> |
Added ssl_require_client_cert auth-specific setting. Hide
ssl_verify_client_cert from default config file as it's automatically set if
needed and there's not much point in forcing it.
--HG--
branch : HEAD |
bbef8d37812f877525ca57e7ed206094e1efe288 |
|
22-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
fixes
--HG--
branch : HEAD |
68d76bc6de2d923d03955e49d563d6e4629b86bf |
|
22-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Fixed crash if login process connection died while there were some auth
requests.
--HG--
branch : HEAD |
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8 |
|
22-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
--HG--
branch : HEAD |
b7c2065b3f10f9ae27787a9db5aaefbfc70d4502 |
|
08-May-2003 |
Timo Sirainen <tss@iki.fi> |
Added support for ANONYMOUS SASL mechanism.
--HG--
branch : HEAD |
1c38a95332f1945c9806d7d83175a0d948f51291 |
|
02-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
Moved auth_username_chars from db-pgsql to generic for all. Some other
auth code cleanups.
--HG--
branch : HEAD |
20caa6854f0ba83719248a94464a7a24bb7dbd20 |
|
02-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
Added auth_default_realm (based on patch by Kristian Hoffmann)
--HG--
branch : HEAD |
473080c7c0d25ddfdf77e7dfa0ba8f73c6c669d5 |
|
18-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Added default_pass_scheme to LDAP. Support for more password schemes. Merged
password checking code with LDAP and passwd-file, so both support the same
schemes now.
--HG--
branch : HEAD |
345648b341f228bd7f0b89f8aa3ecb9c470d817e |
|
01-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
auth: kill login connection if it leaves requests hanging too long.
--HG--
branch : HEAD |
ffa179f76a2b6f4ef97bd560f65fa9e3e35361b4 |
|
02-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
more fixes
--HG--
branch : HEAD |
7d6389e4053c2dac1fb37180b5756b00785983dc |
|
02-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
auth process fixes, LDAP seems to be working (with the kludge define or
fixed libldap)
--HG--
branch : HEAD |
22535a9e685e29214082878e37a267157044618e |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Async userdb and passdb interface.
--HG--
branch : HEAD |
25757faf029c369a8318349dafe952e2358df1d8 |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
We have now separate "userdb" and "passdb". They aren't tied to each others
in any way, so it's possible to use whatever user database with whatever
password database.
Added "static" userdb, which uses same uid/gid for everyone and generates
home directory from given template. This could be useful with PAM, although
insecure since everyone uses same uid.
Not too well tested, and userdb/passdb API still needs to be changed to
asynchronous for sql/ldap/etc lookups.
--HG--
branch : HEAD |