268a76700330d159c805c70d1e3eae2e21f1cb9e |
|
27-Apr-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Add username_filter for passdb block
username_filter lets you specify one or more pattern(s) for
including or excluding users. exclusion patterns are denoted
with ! prefix.
if any exclude matches the username, passdb will be skipped.
if any inclusions is specified, and the username does not match
one of them, passdb will be skipped. |
10f6f2224c897fc543973efd2f46b86a3ab1148d |
|
16-Feb-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Add mechanism filter for passdbs |
adea1e1e46ccb4ae107767fd930e3d1fb4f1d11d |
|
01-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Code cleanup - Return void in passdb.set_credentials()
It's an asynchronous function, so the result will be in the callback
parameters. |
1ae87afde32c1ac73909dfacfd59641b470a3e93 |
|
13-Aug-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
auth: remove #define default_cache_key cache_key |
6e5a4cdf7ef123589e2409e0012b1024c97957d5 |
|
11-Jul-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Skip authentication with noauthenticate |
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. |
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. |
04052d7cacaa866a3f00afb4e104fa46c04c1dd7 |
|
30-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Added default_fields and override_fields settings to all passdbs and userdbs. |
be5c76fabc7439fd33bc799bc3ab3f570799977b |
|
16-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth worker: Verify that both client and server see the same passdb/userdb IDs.
--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 |
f3d506e525a720f214020ca0f989a1966b30edae |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Store args in passdb/userdb_module, so init() doesn't need it as parameter.
--HG--
branch : HEAD |
e48d89622047bd8bbd0475b881ca9377d592f535 |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Completely removed struct auth_*db from *db.c
--HG--
branch : HEAD |
849969f639a00eab26791db3cb1b66430420c0cd |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: passdb/userdb backends no longer know about 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 |
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 |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
484e12acec34f16e5a8adc001e23ae48f1dda8c7 |
|
07-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Changed set_credentials() callback to take a bool success instead of
enum passdb_result.
--HG--
branch : HEAD |
43a66a0b16299bd4f7615acd85e98bd3832c54d5 |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Added pass/userdb_register_module() functions and used them to register the
build-in functions instead of having a predefined array.
--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 |
661911ee2ea6b9f3f41650ccf74f3716e189da72 |
|
16-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Changed the default naming for password schemes: HMAC-MD5 -> CRAM-MD5. MD5
-> MD5-CRYPT. The old names still work for backwards compatibility.
--HG--
branch : HEAD |
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785 |
|
12-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Added OTP and S/KEY authentication mechanisms. Patch by Andrey Panin.
--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 |
86bea1f8bffc2d98196f8655eecea9174c4f458a |
|
16-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
If password is expired, give "Password expired" error. Currently works only
with PAM. Also added "unknown user" PAM return value handling.
--HG--
branch : HEAD |
b82474d60c15409eda71c55971710fd3b12b8a0f |
|
23-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
And one more comma removal
--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 |
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 |
25ee72451d16374ed27fdbf829f4ec756c778352 |
|
30-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Added authentication bind support. Patch by J.M. Maurer.
Also cleaned up the LDAP code a bit and made it possible for passdbs to
disable lookup_credentials in runtime.
--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 |
a3dd97fb6d92a89c3de0597fed2d4b044c7aeb84 |
|
16-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Fixes and cleanups to credentials handling. Also fixed auth caching to work
more correctly in case of internal failures.
--HG--
branch : HEAD |
157bce86d0a01477bb8ebd0d380e6b2297f326f7 |
|
24-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Added deny password databases.
--HG--
branch : HEAD |
137ea7ca34005345aa2304a940149b7f3774d727 |
|
07-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
s/occured/occurred/
--HG--
branch : HEAD |
0af3274706d337b2930bd34f0377f2cc2dbcd18a |
|
16-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Non-plaintext blocking passdb authentication wasn't working. Patch by Andrey
Panin.
--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 |
e4d34f2fbee451219599d71505594df704093ce3 |
|
26-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Moved cache handling from sql/ldap-specific code to generic auth-request
code. Did some small optimizations on the way.
--HG--
branch : HEAD |
1e21e6be70994b1aa9e52ca0e2f51afefca6d0df |
|
08-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Cleanups.
--HG--
branch : HEAD |
ba3a54872528db0eae3f36e45592219965b9faf8 |
|
07-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Moved extern userdb/passdb declarations to .c files.
--HG--
branch : HEAD |
97c339398f1aba6f315b55a9b6ee6b020e33bea4 |
|
07-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Reorganized the code to have less global/static variables.
--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 |
1f1e81aab38d833d1c9cdc244c91fd762e0080d4 |
|
06-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Added name variable for userdb_module and passdb_module and changed their
initialization a bit.
--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 |
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0 |
|
16-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Created generic asynchronous SQL API and implemented MySQL and PostgreSQL
drivers. MySQL is implemented synchronously because it's API doesn't provide
async way to do it.
Replaced pgsql and mysql userdb/passdb with generic sql userdb/passdb.
--HG--
branch : HEAD |
08aea01ef9a9d20703e0fcf8618e6195c0037a44 |
|
20-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Added preinit() call to userdb/passdbs, which is called before dropping
privileges. init() is called after. SQL/LDAP now parses the config file in
preinit, but does the actual connecting only in init(). This fixes LDAP
crashing at startup.
--HG--
branch : HEAD |
a4ac325c2802693c6b761e5a8fda961e5d7490ea |
|
19-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Added Compuserve RPA authentication. Patch by Andrey Panin.
--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 |
ac339d4c51420417887bbe1880f9687d8c3b2d4c |
|
18-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Added checkpassword passdb. userdb has only beginnings.
--HG--
branch : HEAD |
d1997e794893ce52fce4d2a0cfa46d2f18e26e67 |
|
10-May-2004 |
Timo Sirainen <tss@iki.fi> |
MySQL authentication patch by Matther Reimer
--HG--
branch : HEAD |
94a78eb438622fa53abef1e1726714dacad4b61c |
|
10-Nov-2003 |
Timo Sirainen <tss@iki.fi> |
CRAM-MD5 mechanism by Joshua Goodall, plus some cleanups.
--HG--
branch : HEAD |
217f3ed9ef654c1f19c505d9acf14ab1e298d707 |
|
29-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
Added bsdauth support, patch by Dan Cross
--HG--
branch : HEAD |
3bbda557c0dfa45edf81c6686807ff199110dbca |
|
07-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Added PostgreSQL support, patch by Alex Howansky
--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 |
e82af44fe25ca9b88210f313548dc08538e4a677 |
|
11-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
passdb ldap added. fixes to userdb ldap.
--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 |