2d8f66596f445dd8b399b7032c3f0e9202015b63 |
|
11-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Moved all passdb/userdb template handling to auth_passdb/userdb.
This is because passdb_find() and userdb_find() attempts to avoid
duplicating passdbs and userdbs when they have identical driver+args.
This deduplication is useful when using multiple protocol { .. } blocks
that duplicate some passdb/userdb backends. For example we might want
to have only a single SQL connection regardless of how the protocol-specific
passdbs and userdbs are being set up. All the default/override_fields and
result_* settings aren't relevant to the passdb/userdb backends, so removing
them will again allow the deduplication to work correctly. |
74674a53a72dab535c61f455b2246ef2797844ea |
|
11-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Moved cache_key from passdb_module to auth_passdb.
This is in preparation for the next changeset, which moves
default/override_fields also to auth_passdb. |
cd75c360f244c96b9ee10e01ee3a66fad13183c8 |
|
08-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Added userdb result_success/failure/tempfail and skip settings, similar to passdb's. |
559f278a4c54d9fa7e0f2e96ebceda30562f9009 |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Added passdb { result_* and skip } settings.
passdb { skip = never | authenticated | unauthenticated } can be used to
skip over a passdb lookup based on previous passdb lookups.
passdb { result_success, result_failure, result_internalfail } can be used
to specify what to do on those conditions. Choices as continue,
continue-ok, continue-fail, return, return-ok, return-fail. The -ok and
-fail variants update the current "success" flag, while continue/return uses
the current flag. The authentication succeeds only if the success flag is
set after the last lookup. The continue variants continue to the next
passdb, while return variants finish the lookup immediately. |
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 |
9d75363d3fbabc2fbc2d80f06672e3ed8965804a |
|
08-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Changed how auth deinitilization works.
--HG--
branch : HEAD |
5d60e31c7b701b606067a20bc88dcc8a6de7bbd6 |
|
19-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed support for per-service auth settings.
--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 |
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 |
cc183a00bb7c5c25683ff06e8bff39a46fe156d3 |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Removed unused pool parameter from struct auth_passdb/auth_userdb.
--HG--
branch : HEAD |
3cf67672fdc87583cb23ce088c95bb5dee60e74d |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Cleaned up struct auth_passdb/auth_userdb.
--HG--
branch : HEAD |
1cc683c5d442a1a3bed5a18c1fb37180cb7ef84b |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: auth_penalty is now a global single instance.
--HG--
branch : HEAD |
1d22eaac93de41319918a1fc6de42bb302e25c1a |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: auth_userdb and auth_passdb no longer has pointer to struct auth.
--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 |
f42581dd841281a4434e5c52488e0eda9716c891 |
|
11-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Connect to anvil-auth-penalty before dropping root privileges.
--HG--
branch : HEAD |
a64adf62fa33f2463a86f990217b0c9078531a40 |
|
28-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for config rewrite.
--HG--
branch : HEAD |
a3b3e5b452be15049a1f8bfd5b3bb640af41121c |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Added auth_failure_delay setting.
--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 |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
69293bd0b4ceb47c7f12c4a01254f4cddf700470 |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Changed plugin handling. We'll just load and call _init() functions for all
plugins in $moduledir/auth/.
--HG--
branch : HEAD |
ee5be4287d37f251f683fd2755eafc02504d527c |
|
27-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Added auth_gssapi_hostname setting.
--HG--
branch : HEAD |
432e34050a431634595b2b4f31597b62ffbddd39 |
|
01-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
Moved the <hidden> string into a macro. Hide the password also from LDAP
replies.
--HG--
branch : HEAD |
fcc55c7332275c51cbbccdb10f51e6421f5c65db |
|
12-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Added auth_username_format setting.
--HG--
branch : HEAD |
21cebe8299b58cff8e622b85fc56fde8764a5e7d |
|
27-Mar-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added auth_master_user_separator setting which allows giving the master username inside the normal username.
--HG--
branch : HEAD |
e4cebadc8dc2e5dafeef8b14510c204f8cb93f5b |
|
24-Mar-2006 |
Timo Sirainen <tss@iki.fi> |
Removed master_no_passdb setting. Added pass setting which can be used to do
the same thing, and other things. Now setting pass=yes to a passdb continues
to next passdb if the lookup succeeded. This allows eg. requiring the user
to be in multiple passdbs, or doing a username conversion before running the
actual userdb, etc.
--HG--
branch : HEAD |
8eb94c5190ba09bb6f6f068eec7bf96750f08d1d |
|
20-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added support for "master users" who can log in as other people. Currently works only with SASL PLAIN authentication by giving it authorization ID string.
--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 |
939451389b8e0ad529277b84fe51dab38a8cf77c |
|
01-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Added ssl_username_from_cert setting. Not actually tested yet..
--HG--
branch : HEAD |
157bce86d0a01477bb8ebd0d380e6b2297f326f7 |
|
24-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Added deny password databases.
--HG--
branch : HEAD |
e9503210d3521a6833ed62dc332fc42ffb0e7a13 |
|
07-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Replaced userdb/passdb settings with blocks so it's possible to give
multiple ones. Plaintext password mechanisms now support handling multiple
passdbs, but others don't yet. Also fixed a few memory leaks.
--HG--
branch : HEAD |
66d2db642fe24d555d113ba463e446b038d476ef |
|
28-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Restructuring of auth code. Balancer auth processes were a bad idea. Usually
the balancer itself took as much CPU as the actual workers because it acted
as a proxy.
Now auth worker means different thing: they're used to execute blocking
passdb and userdb queries. Currently just MySQL (PAM and checkpassword in
TODO).
--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 |
49e513d090753ccbf95560b2f3a21f081a5b6c51 |
|
08-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Added auth_request_log_*().
--HG--
branch : HEAD |
97c339398f1aba6f315b55a9b6ee6b020e33bea4 |
|
07-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Reorganized the code to have less global/static variables.
--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 |
f923659c0e5298263d80622c99f4dc4132b4675b |
|
11-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming change for function typedefs.
--HG--
branch : HEAD |
5c73da5879d783d36849aeb2af23254b587a788b |
|
05-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Initial support for Cyrus SASL 2 library. I couldn't get it to work yet
though :)
--HG--
branch : HEAD |
c0435c854a0e7246373b9752d163095cc4fbe985 |
|
05-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming style changes, finally got tired of most of the typedefs. Also the
previous enum -> macro change reverted so that we don't use the highest bit
anymore, that's incompatible with old indexes so they will be rebuilt.
--HG--
branch : HEAD |
d0e135d5b32855696a9921921315cdb5ba5abc3a |
|
22-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
t_strsplit() returns now const char **, which removes a few nasty casts.
Removed a few unneded functions and did some small cleanups.
--HG--
branch : HEAD |
c8ffea67272a9893d7d03860746371eb2490c255 |
|
20-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Instead of just trusting randomness of authentication cookies between
auth<->master<->login process IPC, master now doesn't accept any cookies
from login process which weren't created by it (identified by PID). When
login process dies, all it's pending cookies are also removed, so I can't
see even a theoretical possiblity anymore for exploited login process to
authenticate as someone else.
Also fixed some int -> unsigned int.
--HG--
branch : HEAD |
1215bc4d7e747846f282cf710e61f3768e69238d |
|
22-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
s/user_data/context/ and some s/Data/Context/
--HG--
branch : HEAD |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |