bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
be5773cb4d6edae8a5d9f300c3c7375cdd33826e |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on [io]_stream_destroy(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- i_stream_destroy(&E);
- }
+ i_stream_destroy(&E);
@@
expression E;
@@
- if (E != NULL) {
- o_stream_destroy(&E);
- }
+ o_stream_destroy(&E); |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
0f5dc4da3982053036be65190e44bf28a67b1ca2 |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: API change - var_expand*() now returns error string.
This allows callers to fail properly if the format string is invalid. |
d5e68154e67819140e513cbd037eda9c1b929c4e |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Code cleanup - Move passwd-file extra fields import to its own function.
This will shrink the diff output for the following var_expand() change. |
b4ed649cad1f149bb8fc058eb2eb44f0278a729b |
|
01-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If passwd-file can't be read, return tempfail (not user unknown). |
4b1781e4c64be52e25b5994e5242dbe696cc7d29 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use i_strchr_to_next() wherever useful. |
0f3d4fbcf88e2ffd674893aed8cc1288fe17d290 |
|
18-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use [io]_stream_get_error() insted of %m |
e052c2247f6febbe559a593948ed8ef9f2118435 |
|
29-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Disable auth caching for passwd-file
Its caching is usually unnecessary, because the passwd-files are efficiently
in memory already. It's also problematic, because extra_fields can contain
%variables, which can be lookup-dependent. So for example if %{lport} is used
in extra_fields, it would need to be included in the cache key. But because
different variables can be used by different users' extra_fields, there's
really no good way to include all of it in the cache key. |
74674a53a72dab535c61f455b2246ef2797844ea |
|
11-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Moved cache_key from passdb_module to auth_passdb.
This is in preparation for the next changeset, which moves
default/override_fields also to auth_passdb. |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
38ceb710e2bc957a66a75c68957cb87746682a75 |
|
29-May-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Added %{passdb:field} and %{userdb:field} variables
The field expands to either the passdb or userdb extra field.
You can also use %{passdb:field:defaultvalue} where if field doesn't exist,
it's expanded to defaultvalue. Note that an empty value means that the field
still exists and it's not expanded to defaultvalue. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
bace943c67e6cd14ce6c994f533d82a3caad5bf1 |
|
13-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
Use the new [io]_stream_create_fd_*autoclose() functions wherever possible. |
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 |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
cd75c360f244c96b9ee10e01ee3a66fad13183c8 |
|
08-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Added userdb result_success/failure/tempfail and skip settings, similar to passdb's. |
241c0b8f9aa8ad1f11570fd01cdc82fcca673d2a |
|
19-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Fix to previous change. |
f003421d8229323343169f66aba18752f5e1f11e |
|
19-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
auth: userdb passwd-file iteration now skips passdb-only entries if there are other userdbs. |
953e717f0e7ba34e5bf7feef7e81af80be69e402 |
|
19-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
auth: If user in passwd-file has no userdb info, userdb lookup now returns it as nonexistent. |
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. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
e9371f899a3d4207a0ffd3923ea5ec7250cf5e75 |
|
23-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Support passing regular %variables to sql/ldap iterate queries. |
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. |
5f21795890064f8e1ebebdff752b67f15ea59e37 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed using same passwd-file with different username_format settings.
--HG--
branch : HEAD |
f3d506e525a720f214020ca0f989a1966b30edae |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: Store args in passdb/userdb_module, so init() doesn't need it as parameter.
--HG--
branch : HEAD |
849969f639a00eab26791db3cb1b66430420c0cd |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: passdb/userdb backends no longer know about struct auth_passdb/auth_userdb.
--HG--
branch : HEAD |
1d22eaac93de41319918a1fc6de42bb302e25c1a |
|
13-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
auth: auth_userdb and auth_passdb no longer has pointer to struct auth.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
c676be2e4d253ce003cf4dfbb13c58ff5d5e4cac |
|
24-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
passwd-file: Give a better error message if args (path) is empty.
--HG--
branch : HEAD |
7bafda1813454621e03615e83d55bccfa7cc56bd |
|
04-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Removed MEMBER() macro. Require C99 style struct initializer.
--HG--
branch : HEAD |
55e75a5fce7fa2963dbca62bab32aec5390dca34 |
|
19-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
passdb-file: When iterating through users, skip empty lines and comments.
--HG--
branch : HEAD |
4f32fba9435caf2eaf89af7cf24b9c4029dc6e82 |
|
15-May-2009 |
Timo Sirainen <tss@iki.fi> |
userdb passwd-file: Fixes to user listing.
--HG--
branch : HEAD |
43d3ea2780b5f8557ede7b4c039e8f56cb8d357d |
|
13-May-2009 |
Timo Sirainen <tss@iki.fi> |
Implemented support for listing all users in userdb.
--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 |
a64adf62fa33f2463a86f990217b0c9078531a40 |
|
28-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for config rewrite.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
d5abbb932a0a598f002da39a8b3326643b1b5efc |
|
24-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Separate "unknown passdb/userdb X" and "support for X not compiled in" error messages.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--HG--
branch : HEAD |
4f530f5a08a56bd03ba0762f54a6902f925b8386 |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Added username_format parameter for passwd-file passdb and userdb.
--HG--
branch : HEAD |
0dfadf47a8d705a7425575fb490da434edc6b978 |
|
03-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Allow passwd-file ti contain empty uid/gid fields.
--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 |
ed1bc9a67a9f69f9b4dca3e0a037364dca46a12b |
|
14-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Reverted the last change, it was originally correct after all.
--HG--
branch : HEAD |
12596919bb5439a231e1d7473238a6f581867bad |
|
14-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Don't expand %variables in extra fields, let dovecot master do that.
--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 |
02120b4c0f07d1b691602c51c75bee5c466e4a2f |
|
20-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
If passwd-file is being used as userdb, complain immediately if some entries
don't have userdb information. Also some other cleanups and crashfix for
today's earlier changes.
--HG--
branch : HEAD |
9aa6ee2e488817e0baf53a6742748915d6bdbd1e |
|
20-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Updated passwd-file format to allow specifying any key=value fields. Since the value fields may contain ':' characters, this changes the file format a bit. Previously the last two fields were "flags" and "mail". Flags has been empty for last 3 years however, so the new format is used if the flags field contains something. In that case there is no separate mail field, it can instead be specified by adding userdb_mail=<mail> parameter.
--HG--
branch : HEAD |
229e473f71a96ce61585730b165275a93a311e4e |
|
15-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
If debug is enabled, tell how many users are found from passwd-file whenever
it's read.
--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 |
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 |
137ea7ca34005345aa2304a940149b7f3774d727 |
|
07-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
s/occured/occurred/
--HG--
branch : HEAD |
73bea10ee843c41dccf43f6b90600ecbf24de8f0 |
|
22-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Added support for variables in passwd-file path.
--HG--
branch : HEAD |
2fbc2a7c65d30e46803195ebb4547176b85c22c7 |
|
12-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Removed direct config.h including. I'm not sure why it was done before,
probably to reduce compile times a few milliseconds. Ugly anyway..
--HG--
branch : HEAD |
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 |
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 |
d7f46a941a12f70e49857598b4e3463dadfc12d9 |
|
30-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
userdb passwd-file wasn't working. Patch by Joseph Tam.
--HG--
branch : HEAD |
1f1e81aab38d833d1c9cdc244c91fd762e0080d4 |
|
06-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Added name variable for userdb_module and passdb_module and changed their
initialization a bit.
--HG--
branch : HEAD |
08aea01ef9a9d20703e0fcf8618e6195c0037a44 |
|
20-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Added preinit() call to userdb/passdbs, which is called before dropping
privileges. init() is called after. SQL/LDAP now parses the config file in
preinit, but does the actual connecting only in init(). This fixes LDAP
crashing at startup.
--HG--
branch : HEAD |
0373a24e97602b4c394e93a70b75f45e5869fa51 |
|
31-May-2004 |
Timo Sirainen <tss@iki.fi> |
Logging changes. Make sure we don't write control characters to log and also
log IP address.
--HG--
branch : HEAD |
3b94ff5951db4d4eddb7a80ed4e3f61207202635 |
|
25-May-2004 |
Timo Sirainen <tss@iki.fi> |
Fixed var_expand() to take a table of variables rather than a few predefined
ones. Added support for modifiers.
--HG--
branch : HEAD |
061da1b9d309301a7e3f5e0f240d7a7e99652d63 |
|
08-May-2003 |
Timo Sirainen <tss@iki.fi> |
Chrooting changes. Now all userdbs will support "<chroot>/./<homedir>" style
home directories.
--HG--
branch : HEAD |
63c6eefc07085070733e702208101662bc5ccb45 |
|
16-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
passwd-file fixes. passdb ignores now fields after password, so it can work
with shadow-like file.
--HG--
branch : HEAD |
473080c7c0d25ddfdf77e7dfa0ba8f73c6c669d5 |
|
18-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Added default_pass_scheme to LDAP. Support for more password schemes. Merged
password checking code with LDAP and passwd-file, so both support the same
schemes now.
--HG--
branch : HEAD |
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34 |
|
31-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Cleanups, LDAP support compiles again and generally looks ok, even if it
doesn't necessarily work :) Works now with new master config.
--HG--
branch : HEAD |
22535a9e685e29214082878e37a267157044618e |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Async userdb and passdb interface.
--HG--
branch : HEAD |
25757faf029c369a8318349dafe952e2358df1d8 |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
We have now separate "userdb" and "passdb". They aren't tied to each others
in any way, so it's possible to use whatever user database with whatever
password database.
Added "static" userdb, which uses same uid/gid for everyone and generates
home directory from given template. This could be useful with PAM, although
insecure since everyone uses same uid.
Not too well tested, and userdb/passdb API still needs to be changed to
asynchronous for sql/ldap/etc lookups.
--HG--
branch : HEAD |