2c875b7fd8754c9a1bd811d1fd349c76c099e342 |
|
11-Feb-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Set correct context type when bypassing reporting in auth_success
Broken in 41ff6e6a4a085786d4c15a58c7c50a28e2110c3f |
41ff6e6a4a085786d4c15a58c7c50a28e2110c3f |
|
07-Feb-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Add policy check configuration options
Allows disabling before/after auth checks, or reporting. |
e42b74025f8d02ee7aa476897a3f44e25bb8fc10 |
|
18-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: passdb-cache - Verify credentials with worker when enabled |
af1a6345ab5acbe010882afe4d7963c5a909a647 |
|
18-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Expose auth_request_verify_plain_callback_finish |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
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 |
6699d5ab6a1e6366226fff755dc5f6e34ccee8b4 |
|
05-Dec-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Fix auth_request_is_disabled_master_user
I assumed that lack of passdb means master authentication,
but e.g. gssapi does not require a passdb. Instead, check
that if requested_login_uset is non-null then check passdb is
non-null too.
Fixes auth: Panic: file auth-request.c: line 716 (auth_request_is_disabled_master_user): assertion failed: (request->requested_login_user != NULL) |
605c40c77fc3851cb2845da1c5319e32c791592a |
|
02-Oct-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
auth: global rounds parameter replaced with argument to password_generate()
username and rounds parameter moved to a single
password_generate_params structure. |
0d1b8b6bec79746c5d89d57dd8c1688946bd9237 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on timeout_remove(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- timeout_remove(&E);
- }
+ timeout_remove(&E); |
191153d1a5b0eb0c129139570e3aa5212f28d2ac |
|
18-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: use i_rand_limit() and i_rand_minmax() when possible |
dbe43c872305a349542563fc08f25d6a0cceb46e |
|
08-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Avoid DNS lookup for "host" if passdb returns also "hostip" |
62461eb609e1d852e027cf4e07d30d51288678a2 |
|
07-Sep-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Replace rand with i_rand |
d2845370fa36ecf56f7abc7f93acafe456cca888 |
|
06-Sep-2017 |
Manuel Mausz <manuel@mausz.at> |
auth: Rename overlooked "original_username" after c3e50b
In c3e50b854dec3f9a51dbaecf2ee56197125a003f "original_username" field got renamed to "original-username". |
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. |
bd18d17a3da7c96a027d784183e9a98b1b666bad |
|
15-Aug-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
auth: auth_request_log_unknown_user() to call common auth_request_log_login_failure()
Separate implementation of auth_request_log_unknown_user() is
replaced with call to auth_request_log_login_failure()
NOTE: behavior of the auth_request_log_unknown_user() is changed and
is in line with auth_request_log_password_mismatch() |
3742e38a171fdb4f3de0907523214873545bf63a |
|
15-Aug-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
auth: auth_request_log_password_mismatch() to call common auth_request_log_login_failure()
Separate implementation of auth_request_log_password_mismatch() is
replaced with call to auth_request_log_login_failure() |
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() |
0ce76629d27427c4c643fb2c40d37adc13ff127c |
|
30-May-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Don't lose all forward_ fields if the first passdb lookup fails. |
8df38b03aa84198e9e78c7ccfe63fcb445fa8058 |
|
30-May-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Fix crash on passdb lookup when all passdbs were skipped
Finishes the fix in 614f5b6febaf3c825f9200ab3b62d9d047197b0e
Fixes:
auth: Panic: file auth-request.c: line 2493 (get_log_prefix): assertion failed: (auth_request->mech != NULL) |
614f5b6febaf3c825f9200ab3b62d9d047197b0e |
|
09-May-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Do not use AUTH_SUBSYS_MECH in logging when request->mech is NULL
This can happen when a lookup is done instead of authentication.
Fixes auth: Panic: file auth-request.c: line 2560 (get_log_prefix): assertion failed: (auth_request->mech != NULL) |
53e2b69540899db0883a7980c4609c36591d9c88 |
|
27-Apr-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Log reason for skipping passdb |
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. |
2b7fbe3badf96da1491293db7322da42cc27fad9 |
|
27-Apr-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Use MECH subsystem when logging error about skipping all password databases
Otherwise it will assert-crash because all password databases were skipped. |
061b11b93cc5b04cc6b3818246bf76f705a7ac4f |
|
11-Apr-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Filter passdbs on credentials lookup start
Consistency with how plain verify works. |
ba942a16b03f5b7fc373b6b20dcf97436960639f |
|
11-Apr-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Fix mechanism filter to support `none`
Otherwise credentials lookup can fail. None indicates
that it should match when no mech is specified. |
d56b6dfe677ce154f94034ced1220d23e30bef2e |
|
29-Mar-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Do not cache username unless it was changed by lookup
This could've caused usernames to be unexpectedly changed
because they were cached by a lookup that did not include
username in the cache key. |
257111a99add076b74612b5f0b4158efa0d84450 |
|
29-Mar-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Mark username changed if it's changes in auth_request_try_update_username
It was forgotten in by 865a82c1 |
53f97800b16ab3a8d263c5331132dec1e8fea9a0 |
|
19-Mar-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Accept forward_fields from auth client |
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. |
9fedd371d33808d0b62c8f3c6dae007046b66b67 |
|
06-Mar-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Apply skips to first passdb
This is required to apply filters to first
passdb, so that mechanism filters can be
applied. |
10f6f2224c897fc543973efd2f46b86a3ab1148d |
|
16-Feb-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Add mechanism filter for passdbs |
2f2b1b725860bfef7c796b0aaa1a647ac538124f |
|
06-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Handle delayed credentials identically in auth-workers |
ea7f7e1a7f428aff99404d68f989b8accc5d7c8a |
|
05-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Pass through passdb extra fields to auth-worker requests |
90e417d32e964691781c9b6423ab2966f4e48cf5 |
|
05-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Code cleanup - Move userdb extra fields exporting to its own function |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
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)" |
dec95fbca4f662fa0f2b480f175679116e33fafa |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Fixes to previous var_expand() change. |
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. |
4b50a16fa242eea52254a6cd02982174b9819c83 |
|
01-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If uidgid_file doesn't exist, fail the userdb lookup. |
026d971be5201aed5ccf60138900770e42cf0de5 |
|
27-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth-worker: Fix potential crash when importing passdb/userdb fields without value.
These were being converted to NULL values in auth-worker, while elsewhere they were
converted to "". Changed to "" here as well and added asserts to make sure they
won't happen again.
Most of the NULL values would have been fine, but overriding any IP/port
fields would have caused a crash when trying to parse the value. |
2c96c5156117a830f497bdd41518816242944920 |
|
28-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Fix crash when exporting passdb fields to auth-worker that have NULL values |
0b808b62a679c81f59958392507fd0f6b5bd4e34 |
|
20-Oct-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Escape local_name |
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. |
3bfdab77880db25dbdc8bf48c2cfc2d50b98e426 |
|
12-Oct-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Pass userdb fields to worker
If this is not done, then those userdb handlers
that need access to userdb variables for e.g.
interpolation, cannot access them. |
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. |
3c30113d275819d3ec946e327401241b8d2797db |
|
13-Sep-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Make sure auth_request_log_info() doesn't crash when there are no passdbs
auth_request_is_disabled_master_user() could have caused such crash. |
5965eaa2d972e6264cecaf54091cd43019bc7d1f |
|
23-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Added uchar_empty_ptr and use it instead of &uchar_nul.
This makes Coverity happier about not treating a char as an array.
For now this is a pointer to a 0, but could as well become a pointer
that crashes if dereferenced. Shouldn't be NULL anyway because clang's
-fsanitize=nonnull-attribute will complain about them. |
749b9176d6d1da2f0cbdeea5377ff7a8c77fc7e3 |
|
10-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Removed redundant noauthenticate checks.
Now that noauthenticate also adds nopassword field. |
91272432ce97ebe9dbffa40c7dece4451bfcb65c |
|
10-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: When setting noauthenticate=yes, also set nopassword=yes
There are various places which check only "nopassword", but not
"noauthenticate". |
6c969ac21a43cc10ee1f1a91a4f39e4864c886cb |
|
15-Jul-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Remove i_assert for credentials scheme |
e84ffebc21ecef6a3ba61a59fa86437b4ea71a46 |
|
11-Jul-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Fail request if last passdb is noauthenticate |
6e5a4cdf7ef123589e2409e0012b1024c97957d5 |
|
11-Jul-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Skip authentication with noauthenticate |
77bb5db43a68b0058590546a3a52f0a8f35b2458 |
|
29-Jun-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth-request: Whitespace fix |
7d7a97e8899eb7366a9c7f03a161be0ab5db0dd1 |
|
29-Jun-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth-request: Correctly allocate mech_password and credentials_scheme |
4df7af0da07e7321187c1748d7cc5531d5ffad07 |
|
29-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: delay_until can optionally now have +<max random secs> suffix. |
2fa0de8e558ce3380bfb9021d607b2ca6a9d0573 |
|
29-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Fixed checking if delay_until is too large |
808261fdd43dc0baad079df88043236787461c50 |
|
29-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Added delay_until passdb extra field. |
f000a3cda907a489ce643f9bea9b1dcefd4961eb |
|
29-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Fixed plaintext authentication when auth policy was already processed.
Broken by e82511362. |
f43d65df4f410ecc21676d402516d2e63c1b2819 |
|
29-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Added ":remove" suffix for passdb/userdb extra fields to remove fields. |
e82511362eb29f75fd940bb3377589c62fb2984a |
|
29-Jun-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth-policy: Do not do policy checks every time |
ecbc1c76e469e2a9a14e71da59c48b82ab04cde6 |
|
29-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Finish policy.[ch] renaming.. |
ef1ff1af5a38ad2b0bc77b3236c4c2d79f2c530f |
|
28-Jun-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth-policy: Hook auth policy to auth code |
efdaf9393742367a0d563a9cab3c9c4b6371e90d |
|
29-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Fixed final result in multiple userdbs
We don't want to return the last result's success/failure, but
the entire userdb chain's success/failure. |
d0f0b5553aea9013b55ead4841aa81d3e415132d |
|
29-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Session ID wasn't exported to auth workers.
Most importantly this means that log messages didn't contain them. |
b484ab4b55b0d5341f2f4dd98a655a75f0bf1275 |
|
19-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Added passdb/userdb { auth_verbose } setting.
If this is explicitly set to yes or no, it overrides the global auth_verbose
setting. However, auth_debug=yes overrides all of the auth_verbose settings. |
090c9c266842db622cd064906b39eeef0207742f |
|
24-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If user is unknown and there are more passdbs/userdb, log about it. |
d76a91450e0aa439403b49288e765c5046e2a9a7 |
|
11-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If auth request contains "debug" field, enable auth_debug=yes for the request. |
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. |
c43657912c36091d1c8ca9e6cb1feb7d1150130e |
|
10-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Added "fail" parameter, which fails the passdb lookup. |
61c2b28eb0b486f5be82db05a7059563224bb003 |
|
10-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Don't revert any previous failed=TRUE status if allow_nets check succeeds |
44cf91b7a701a9b4d9f59a990552eab4f7f64fbc |
|
08-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If auth_stats=yes, send statistics to stats process. |
b23317e6678eb8fb23a8761b89ef8ec02d584511 |
|
23-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Apply override_fields to userdb also when continuing to the next userdb. |
cc4723ad7ffe683b36d8c14d7ce3c89b6bf25bd6 |
|
23-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If userdb result was found from cache, its result_* rules were ignored. |
e150cd7c821e8fba72a49615e22fd9e2a4302c82 |
|
23-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Apply passdb/userdb { override_fields } only after caching
Now they're not be unnecessarily saved to cache to waste memory. More
importantly they will always override the cached fields, which is required
for %variables to work. |
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/' |
e7ff41f105ef1e7577ff0fa34554478e95efd0d4 |
|
05-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Fixed allow_nets=local to work correctly with non-local remote IP |
f53a1b98d6792a3aa28474fca0901b1de035f8ba |
|
04-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If allow_nets has an invalid value, don't attempt to compare it anymore.
This fixes a potential crash because net_is_in_network() was called with
garbage net_ip. |
d3b2c07f93399cdeceb35f99c5006d72fe9381bd |
|
29-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Avoid a crash by not trying to save empty delayed credentials. |
0401fa677246fc79ff5f17cb626c3d41adf3272b |
|
27-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
auth: nopassword field is specific to a single passdb, remove before next passdb is processed |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
ab0eb4b10d25bd74cc2058ffb2a08fa10919519a |
|
22-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
auth: Remove redundant if |
d1d04674fb0906d0895ae0f958f4cdbe487aa8ab |
|
07-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
auth: If userdb lookup was found from auth cache, don't clear the earlier userdb fields. |
2373c8449902a2a6bd6603ccbdb3f5c3badc7b21 |
|
07-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
auth: If multiple userdbs are used, default_fields was ignored for all but the first one. |
8affeb8ace3c979dd2635fd03db0e0ec291d3f14 |
|
07-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed passdb skip_password_check / result_success=continue-fail handling
If passdb returned success, but result_success=continue-fail, it means that
the authentication didn't succeed. So we still want to check the password
again and in general treat the request as unauthenticated (especially for
the passdb { skip } setting).
So the current logic means that there are 2 ways for the request to be
treated as authenticated and skipping any password checking:
1) passdb lookup succeeding, with result_success=continue, continue-ok,
return or return-ok
2) passdb lookup not succeeding, with result_failure=continue-ok or
return-ok
It's a bit questionable though if 2) should be allowed. |
1310fa409770e8861c8708498e45e00fa581e3e1 |
|
07-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Aborting auth request didn't abort a pending proxy DNS lookup. |
ecc01266b8eaf4cc9a034ef6a507ab5851c121ea |
|
31-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Added ":protected" suffix to passdb and userdb field names.
This means that if the field is set only if it hasn't already been set.
Usually an earlier passdb/userdb would have set the field and this is
setting a default (e.g. per-user settings override per-domain settings). |
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. |
1cd595423d8bd54a22c376ee3db5c2f50a96f462 |
|
17-Jun-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Added allow_real_nets setting.
The difference to allow_nets is that it matches against the connection's
"real IP" rather than what the connection told was the original client's IP
address (%{rip} vs %{real_rip}) |
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. |
4b7957c5e995f2c1820891d77a292a4886d52a43 |
|
29-May-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Moved var_expand() related code to its own file. |
e9b69732e4c5126aa840e4bd4e9523aa0b6c7dea |
|
23-May-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Don't crash if trying to add password with TAB or LF to auth cache.
This would happen only if the passwords were stored as plaintext in passdb
and the valid password actually contained TAB or LF. |
917b4e1a9e1f06124f47d0de9c0a060b23e9c0e9 |
|
05-May-2015 |
Timo Sirainen <tss@iki.fi> |
auth: If passdb has non-matching allow_nets, don't fail the other passdb lookups also.
We might want to use e.g.:
passdb {
driver = static
args = password=secretmasterpass allow_nets=10.1.2.3
}
passdb {
...
}
If allow_nets didn't match in the first passdb, we should just ignore it and
continue to the next passdb. |
0dc72981f5286d60ca9233f6ac7c444d393d24fb |
|
29-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
director: Implemented director_proxy_maybe passdb extra field.
This allows running director and backend in the same Dovecot instance. It
was implemented into director instead of login-common to allow doveadm and
lmtp proxying to work as well (although currently lmtp can't handle mixed
proxying and non-proxying destinations, which makes this a bit less useful). |
51d7baa054bf6e833ef2b2fc198ee4ab0974ebb7 |
|
23-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Don't assert-crash if master user login attempts to use empty login username. |
b523ce63267bbe4b7f2546282a3f3703aa3c8c39 |
|
13-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
auth: If passdb/userdb changes the username, add the changed username also to the cache. |
87c4b775093deae29289c5a881aa7cd3a082b8f4 |
|
13-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Setting userdb fields from cache didn't set handle any special fields.
The special fields were relatively rarely used though. |
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. |
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> |
6af1407463e08e48819d9b3ded733dca05834ea7 |
|
17-Dec-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Don't crash if master user login is attempted without master=yes passdbs |
ba342e38a3daa06cb66d191309ec4f2e3a16ace3 |
|
05-Dec-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Don't allow changing username to an empty string.
This is most likely always accidental and Dovecot in general hasn't been
designed to support empty usernames. |
42e23ab53a1921ca87a73bbe4abaebf51da5b3aa |
|
25-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
auth: allow_nets=local matches now connections without any IP address |
d4f80a4e2c18278cd64dfe02c13610dbaba48873 |
|
14-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Minor fix to previous commit. |
1323ac1fde7748dcdc446bd37957f44cd4575e19 |
|
14-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Check for empty username after doing all the username changes. |
1b81b28b2e7856748cffd7d01052a944b6c80b23 |
|
25-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Mark memory pools as growing and use the same sizes for all mechanisms.
Mainly to have DEBUG log fewer warnings. |
e86708178df2b0bd00229eefc0f6e1ea5da3c460 |
|
15-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Internal passdb failures were always failing the request even if another passdb succeeded later. |
b43bbd39227c4391d334f04e85644dabb3ce5d68 |
|
15-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed wrong assert added by recent commit. |
d65adb971c136dad49514da98e57c0ae7f593cd4 |
|
13-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed handling userdb_userdb_import passdb extra field.
Looks like some hg merging went wrong.
Found by Coverity |
48325adac125d7ff275ec69b05b7a92be9637630 |
|
13-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
Added various asserts to try to silence Coverity false positives. |
48b28b91852a975a495a6fe82f5db5b35333500a |
|
12-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Invalid userdb passwd-file and userdb templates may have caused crashes.
Using just "key" parameter instead of "key=value" usually worked, but for
some keys the code assumed that there was a value and it dereferenced NULL.
We'll solve this by just using value="" instead of value=NULL.
Found by Coverity |
cc363c8f58762793b4f1949de94fc88c6baeff2f |
|
27-May-2014 |
Phil Carmody <phil@dovecot.fi> |
auth: set_credentials callback being passed an enum, not a bool
This changes the behaviour, as the error case is now mapped onto FALSE.
All non-zero values of course get squashed into true. Found by sparse.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
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. |
544a727de8ab0e6c55cab18a7ee475fffdf5eff3 |
|
17-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
auth: If passdb/userdb has a name, use it for the log prefix instead of the driver name. |
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. |
30fe81ba51567dcdcc35abe4edc722191820f409 |
|
18-Mar-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Added login_user extra field to change the username in master passdb. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
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. |
f6f302e49ed0df9b07f020f462b24def023ba7aa |
|
26-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed crash with auth_verbose_passwords!=no and non-plaintext auth |
a3e719eb9ced56bb9abbe291af95ac87fa36bbc8 |
|
26-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed assert-crash with auth_verbose_passwords!=no and 32bit systems.
t_strndup() assert-crashed with size=UINT_MAX parameter. |
d31c77e63713a6cf3687a4b38ff8daf6d6c7a3dd |
|
24-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Cache master user logins also. |
4addfd26372c6ae32ec93252696d86fd32081327 |
|
08-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Added ability to truncate values logged by auth_verbose_passwords. |
780f1d9a6a884d4d5f2931a3ff3a48a056d8db74 |
|
22-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
auth: If auth_verbose_passwords is set, log the password also for unknown users. |
ed3c4faf5ddf559818e4a3f7efc0f53f97396227 |
|
22-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Use a common auth_request_log_unknown_user() for logging "unknown user" entries. |
1c1ded8e94004fb04abc17db4747ad253c14d23c |
|
06-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Removed unnecessary NULL check. |
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. |
91a58087aa77d102ede3960fe99f78afe42d09eb |
|
06-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
net_ip2addr() changed to return "" instead of NULL on failure.
Pretty much everything in the code assumed that it would never fail, which
it normally doesn't except if the ip_addr was created for UNIX sockets. |
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. |
6604370500e3fc348555fdcf7b088a4cc0fb05b7 |
|
07-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Don't crash in non-plaintext auth if master user login is tried without master passdbs. |
2e97f876097e73f082db61c6edeafa536a6f2734 |
|
30-May-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed error handling for proxy host dns_lookup() |
30cca82f3c2136395ff16e698b4f0af9c557887b |
|
28-May-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Keep auth_request referenced during DNS lookup.
If the underlying auth connection gets closed, there's nothing else
referencing the auth_request. |
7606d44ea3d7a324ee80805a6ceccbad0e1d461e |
|
28-May-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed caching empty userdb result. |
a6a9e537d808b9a05e1f535907079713b63e1df9 |
|
16-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed multiple master passdbs. |
82315b27e47c43fe5a699af9df6aa32f1848a37e |
|
04-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
auth: If passdb wasn't used, don't preserve its extra fields in auth request. |
4307e3a2320dabbac53ad712790ffd250d527108 |
|
31-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
auth: nodelay and nopassword fields weren't handled correctly. |
1fa2054fba1012742cb327aaa3edb8e74e896d7a |
|
31-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Implemented userdb_import and userdb_userdb_import fields. |
f96f042e48e88ca9450f5fa3498405184034ce05 |
|
31-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed passdb_import not to crash when =value isn't given. |
0fbf1f84f4b1a51771812eea0a68fbc2440569a2 |
|
31-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Renamed userdb_userdb_import to passdb_import, since that's what it really is. |
6ca88ca580187da2eb7a26308f1d471921318e7a |
|
31-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Allow using userdb_userdb_import in passdb query to set multiple userdb fields. |
1df1abcfee5bdca3cc32a19fd5436b72d95a9650 |
|
22-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Use real_lip for proxy_maybe checks. |
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. |
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. |
3bdc09026fdb0ddf4b085e47ae188eaa1b2308bd |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Removed assert-checks, allowing plugins to set skip_password_check. |
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. |
c3e50b854dec3f9a51dbaecf2ee56197125a003f |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Code cleanup: Renamed some fields used in internal communication with worker. |
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. |
b0e9375a1ff97c9c7d40655922af5ccc73ecaa76 |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Code cleanup: Removed unnecessary auth_stream_reply usage from auth-worker communication. |
7926d224dbd0bb2539a2f7a704bf58f6b8d460f8 |
|
30-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Code cleanup - removed auth_stream_split() |
d1a27d8dd525c8720f0a30cb49136c4030e435ed |
|
04-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed handling usernames with the same name as userdb extra fields.
This is a bit kludgy fix, but pretty much guaranteed not to break anything.
v2.2 has a cleaner fix, but it's a bit more invasive. |
548193b7d6c19a14eff810202cd334f364b75e36 |
|
04-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Don't keep username duplicated in userdb_reply string.
This fixes bugs where userdb_reply is accessed via auth_stream_*() functions
that remove/replace existing fields, which may have ended up
removing/replacing the username. |
be83284aff645d005e22817ab144fc598486619a |
|
24-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
auth ldap: Previous change broke %$ variable. |
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. |
e34d170f8f0e084bd94bfbc1a7085ece67e508df |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes. |
7bd301fdbfefe7cef3576d19ece29c75ebe53baf |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make static analyzer happier. |
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 |
a6fbd1f7fa4ca0b4c9c90702e250d4cfee084991 |
|
19-May-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed crash with DIGEST-MD5 when attempting to do master user login without master passdbs. |
190d84a496d6893ed54fe5bdb9e503285583d13f |
|
16-May-2012 |
Timo Sirainen <tss@iki.fi> |
auth: If user is disabled or password expired, tell about it to auth-client. |
593d2714900e3d353c734a689fa96c8f961b1e1a |
|
06-May-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Previous change caused crashing with userdb lookups |
6a2e678026ed1b143d8137c29ae62bea9c0a5299 |
|
04-May-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Added %{session} variable for passdb/userdb queries. |
f016dec9837e6a41867708e4b89ca5308dedab05 |
|
28-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Include session ID in log line prefix. |
e7dd5065d21c569e5e6ddd713bd345dadd1cf51d |
|
25-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
SSL proxying: Remote's host never matched cert, because auth process changed it to IP.
Now the "host" parameter isn't changed, but a new optional "hostip"
parameter contains the IP address where to connect to. |
fee4ec4b112c43e002a9bd2f8c0b8af36954c10c |
|
25-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed handling multiple passdbs where some use proxying and others don't. |
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. |
af1699cfe56ea3e3e176b135494d30023d0d91fa |
|
27-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Removed destuser check from proxy_maybe's "self" check. |
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. |
738cfeb96c4b9cd92aa3c791d77734c2745cdd1a |
|
25-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Added auth_proxy_self setting to specify IPs that are considered as "self" for proxy_maybe. |
170bdf32c6ee11841978228c81ce867f8f00f189 |
|
25-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Added auth_proxy_self setting to specify IPs that are considered as "self" for proxy_maybe. |
336862017860fe9e6a99f79b044615623a751838 |
|
25-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Use proxy_timeout as DNS lookup timeout, if available. Warn if lookup takes >0.5s. |
5a36aecd0543f303648fcc51ca3176d01170576c |
|
25-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Use proxy_timeout as DNS lookup timeout, if available. Warn if lookup takes >0.5s. |
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. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
de0022ee1245f4ae109faf12691f1fe50a3aaae0 |
|
19-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Avoid adding duplicate extra fields to auth replies.
This especially fixes default_fields/override_fields. |
39dc1412c1d3241ec49e58acfaf60de9b04fbe70 |
|
10-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
s/Fallbacking/Falling back/ |
f571a68a00e15241cbac5c163c7271efca7457af |
|
07-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
Removed unnecessary code. |
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. |
ce6c2809b8a1673372a683716566d973efd2f6ee |
|
01-Oct-2011 |
Timo Sirainen <tss@iki.fi> |
auth: If password data isn't valid for specified scheme, give a better error message. |
04052d7cacaa866a3f00afb4e104fa46c04c1dd7 |
|
30-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Added default_fields and override_fields settings to all passdbs and userdbs. |
31e557dc28cb913ebc07488e2d8e170937bdeddb |
|
23-May-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Give password scheme suggestions also when passdb data is invalid for scheme. |
bd0720cca74a9f7603675b01c17bbea7945c1bc4 |
|
12-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Export/import auth_request->successful for auth workers. |
89d7ddf6ebd2ecf69db2617cbf43a649f4c1fc28 |
|
31-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Mention auth_username_chars in log when disallowing username because of it. |
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. |
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. |
44aef64971a92c0d77c367ba8e1f07809f9cd3b5 |
|
11-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
auth: If username contains invalid chars, log sanitized username even without auth_debug. |
13b4ea0201a9697409134ff28dc210b2412047a1 |
|
18-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Logging improvement for nopassword=y. |
7b32aeca72e3aea81715033bfd8b8140994a89b8 |
|
07-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Master user login + prefetch userdb changed username to master user. |
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". |
9766c242ba9c5db1e3f375860263c5f14c564d95 |
|
02-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Disable auth caching entirely for master users.
The cache key contains only the master username, without the logged-in username,
so wrong data could be looked up from cache. |
25c4225e8980418dddf3922f129fa48e0cd766ec |
|
18-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Log userdb cache hits and misses with auth_debug=yes |
0595524d1fb011498482803e699718031ea74adc |
|
14-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Give a better error message if pass=yes can't be used in master passdb. |
750c79d1f4e434cfcf66fcbcc1e23c15d13dd0ea |
|
17-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Pass requested_login_user to auth worker processes. |
873286c865dba8c51e20b5c2cae28642190a3b93 |
|
17-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Added more master user login debugging. |
deb84236ebba7f162d48b1517dc0f4edd48fd8f7 |
|
02-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Support "username" and "domain" extra fields also for userdb. |
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 |
b42ed0ec1e223c86b84168e5ddcc10dd3ebadfab |
|
07-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed prefetch userdb interaction with passdb changing username.
If userdb_* fields were set before user was changed, prefetch returned
the unchanged username.
--HG--
branch : HEAD |
05e21e8f043627c93c31e94d6bf70aba9f100a42 |
|
02-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Added %{login_user}, %{login_username} and %{login_domain} variables that are set for master logins.
--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 |
758c22fb6af5534a12ea3d3a1a114cc5e1cbba0a |
|
02-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Recent change caused userdb lookups to crash.
The deinit bug that it tried to fix isn't fixed yet.
--HG--
branch : HEAD |
fbee9bffb56d882b98146dd0de76a5bcccc2bdc3 |
|
01-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Aborting pending async requests on deinit caused crashes.
--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 |
88e9835c4d8973c62cd4db1ec7324ff46dd3ff15 |
|
14-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed userdb tempfail to work with blocking userdbs.
--HG--
branch : HEAD |
9261dbf0675204898c6557591c7aa376e23a52b2 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Started using str_to_*() functions instead of libc's ones.
--HG--
branch : HEAD |
ff9da9c7c242ef711da7339014590fb0fac49f49 |
|
31-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: If userdb lookup fails internally, don't cache the result.
--HG--
branch : HEAD |
3d57ff9e8e51ec0e729fea82a64102de62d57cf3 |
|
26-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Added "tempfail" userdb field.
--HG--
branch : HEAD |
20a626d4775388876e05631f9250a18c574ada10 |
|
19-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Previous change broke non-master logins..
--HG--
branch : HEAD |
0d97e6efa567b3c853da8bc6894d509731597ee6 |
|
19-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed master user logins.
--HG--
branch : HEAD |
00b38db02edcb55cd00e769b2b00a3e43efe867b |
|
19-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Do username checks/translations even when ssl_username_from_cert=yes
--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 |
3cf67672fdc87583cb23ce088c95bb5dee60e74d |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Cleaned up 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 |
7289c5600711b45f30fe289ab5b0293b51d87041 |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Moved some variables generated from settings to struct auth_settings.
--HG--
branch : HEAD |
145d2eef238ed8bbff635e3b06951a83f0ee5a03 |
|
04-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth_cache_negative_ttl is now also used for password mismatches.
--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 |
a8162bd24c9ddc4fa1d991fdd6b15f4c48599e7d |
|
12-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
auth: When caching user-given passwords, cache their SHA1, not the plaintext.
--HG--
branch : HEAD |
c6f894e1522f7b0b6068c228900914073c145175 |
|
26-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Added auth_verbose_passwords = no|plain|sha1.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
45f7508ca586fc67bb788ecc0f50c4eb2c300206 |
|
31-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
auth_debug_passwords: If password is correct but scheme is wrong, try to detect and log it.
--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 |
e5acc283bf030b0b5c79ca4e52d315c516a299fa |
|
16-Oct-2009 |
Pascal Volk <user@localhost.localdomain.org> |
Log debug-level messages with i_debug().
--HG--
branch : HEAD |
93a398a012993fa3ee6ee374fa8409a3b578ddd6 |
|
16-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Don't assert-crash if trying to log in as master user but with empty login username.
--HG--
branch : HEAD |
88f73e2ed3e99417255c90890fa46e11e6378c9d |
|
26-May-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Improved "Password not in expected scheme" error message.
--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 |
312d3129573fc63ba0d39105b68daccfab9f0c8f |
|
22-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Authentication: system_user userdb extra field renamed to system_groups_user.
--HG--
branch : HEAD |
4ed1b49d815ec41a5e4b6a23d23e94b958da1923 |
|
21-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Improved logging for "password scheme not available" failures.
--HG--
branch : HEAD |
21a8eb0c8f1f377e189545e3a78726271c6b4505 |
|
31-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Using "username" or "domain" passdb fields caused problems with cache and blocking passdbs.
--HG--
branch : HEAD |
a64adf62fa33f2463a86f990217b0c9078531a40 |
|
28-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for config rewrite.
--HG--
branch : HEAD |
952f450ce320c226e9dbb50b980dc8c0f9679bf4 |
|
08-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
auth worker processes shouldn't duplicate the auth cache.
--HG--
branch : HEAD |
b229f116305761bc5784cc9c9c47d4498d339263 |
|
07-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Removed extra string escaping from places where it's not necessary (or is even harmful).
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
f77ffa31038d46ca9c6d24d93e3d76c9aa8d4d0c |
|
13-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
var_expand(): Added support for long %{variable} names.
--HG--
branch : HEAD |
9574032481500eb64def9516a69a8bef8a5cae2d |
|
19-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Add login username in "Attempted master login with no master passdbs" error.
--HG--
branch : HEAD |
0dd8990e7eca64b2df25b8da315029d262422303 |
|
15-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
auth: Improved "user not found from userdb" error message.
--HG--
branch : HEAD |
7d97b8b0e47ad995915373b5c2a57f622a393352 |
|
26-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
auth: original_username should never be NULL, removed all code that checks for it.
--HG--
branch : HEAD |
8293d0ed6bf8bfff812dc23025c2d7642029c4ec |
|
26-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Pass original_username to auth-workers.
--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 |
8160e890cab26dc6d2dbba54fc7d3df58249c943 |
|
05-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Added a special userdb_import field to add TAB-separated fields to userdb reply.
--HG--
branch : HEAD |
663499700a1c560def5611e32c9cf18cb81b0a13 |
|
27-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
auth: %m variable didn't work with blocking passdbs
--HG--
branch : HEAD |
ddd9e8f975f6d7dbfed1e3837da9842288c2585a |
|
21-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Created net_parse_range() from auth code.
--HG--
branch : HEAD |
9bb3dbcf3ab44ca2d82bf9767a485e1d20c6e8b0 |
|
15-May-2008 |
Timo Sirainen <tss@iki.fi> |
Moved net_is_in_network() to lib/network.c.
--HG--
branch : HEAD |
ecc41de155dbe95ef156594da04a87e44a479927 |
|
10-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Changing "user" from userdb crashed.
--HG--
branch : HEAD |
89fd793e53dfd442001201b806b6214aafd443dc |
|
08-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
If trying to log in with password having illegal characters, make sure we
fail early.
--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 |
ac0f0b4535da69946331a1a92e8b3fd58ca2ccc4 |
|
02-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed pass=yes with blocking passdbs. Also master_user wasn't exported
correctly to blocking passdbs.
--HG--
branch : HEAD |
431dc84748efc29ffb06c57274c8437af67cf1a1 |
|
02-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed pass=yes with blocking passdbs. Also master_user wasn't exported
correctly to blocking passdbs.
--HG--
branch : HEAD |
f660b8e8dfdfe0b99ce3551261cfc0aad8d87105 |
|
21-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed proxy_maybe handling.
--HG--
branch : HEAD |
476b98789385001ff3bb12dd37d7c00b08ffbd1c |
|
21-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed proxy_maybe handling.
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--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 |
90b95cf67a86e51f7155009c01e65438b548ffd3 |
|
04-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
If AUTH has "nologin" parameter, the request is freed when authentication is
finished (instead of delayed until master looks it up).
--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 |
2b66c6bafeaf89ed36e6ad5f758608999709a9fa |
|
25-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Added "password_noscheme" field which assumes the password is in the default
scheme even if it begins with '{'.
--HG--
branch : HEAD |
771a949771dbbb1baa26d432f5c324e077fc24b7 |
|
25-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
When saving password, add scheme prefix also if password begins with { but
doesn't contain }. This fixes an assert-crash later.
--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 |
f12a98f27a777aebea2ff4d654c4a99eb8794ef7 |
|
20-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Added "username" and "domain" fields for modifying the username.
--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 |
648d24583c1574441c4fa0331a90bd4d6e7996c5 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
pool_unref() now takes ** pointer.
--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 |
43358fffb1d9f3091fd94895e0ac4643c50e2388 |
|
09-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Don't crash if blocking passdb doesn't support credential lookups.
--HG--
branch : HEAD |
2f8aa130a188ab9f938dbbc47fcfe9ab8d4aa560 |
|
13-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Compile without IPv6
--HG--
branch : HEAD |
1e2e9f07098e4ff9e5ad716dc68ea42028c481d3 |
|
13-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Changed struct ip_addr to use union for ipv4/ipv6 structs so we don't have
to use casting.
--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 |
59567e67e3a3b411988c8754dc9f1ae13eeaab46 |
|
03-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
If uidgid_file=<template_path> is set, the uid and gid are looked up by
stat()ing the given path.
--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 |
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 |
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 |
4fd2eebba0f9763afb1537268cd75e3462273ebf |
|
09-May-2007 |
Timo Sirainen <tss@iki.fi> |
%c wasn't exported to auth worker processes. Patch by Andrey Panin
--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 |
35cb578c174d546f43f4e19ed710f8e4a57cdabf |
|
25-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
If "nopassword" is set, don't crash if password is non-NULL. However give an
error if the password is non-empty.
--HG--
branch : HEAD |
2d3eb551f5e69d2d0b2de1f22748507d0f39d76d |
|
14-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
If unknown user was found from auth cache, we returned an invalid value
instead of USERDB_RESULT_USER_UNKNOWN.
--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 |
6e7a2a2657f0bec249550fd2566f9a6d6fbd4bbe |
|
09-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Added %m = mechanism name
--HG--
branch : HEAD |
b429de4582373d64ac98c4bf72db0a202876f0a4 |
|
07-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Fixed a crash when non-plaintext mechanism used auth_cache.
--HG--
branch : HEAD |
93bc6c54d4f2bac68caa5d0718f23706def9a421 |
|
19-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
proxy and nologin was broken in last changes.
--HG--
branch : HEAD |
65449580b607b6b156930d537f840d4449711513 |
|
17-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
auth_request_set_fields(): Don't crash with empty fields.
--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 |
0b47a03ce89751b2c04b03da255ba68b796864a7 |
|
15-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
If looking up credentials for NULL passwords, return "scheme not available"
instead of assert-crashing.
--HG--
branch : HEAD |
814b1e8e301bf58cc03ddf35a380b43c581af4df |
|
15-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
If user is changed with "user=x" in extra_fields, cache the entry with the
original username instead of with the changed username.
--HG--
branch : HEAD |
e59e76723683f254b28e945b3b0ee1bcf21aa782 |
|
14-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Removed assert. "pass" field is allowed to be in extra_fields.
--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 |
3f6f5c8226e0efcc6349cb88ea8c2a70dc19a30c |
|
24-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
If auth_cache was enabled and userdb returned "user unknown" (typically only
deliver can do that), we crashed.
--HG--
branch : HEAD |
666f43ab9a3f6785dcdec8541c127507a8df5fbe |
|
19-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
auth cache: If passdb didn't provide the password, we used the user-given
plaintext password, but we cached it with wrong scheme unless the passdb's
default scheme was plain.
--HG--
branch : HEAD |
9bf24c061320dac34a78a79480074b960cad1d89 |
|
19-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
If request fails with internal failure, don't crash if auth cache is
disabled.
--HG--
branch : HEAD |
0dc7ee652f6d4b139372075af034678906b78b8d |
|
31-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
We crashed if auth cache was disabled. Patch by Andrey Panin.
--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 |
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 |
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 |
d481a0f92e3673a345a6c3d61a1f74924f80bd44 |
|
03-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Don't crash if plain-md5, plain-md4 or sha1 password is invalid and we're
not using digest-md5 authentication..
--HG--
branch : HEAD |
089befd72dd96bfee71ab0a2058434c7609657ed |
|
18-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
When invalid character is found from username, say what character it is in
the log message. Also with auth_debug=yes log the whole username
(sanitized).
--HG--
branch : HEAD |
40c94d95216d0dea140c462cbb2edea559846eb9 |
|
18-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Added __attr_format__
--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 |
ed25679090b5d4e0edd7289cbc52899c3b50e4ff |
|
05-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
If proxy is returned, set also no_login automatically, since it's always
wanted in such case anyway.
--HG--
branch : HEAD |
5116850aa12a296289e55be70cd382a09c313d3a |
|
15-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
Don't even try to verify password with deny=yes passdbs.
--HG--
branch : HEAD |
3e077925c47a7a18d5f7f266179f5f82862bf81e |
|
15-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
auth cache didn't work properly with multiple passdbs.
--HG--
branch : HEAD |
4d573056090c86b2c706084391b0e2be41590884 |
|
15-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
When matching allowed_nets IPs, convert IPv6-mapped-IPv4 addresses to actual
IPv4 addresses first.
--HG--
branch : HEAD |
8759adc67109b5a12a7af3ed717c7040622a0a04 |
|
13-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
auth_cache: Try to handle changing passwords automatically: If password
verification fails, but the last one had succeeded, don't use the cache.
This works only with plaintext auth.
--HG--
branch : HEAD |
caaa151f604867a5edbe47220bcc49134a7d1791 |
|
16-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
Non-plaintext auth: If auth_debug_passwords=yes, show looked up credentials.
--HG--
branch : HEAD |
551516a0b5b07103ff062d961dab83bb37479a51 |
|
03-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
If master login failed because of non-password failure (eg. allow_nets)
don't continue the authentication to non-master passdbs.
--HG--
branch : HEAD |
c24b5fab7bd2c90f2f3b290a399ee81e91f1d9f5 |
|
03-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
If we logged in with IPv6 address and allow_nets contained IPv4 address, we
assert-crashed.
--HG--
branch : HEAD |
3ff90e1abe73c0915f7093366d87b06949c8d6e0 |
|
17-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
auth_debug: If allow_nets is given, print debug messages when matching
--HG--
branch : HEAD |
958eac1c004709ecf763b00a01c20856d49d7a7c |
|
17-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
If multiple passdbs were configured and we tried to authenticate as user
which was in more than one of them with different passwords, we gave
"multiple passwords not supported" error.
--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 |
3c9783956dea385b322cd7fa6bf8c98c17a907a0 |
|
31-May-2006 |
Timo Sirainen <tss@iki.fi> |
Escape SQL strings using sql_escape_string(). Fixes the problems with
PostgreSQL.
--HG--
branch : HEAD |
fcc55c7332275c51cbbccdb10f51e6421f5c65db |
|
12-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Added auth_username_format setting.
--HG--
branch : HEAD |
ff330103af961cb560433d680ec4ef26d5581ae2 |
|
12-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Master login fixes, PLAIN authentication was still broken..
--HG--
branch : HEAD |
fddef020b4ebbd569b1f7f9cb63b59c954d3bc54 |
|
09-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Allow prefetch userdb to exist nicely with other userdbs.
--HG--
branch : HEAD |
7469e82640f3bbb8ebd79c6bf9ff702caed751d8 |
|
09-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
The login and master usernames were reversed when using
master_user_separator (now the order is UW-IMAP compatible).
--HG--
branch : HEAD |
84d2b879f694dcafb99455c6170dae59248bb8da |
|
09-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Master login attempts weren't logged if no master passdbs were defined.
--HG--
branch : HEAD |
fb2ff826a5da87d8ae3661a4ff2e14b52d825655 |
|
08-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
If master login username is the same as the normal username, we don't want
to treat it as master user. Fixes authentication with some clients.
--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 |
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 |
64a97652b93b0b1d708e428be083413bd038ad42 |
|
22-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Multiple password database error prints now the passdb name that caused it.
--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 |
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 |
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 |
0549732db3a80a0821f42648be2666e74f6b35c5 |
|
06-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash if cache key isn't set but cache is enabled.
--HG--
branch : HEAD |
e03ec0b7b9d92551331bc509bcd86920544171d1 |
|
28-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Use a bit larger initial pool sizes
--HG--
branch : HEAD |
6dab053ed7331aedc9ad5a79e307837d39aba742 |
|
27-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
%w contains now password
--HG--
branch : HEAD |
92956b705a86c0beb51362190ce085cba4e5c330 |
|
27-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Non-plaintext authentication and passdb cache didn't work together. Patch by
Andrey Panin.
--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 |
b5cbd2d85711eea265457476b08b7d72a4c6dd81 |
|
19-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
nologin/proxy are now always in boolean format, ie. without any "=Y".
--HG--
branch : HEAD |
b42f37ae6f65ed986315b6885568d32115e589b1 |
|
16-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Separated userdb_module's interface and the actual data struct.
Now it's possible to have multiple userdbs of same type but with different
settings.
--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 |
9fe7632c6d7c1a22623f98a58f497680741f5949 |
|
16-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Make auth caching work with non-sql/ldap passdbs too.
--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 |
29321c71c8519c2e54a909e5d1d0059642e3ce73 |
|
07-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
We were caching failed blocking requests wrong.
--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 |
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 |
1e0bdb2d0fa7bbd0a0a254754680f6c6d0195333 |
|
16-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Last change caused user-given passwords to be cached, and later the password
used instead of the real one (ie. login once with correct password, then you
could login using whatever password as long as user is cached). Clearly not
good. Did several changes to make sure this can't happen again.
--HG--
branch : HEAD |
3ab7783791bd46cdd46e9b9de3e98e8efcb6c6bf |
|
15-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Auth cache wasn't working if password wasn't given (ie. didn't work for
proxying).
--HG--
branch : HEAD |
6ad58052034564dd73e7a0aa0560da42a58437d7 |
|
14-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
If username changes, log the change if debugging is enabled.
--HG--
branch : HEAD |
e242620879b254c2deeaff1d1921c1df44b82e31 |
|
28-May-2005 |
Timo Sirainen <tss@iki.fi> |
auth_request_set_field() shouldn't save password to extra_fields. Fixes a
crash with auth_cache enabled and at least with SQL/LDAP passdbs.
--HG--
branch : HEAD |
826cb2b19f57bb9b6f73018b585bd922e820f9f6 |
|
16-May-2005 |
Timo Sirainen <tss@iki.fi> |
Master connection's USER command was leaking memory (with deliver binary).
--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 |
d368b5e0c6ecc4361de943119db898e9c62e5f2c |
|
22-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Grow default auth_request pools to 512 bytes per request.
--HG--
branch : HEAD |
f6ef1961e6d02c299b418e3c7038a8b664ffffc9 |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash if cache is enabled and we're caching more than just
password.
--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 |
3d370bb6763ac4af4a0d143ad7c93300d5ddff89 |
|
03-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
passdb can now change the username that was used to log in. This is mostly
useful to support case-insensitive username lookups.
--HG--
branch : HEAD |
3c9fbc33ee42feb08a6ac854ccbe833f538067f2 |
|
12-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Crashfix. Patch by Andrey Panin.
--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 |
42061dd44f742de25d0a52ed1ef766a56df421f1 |
|
28-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Fallback to using expired records from auth cache if database lookups fail.
--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 |
4f7720c29123044476d0c44996e38dffa91c36e6 |
|
27-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Last changes broke proxying when user was in auth cache.
--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 |