af1a6345ab5acbe010882afe4d7963c5a909a647 |
|
18-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Expose auth_request_verify_plain_callback_finish |
1eedfce593fd29b5a5dee8d8ae3d82ab63d99cbf |
|
28-Dec-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Support secured=tls |
ab5c28d0976c4e89d503f1fe9b1568f9a125e176 |
|
05-Dec-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Fix 'Password mismatch' casing consistency |
ef4ca21b9195a2aca07a4965ea2d1d97c850b89a |
|
05-Sep-2017 |
manuel <manuel@mausz.at> |
auth: cache: don't log password mismatch twice
If auth cache is enabled and the last auth was successful dovecot assumes the
password has been changed and invalidates the cache which results in
double logging of the same password mismatch.
This also applies to expired negative cache entries. |
de6c3680d9a3b53749154aafbb6f7b49eb5f5abf |
|
15-Aug-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
auth: Added auth_request_log_login_failure()
New function implementing functionality of auth_request_log_unknown_user() and auth_request_log_password_mismatch() |
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. |
a8dac1be6a0c3adbbce5887ca395f418194c6c06 |
|
19-Mar-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Accept client_id from auth client
Client ID contains the ID client request string
for IMAP. |
865a82c1e9bba11609835a36674964649025bf77 |
|
16-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Auth workers shouldn't return username if it wasn't changed
This continues the previous fix where username was always added to
passdb/userdb cache, even if the username wasn't changed. That could have
resulted in wrongly changing usernames if the cache key didn't uniquely
identify the user. |
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Change string position/length from unsigned int to size_t
Mainly to avoid truncating >4GB strings, which might potentially cause
some security holes. Normally there are other limits, which prevent such
excessive strings from being created in the first place.
I'm sure this didn't find everything. Maybe everything could be found with
compiler warnings. -Wconversion kind of does it, but it gives way too many
unnecessary warnings.
These were mainly found with:
grep " = strlen"
egrep "unsigned int.*(size|len)" |
fe791e96fdf796f7d8997ee0515b163dc5eddd72 |
|
20-Oct-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Pass local_name to auth-request
This allows using local_name in various places,
such as passdb/userdb queries. |
63b557b1c574699eb9793f038984f6fb9520ff6e |
|
11-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Don't re-insert userdb results from auth cache data back to cache.
This was also breaking TTLs for the cached userdb results, because each
re-insert reset the TTL. |
808261fdd43dc0baad079df88043236787461c50 |
|
29-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Added delay_until passdb extra field. |
ef1ff1af5a38ad2b0bc77b3236c4c2d79f2c530f |
|
28-Jun-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth-policy: Hook auth policy to auth code |
203bb272804e4394ae07103cdc8ce67041ba21a1 |
|
28-Jun-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth-policy: Add policy implementation |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
d76a91450e0aa439403b49288e765c5046e2a9a7 |
|
11-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If auth request contains "debug" field, enable auth_debug=yes for the request. |
44cf91b7a701a9b4d9f59a990552eab4f7f64fbc |
|
08-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If auth_stats=yes, send statistics to stats process. |
009217abb57a24a4076092e8e4e165545747839e |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Changed type of internet port values to in_port_t everywhere.
Created special SET_IN_PORT setting type for internet port values.
Created net_str2port() for parsing internet port values.
Removed several atoi() invocations in the process. |
4b7957c5e995f2c1820891d77a292a4886d52a43 |
|
29-May-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Moved var_expand() related code to its own file. |
7d26aee0c0b6c0ce227ef4ae4f20fc86e2c423f2 |
|
17-Jan-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Changed passdb { continue-ok } handling for credentials lookups.
If the last passdb after it doesn't return credentials, use the first
passdb's credentials. This allows implementing plugins that modify the
passdb result without actually changing the credentials. |
fc5f51f1c27e7d3cb2d7b233f43c7b968b983ddb |
|
05-May-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Added %{orig_user}, %{orig_username} and %{orig_domain} variables |
bddb1ba6c9046d35f35cc6d71839bb4baa0879e8 |
|
02-May-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed userdb extra fields handling in passdb failure.
userdb prefetch -flag wasn't correctly set, causing the prefetch userdb in
some situations incorrectly either to be called or not be called.
This also fixes a crash when using userdb static and multiple passdbs. The
userdb_reply was set to NULL, which caused a crash later. |
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. |
bb5464b822f43e826dc6fd4b7a300044accdbd14 |
|
12-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Previous userdb changes caused userdb prefetch to be used always. |
cd75c360f244c96b9ee10e01ee3a66fad13183c8 |
|
08-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Added userdb result_success/failure/tempfail and skip settings, similar to passdb's. |
e3ea9f8db1626f3143665882a0500cfd7f9ab3d2 |
|
02-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Added %{session_pid} variable for userdb lookups in login requests.
session_pid is now always sent to auth process. A new request_auth_token
parameter was added to specify if auth_token should be returned or not. |
d31c77e63713a6cf3687a4b38ff8daf6d6c7a3dd |
|
24-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Cache master user logins also. |
ed3c4faf5ddf559818e4a3f7efc0f53f97396227 |
|
22-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Use a common auth_request_log_unknown_user() for logging "unknown user" entries. |
7a4ba2c60813d20f040a7739c3de348d8bcb80c8 |
|
13-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
Minor change to prevent invalid code changes. |
f2bb07096ed9be01d1b759f9de1a00ecac7008f0 |
|
12-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Added %{domain_first} and %{domain_last} variables.
They are both equal to %d normally, but differ when there are multiple '@'
characters in the domain. |
c87221e8d2e5eb41b29a41abcbf9fefcca5ce37a |
|
12-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
auth: With multiple passdbs the previous passdb's userdb_* fields weren't cleared. |
a138ac12134564b151f00fdef86fba9cd9ba8af0 |
|
12-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
auth: If blocking passdb returned only NULLs for userdb_ fields, use userdb prefetch anyway. |
b4f35fa953a95e4d06fdae54d394095073fcfea0 |
|
10-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
auth: If passdb sql returned only NULLs for userdb_ fields, use userdb prefetch anyway. |
325d17cdbb7a338f7c413788f5e8e42d2e80a7f8 |
|
22-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Added real_[lr]ip, real_[lr]port variables.
The unreal ones differ when a trusted proxy overrides them. |
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. |
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. |
ee6df9526e9716b3f1734d85b566e00fc41208bc |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Code cleanup: Renamed auth-stream to auth-fields. |
2f35a2fbe2c525380487464fad7cf85f16e0dded |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Code cleanup: Merged extra_cache_fields into extra_fields.
They are separated using a hidden-flag in the extra field. This required a
new implementation for auth-streams. |
eb7b8855cc45292334056f425645215e348ec493 |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Code cleanup: Avoid using auth_stream_reply as temporary strings. |
cd5a70b520f84f929e1994a797666f872ec30435 |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Code cleanup: Removed unnecessary userdb_ prefix checks.
The userdb_ fields are nowadays placed to userdb_reply immediately. |
b0e9375a1ff97c9c7d40655922af5ccc73ecaa76 |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Code cleanup: Removed unnecessary auth_stream_reply usage from auth-worker communication. |
bdd36cfdba3ff66d25570a9ff568d69e1eb543cf |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed network.[ch] to net.[ch].
The function prefixes already started with net_ instead of network_.
And icecap wants to use network.h for other purpose. :) |
4bbc8a478be20d0be16e92179fc32327004ebf86 |
|
24-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
ldap auth: Update %variables after each field update.
The previous behavior was a bit confusing. "uid=user" at the beginning
updated the %u variable, but if it was after templates it didn't update it.
Also "=user=%{uid}" that was supposed to be equivalent wasn't. Now the
behavior is consistent across all ways to set the fields. |
e31bf6003e580bcb28af333119da9dd1e16fc811 |
|
02-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Don't add proxy/pass fields when we're only authenticating (not logging in).
For example SMTP server doesn't need these fields when doing SMTP AUTH. |
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. |
39dcbe101c4538ee25d8b196eab30e5f0faa22ee |
|
04-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Added CACHE-FLUSH command to flush some/all users from auth cache. |
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 |
190d84a496d6893ed54fe5bdb9e503285583d13f |
|
16-May-2012 |
Timo Sirainen <tss@iki.fi> |
auth: If user is disabled or password expired, tell about it to auth-client. |
f016dec9837e6a41867708e4b89ca5308dedab05 |
|
28-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Include session ID in log line prefix. |
8783c6a13c6107267d71bcb740fd096e96518883 |
|
23-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fixes. |
f2e7603c5d53b3dda364e93dd926d74d6047cb25 |
|
14-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed auth cache key generation to support %{long} variables |
1294c06fcf841b62b0e40de3388354107c7fc012 |
|
10-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
checkpassword: Escape transferred extra fields properly. |
7d102c66eb1755e1894cf56e3594cd744e855238 |
|
27-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
lib-dns: dns_lookup() returns now the lookup struct, and it can be aborted.
Changed all dns_lookup() users also to abort the lookup when needed
(previously it probably would have just accessed freed memory and crash). |
113fdc66ca01c407b0e3bd604c0857be8647a493 |
|
25-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Added proxy_always extra field.
When used with proxy_maybe, it can be used to redirect "local" users to
local backends via director. |
8ce84ce8565ebac7766ded9dc9492b0fcc029a42 |
|
25-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Added proxy_always extra field.
When used with proxy_maybe, it can be used to redirect "local" users to
local backends via director. |
91233a89f0060f95542ed661683e5d99a50f1778 |
|
25-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Handle proxy_maybe=yes with host=hostname properly. |
8be0af2dd41283fdd250b9a0d8fad28bfe80ca85 |
|
25-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Handle proxy_maybe=yes with host=hostname properly. |
723b179c91478cfacd187d1743a029d103f93547 |
|
23-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
auth: If client gives "final-resp-ok" parameter, send it in OK reply with DIGEST-MD5, SCRAM-SHA-1 |
ab122a3bbae3b5fd2aad66e2f2840149d98cee52 |
|
18-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Don't allow auth clients to set internal auth request fields.
This could have allowed attacker to bypass authentication if login process
was first successfully attacked to allow arbitrary code execution. |
d8702d15ee7721ed1fcfc8f00a589970bd6b3598 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Allow clients to specify that they want to skip auth penalty check.
This is "safe", because the clients specify the IP for the penalty check
anyway. |
3dadeec1ce7a5bf72fbd850658df1db3cedd4416 |
|
28-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Log a warning if ldap attribute has unexpectedly multiple values. |
bc2739c2649a2168c4c47501d014c6dd93f6e74e |
|
02-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
auth: passdb credentials lookup fix when using multiple passdbs.
If at least one passdb returns "user unknown" and the last passdb returns
"credential lookup not supported", the proper return value is still
"user unknown". |
ea95a057fa5f02d50027122cacd3147fce7679fa |
|
30-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Avoid crashing when finishing failed requests that already timed out. |
9d75363d3fbabc2fbc2d80f06672e3ed8965804a |
|
08-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Changed how auth deinitilization works.
--HG--
branch : HEAD |
50782de8a9d5ebe11ee61496b4e695a1d3875230 |
|
08-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Removed unnecessary auth_request callback and context uses.
--HG--
branch : HEAD |
0602c7dee8ceda2d7c7e5723f18c56698ac5a76d |
|
02-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Fixes to destroying pending async userdb requests at deinit.
--HG--
branch : HEAD |
8a8c23ec3de98ef55fd681514587a8c9e082777a |
|
04-May-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Minor code fix/cleanup.
--HG--
branch : HEAD |
401b0787fff2dc986a5321ddb32acb1947ff66b0 |
|
03-May-2010 |
Timo Sirainen <tss@iki.fi> |
auth: If verbose_proctitle=yes, show auth request counts in ps.
- wait: waiting for auth client to do something (either continue multistep
auth mechanism or issue master request for a finished auth)
- passdb: waiting for passdb lookup to finish
- userdb: waiting for userdb lookup to finish
--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 |
48ac75465ae154b1d705f18de6d95045ab714b65 |
|
19-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Don't loop through active requests every 5 seconds, looking for timeouts.
--HG--
branch : HEAD |
c6f894e1522f7b0b6068c228900914073c145175 |
|
26-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Added auth_verbose_passwords = no|plain|sha1.
--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 |
446e518e4fe86ff40e33543445f4e99edf840a21 |
|
21-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
DIGEST-MD5: Fixed authentication with user@domain usernames.
--HG--
branch : HEAD |
430c0b0c370bebeeceba2e206be76bc134742f41 |
|
21-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
auth workers: Return plaintext credentials to parent process if possible, so it gets cached instead of some other scheme.
--HG--
branch : HEAD |
258ff7d4f03dd9d29eca3664e4acacdf7f528234 |
|
23-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Added %k variable to display valid-client-cert status. It expands to "valid" or empty.
--HG--
branch : HEAD |
663499700a1c560def5611e32c9cf18cb81b0a13 |
|
27-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
auth: %m variable didn't work with blocking passdbs
--HG--
branch : HEAD |
226259ee6fb9830dafc1a5ba1e95bf5a4345b406 |
|
08-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Use auth-stream API to build all TAB-delimited strings to make sure strings
are escaped properly where necessary.
--HG--
branch : HEAD |
0fec6dfc23e568bae53f03c9491df7f64473dd67 |
|
06-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
If proxy user has a password and authentication fails, don't return the
proxy fields to client.
--HG--
branch : HEAD |
3d8f3c378de13e32018e2b116f6b67bd69cd28fb |
|
06-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Added "proxy_maybe" field. If it's used instead of "proxy" and the
proxy destination matches the current connection, the user is logged in
normally instead of the login failing with "Proxying loops".
--HG--
branch : HEAD |
d24a5c09373ec890da5736882c1756aa7fa651eb |
|
02-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Auth cache didn't work for usernames that got translated internally.
--HG--
branch : HEAD |
f3ff5f0a60bf30a59ec3c2c2515c8a85b157dc09 |
|
27-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Don't keep master username in original_username.
--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 |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
9c3577aeb78a27920439ad9f1e62ee03699378c3 |
|
03-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Send local/remote ports to dovecot-auth. They're now in %a and %b variables.
--HG--
branch : HEAD |
6fabfb7bbfd88d0c1de66981e52850f26067623b |
|
03-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Changed userdb callback API. Don't require uid/gid to be returned by userdb.
--HG--
branch : HEAD |
7242e1ce7803b83bc82e239ef111b47c1c72dd4b |
|
09-Jun-2007 |
Andrey Panin <pazke@donpac.ru> |
Further const'ification of struct mech_module.
--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 |
fda2c460c58f50bf035680187be606542a8c1dac |
|
11-May-2007 |
Timo Sirainen <tss@iki.fi> |
Changed auth_request->created to last_access and update it a bit more often.
If there are slow authentications this could help avoid removing timeouted
auth requests too early.
--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 |
20230315dc9cd159c41ba76d24557807b6ad5a61 |
|
10-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Added %c variable which expands to "secured" with SSL/TLS/localhost.
--HG--
branch : HEAD |
553308791c097219e8eb31cbd03a29e9e1333848 |
|
16-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Added auth_request_set_fields() and used it instead of duplicating the code
in multiple places.
--HG--
branch : HEAD |
9f82881b46c5b00889dabe945872556660b5d45c |
|
14-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Special extra_fields weren't saved to auth cache. This was especially
problematic for allow_nets which was ignored if the user was already in
cache.
--HG--
branch : HEAD |
c5383a0ed56a188a7d5efaaa4c6f8243af432d65 |
|
21-Dec-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Authentication cache caches now also userdb data. Code by Tommi Saviranta.
--HG--
branch : HEAD |
0f39a57760d93cddbce3ca43096d78e0fe2f42fd |
|
09-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
We treated internal userdb lookup errors as "user unknown" errors. In such
situations this caused deliver to think the user didn't exist and the mail
get bounced.
--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 |
3c9783956dea385b322cd7fa6bf8c98c17a907a0 |
|
31-May-2006 |
Timo Sirainen <tss@iki.fi> |
Escape SQL strings using sql_escape_string(). Fixes the problems with
PostgreSQL.
--HG--
branch : HEAD |
55ff327f2806a10aae4bcc4f5f15d130449ca3e2 |
|
27-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added "allow_nets" extra field. If set, the user can log in only from
within the given networks (hope the code is correct...)
--HG--
branch : HEAD |
06e56a69f41fa7efd131179f2abfeabe825ac25f |
|
24-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Digest-MD5 logins didn't work if passdb changed username.
--HG--
branch : HEAD |
dc8beee89ba9409c1d70ecdfe6ad6b35635b8778 |
|
20-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added comment
--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 |
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 |
939451389b8e0ad529277b84fe51dab38a8cf77c |
|
01-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Added ssl_username_from_cert setting. Not actually tested yet..
--HG--
branch : HEAD |
15e1aa97d4b3d74f58e291e2edaadc2fa1564c43 |
|
24-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
If passdb lookup fails with internal error, try other passdbs anyway before
returning internal failure.
--HG--
branch : HEAD |
137ea7ca34005345aa2304a940149b7f3774d727 |
|
07-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
s/occured/occurred/
--HG--
branch : HEAD |
70c181da837ed85fc5b0426c010b65609bda5329 |
|
26-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
USER auth command requires now service parameter and supports also others
parameters. Fixes a crash in dovecot-auth with deliver+mysql.
--HG--
branch : HEAD |
ad49932dae8ba31e07544b66bbc4f4de707a751c |
|
19-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Allow multiple master connections for a single listener.
--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 |
9398c0935613ba038cf2275ff66c43b25092cfd0 |
|
07-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Handle USER requests from master connections.
--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 |
615c4aba4cc0b17eefba3263b85972adaba04586 |
|
05-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Added state variable for auth_request and several assertions to make sure
the state is always valid. Fixed assert crash when a user having cached
passdb entry expired tried to authenticate.
--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 |
657afb33796f8216c568ad813627da89970760be |
|
09-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Moving code around.
--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 |