bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
0f5dc4da3982053036be65190e44bf28a67b1ca2 |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: API change - var_expand*() now returns error string.
This allows callers to fail properly if the format string is invalid. |
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. |
749b9176d6d1da2f0cbdeea5377ff7a8c77fc7e3 |
|
10-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Removed redundant noauthenticate checks.
Now that noauthenticate also adds nopassword field. |
bb2b3656ef7635acc374f7fc19b25aeeb454ae95 |
|
17-Jul-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-sql: Added error_type to commit callback. |
6e5a4cdf7ef123589e2409e0012b1024c97957d5 |
|
11-Jul-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Skip authentication with noauthenticate |
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. |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
38ceb710e2bc957a66a75c68957cb87746682a75 |
|
29-May-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Added %{passdb:field} and %{userdb:field} variables
The field expands to either the passdb or userdb extra field.
You can also use %{passdb:field:defaultvalue} where if field doesn't exist,
it's expanded to defaultvalue. Note that an empty value means that the field
still exists and it's not expanded to defaultvalue. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
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. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
ed3c4faf5ddf559818e4a3f7efc0f53f97396227 |
|
22-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Use a common auth_request_log_unknown_user() for logging "unknown user" entries. |
b4f35fa953a95e4d06fdae54d394095073fcfea0 |
|
10-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
auth: If passdb sql returned only NULLs for userdb_ fields, use userdb prefetch anyway. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
31633d676642b83305b8d46da495d9bb4e2d1ff8 |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Cleaned up flags in auth request. Removed those that already exist in extra_fields.
It's now slightly slower to check for those flags in extra_fields, but it's
going to be easier to make commit/rollback feature to extra_fields. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8 |
|
19-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Throttle SQL auth worker process creation if they can't connect to database. |
e665999b757e60bfb98e5a84a78b05f061453140 |
|
18-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Log a warning if userdb sql isn't used, but user_query or iterate_query isn't default.
This is intended to stop people from wondering why user_query doesn't do
anything. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
dc8ba4890b74bde400e0feef96114940129ab181 |
|
02-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
sql auth: Fixed using password_noscheme |
48010d123abfac8cb19f33f1fe12f33a7090089e |
|
21-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
auth: If built-in SQL query fails, log it clearly that it was using built-in one. |
a9c8c1f74e5d2911d3c15657727a30b649d3bbc4 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Removed dead code.
--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 |
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 |
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 |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--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 |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
d5abbb932a0a598f002da39a8b3326643b1b5efc |
|
24-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Separate "unknown passdb/userdb X" and "support for X not compiled in" error messages.
--HG--
branch : HEAD |
5af8ea0a24c5930a8e310ebc4f33fba1d084217c |
|
02-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
"Empty password returned without no_password" message -> "nopassword".
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--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 |
1e7252421b9c85b898fef7e75bd6422ef1f046e4 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Empty password doesn't anymore allow user to log in with any password,
unless nopassword extra field is also set.
--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 |
2cfe9983ce7a6280636ee12beccc2e865111967b |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Replaced void *context from a lot of callbacks with the actual context
type. Also added/fixed some context type checks.
--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 |
17e09bf093bf968f383a90c559399656dffafe73 |
|
02-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Non-plaintext authentication didn't work with sql as passdb. Cleaned up the
same code for LDAP also.
--HG--
branch : HEAD |
3c9783956dea385b322cd7fa6bf8c98c17a907a0 |
|
31-May-2006 |
Timo Sirainen <tss@iki.fi> |
Escape SQL strings using sql_escape_string(). Fixes the problems with
PostgreSQL.
--HG--
branch : HEAD |
fd155bdee5f05bb32ee608551ee49c94c2656fe6 |
|
14-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Check that we don't pass around key=value pairs with empty keys.
--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 |
12a34eb68607d0f8c7c3dc973ee605e89d44ba30 |
|
28-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
cache_key was set wrong for sql/ldap passdbs, so auth_cache was completely
broken with them
--HG--
branch : HEAD |
ce89e2964b6bc4925d2dd690417200a110d041c5 |
|
19-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
If passdb returned NULL password (ie. no password needed), it wasn't cached
correctly.
--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 |
2fbc2a7c65d30e46803195ebb4547176b85c22c7 |
|
12-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Removed direct config.h including. I'm not sure why it was done before,
probably to reduce compile times a few milliseconds. Ugly anyway..
--HG--
branch : HEAD |
f8a86fdfb0048f9c87bf223373b35416ceb5856b |
|
09-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Don't connect to SQL database in main dovecot-auth process if we're using
workers to do it.
--HG--
branch : HEAD |
2a392350211c45fb7d2b6d89bb1f81c9186d870e |
|
21-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Allow password field to be NULL. Needed with proxies.
--HG--
branch : HEAD |
368fc39f2712bd2ff4db0219d85e63225132511f |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash if password lookup failed.
--HG--
branch : HEAD |
31e7be5e1d41a77f08d26cef46aba1df24b3f1ba |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Try to keep scheme always included in auth_request->passdb_password.
--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 |
9f431ccfb6932746db56245c8a3d3415717ef545 |
|
12-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
userdb can now return extra parameters to master. Removed special handling
of home/mail wherever possible, they're just regular extra parameters now.
LDAP passdb and static userdb can return extra parameters now.
--HG--
branch : HEAD |
fd64760dc8b2f8586b9fb91b0458389b4e625d46 |
|
07-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Fixes credentials retrieving from sql passdb. Patch by Andrey Panin.
--HG--
branch : HEAD |
49e513d090753ccbf95560b2f3a21f081a5b6c51 |
|
08-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Added auth_request_log_*().
--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 |
a7bee3930831a9261fa6180d02af29c484d862e9 |
|
06-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Added authentication debugging logging.
--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 |
9c93e2e3e35bff1bddbe59cef7be296aa24bd79d |
|
01-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Fixed memory leaks.
--HG--
branch : HEAD |
6620e0259ec2cb2e45a04724079d1f0fd5a0b258 |
|
22-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Make it more clear that password query must return a "password" named field.
--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 |
4042b17026279498eb37922ee3316a50144c51a4 |
|
18-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Don't require boolean flags to be 'Y' for yes, only to be non-NULL.
--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 |
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 |