c8177e49ca88e9df9ae5b24861c9ce913fba103e |
|
08-Feb-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Support standard auth variables in LDAP subqueries |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
53e4a0d5cb048ea2bdf598ca56120b626b8615f5 |
|
10-Dec-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
auth: Debug log an LDAP request result only once |
5ced9eb9ef70b745462ff3ac238fb7af94581cb2 |
|
10-Dec-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
auth: Have ldap_request instead of auth_request in db_ldap_result_iterate_context
This makes it easier to access ldap_request where needed later. |
0a8db75f72270a4d5964fd9ec082b618dd8d138d |
|
30-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
auth: Don't use undefined SASL_VERSION_MAJOR |
a8adad33c80f82beb3c3529065a3d2b936cfd2fc |
|
19-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Fix %{ldap_dn} not to leak memory |
12c57531519d66e237e865c6ee3f7eadfe148550 |
|
05-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Remove dead code
Found with clang static analyzer. |
52c3bd140aefa777c1421137e033615ae0a58e72 |
|
05-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: LDAP request queue has no size limit anymore - remove dead code |
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); |
5f1d689131a75c39f064cbd4202373e7edf78f18 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on io_remove{,_closed}(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- io_remove(&E);
- }
+ io_remove(&E);
@@
expression E;
@@
- if (E != NULL) {
- io_remove_closed(&E);
- }
+ io_remove_closed(&E); |
aec3f901e5895a6be413b8e7cf34de89d856ad21 |
|
18-Sep-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
auth: Expand %{ldap_dn} to ldap_get_dn(). |
917cac3e0f87f1c60e6569dcb6efba97ac0aa8c2 |
|
30-Jul-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
auth: Escape LDAP search filter properly
This is syntaxical escaping to make ldap servers accept queries
with escapable characters, instead of erroring out. |
adea69875046ece77dc36abd3f88a241a3f17ad9 |
|
10-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Add asserts to make static analyzer happier. |
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)" |
ec8e55a73623e40dfce9bfb5a60abf047788b222 |
|
14-Dec-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
auth: silence var_expand_with_funcs in db-ldap
This needs to be silenced since it's logging errors of variable
expansions that are not meant to be successful. The function is used
here just for filling the attr_names array in ldap_field_find_context
and the resulting string is not used. |
bcf1cf2afb9692b0db555e6ecf662a2fbd19793d |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: API change - var_expand_func_table.func() can now return error.
None of the existing functions were changed to return errors (yet). |
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. |
4b1781e4c64be52e25b5994e5242dbe696cc7d29 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use i_strchr_to_next() wherever useful. |
144e0b545e5e1dac1fd825b4140b65bbf44ccb31 |
|
10-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Compiler warning fix |
adb497977f0719bb75df2afcf4932125d107de4b |
|
10-Oct-2016 |
Matwey V. Kornilov <matwey.kornilov@gmail.com> |
auth: Fix default SASL bind for LDAP
User may configure Dovecot to use SASL bind as default bind method. This can
be the case when ldapi:/// (or ldaps:///) with SASL EXTERNAL is used.
Currently, Dovecot returns LDAP connection to wrong bind state after first
successful auth bind, LDAP simple bind always used to rebind. This may broke
setup when ACL in LDAP configured not to allow search/bind for such simple
bind. |
372b7c40bf035413dd3b9677f8f50f692b3602f0 |
|
10-Oct-2016 |
Matwey V. Kornilov <matwey.kornilov@gmail.com> |
auth: Introduce db_ldap_bind_sasl() function
Do refactoring in db_ldap_connect() before fixing the SASL bind issue in the next commit. |
23bdbb7b1831785c6ba6df190f6369da882d2b9d |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Require comparisons to be strict boolean expressions
* No implicit integer -> boolean or pointer -> boolean conversions
* !expr can be used only if expr is boolean type
These were checked with a patched clang. It found various actual bugs,
which were fixed by the previous commits. |
86c4dc0121015e403f9dd94ff7816b2baa5bd692 |
|
23-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: Support %variable expansion for LDAP field names.
For example this is now allowed:
user_attrs = \
=namespace/%{ldap:enabledNamespace}/enabled=yes \
... |
d76a91450e0aa439403b49288e765c5046e2a9a7 |
|
11-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
auth: If auth request contains "debug" field, enable auth_debug=yes for the request. |
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/' |
fb3178a1924dae52151d88c4d4ded879df43dd3f |
|
11-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
auth: Added hardcoded 5 second timeout to LDAP connect()
Although it doesn't look like the timeout is exactly 5 seconds always due to
OpenSSL's internal workings, but this should be good enough. |
9e56d7403c4c52f471f40f13fe5263473a6c5e69 |
|
13-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: If tls_* settings are used, pass them to LDAP library even if tls=no
Most importantly this allows using the settings for ldaps URLs. And they
hopefully won't hurt anything if neither STARTTLS nor ldaps are used. |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
c93aca832ee532010ead91b85fa9f614132e1be2 |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Removed all invocations of atoi(). |
cd58b6bbd3bf060beb34cb5b56ef8781b36f4f05 |
|
17-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: Crashfixes for earlier changes.
Hopefully works correctly now |
cc3cbeae65642023018d7e38eb325fea509c3e66 |
|
17-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: Fixed crash when handling invalid SSL option. |
e3c410263ee86079b575cb5084e773b2601ae576 |
|
17-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: Fixed assert-crash when both passdb ldap and userdb ldap was used |
99363aeac519d37553b7776b322e60b8a23cd2b9 |
|
16-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: Start LDAP connection only after auth process initialization is finished.
This way even if connecting to LDAP takes a while it won't cause the master
process to kill the auth process due to it not sending the startup "I'm ok"
notification early enough. |
67d650c5a18d0a03271bcb299e34ef7660835ac6 |
|
16-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: Make sure config file path is included in all fatal error messages. |
d492e2f0d022289c8068abfbfda86b73a66f1a50 |
|
16-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: If any tls_* settings are given when they're not supported, fail with fatal instead of just warning.
These may be important for intended security, especially tls_cipher_suite.
We shouldn't allow setting them and then somewhat silently just ignore them. |
e885bb21d4f65f0239a8d05f5a8f17b56d5e9954 |
|
16-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: Call ldap_init*() already at db_ldap_init().
ldap_init*() doesn't start connecting yet, but this way we can verify that
all the settings are correct. |
6332ef7522d7a77a18c1bec4fc80d92ee597336c |
|
16-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: More concentration of i_fatal() calls to db_ldap_init() |
41e360a76aa9cf0d69aded3e0d5b0d5b5e91b50f |
|
16-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: Moved more LDAP fatal checks to db_ldap_init() |
22513dfdaa98cf387db64b0b41b036e2e7453b0e |
|
16-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: Improved ldap_initialize() failure's error logging. |
f2dda28eb05337cabcd66b909a66affe79de1b4a |
|
16-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: Include LDAP config path in all fatal errors.
Also moved all such error checks to db_ldap_init(). |
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> |
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. |
749f6acd6790067c3103e8f9e793692fdb5ae30a |
|
15-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
ldap: Treat "No such object" errors to search the same as if no results were returned.
Trying to look up a nonexistent base returns this error. |
55bfe6c008cb8872ff6a917daaabc4f2e81c0fe2 |
|
07-May-2014 |
Timo Sirainen <tss@iki.fi> |
auth: LDAP errors may have crashed the auth process. |
6135260095e1704ed6edff9d00bdfc043c11429c |
|
17-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
auth: Use special AUTH_SUBSYS_DB/MECH parameters as auth_request_log*() subsystem.
This avoids hardcoded strings all over the place and also allows assigning
the correct passdb/userdb name for log messages generated by generic
passdb/userdb code, which doesn't know exactly where it was called from. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
4f93b5ab69b9a6420827f540742883efbb35f063 |
|
19-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
auth: If LDAP server returns LDAP_OPERATIONS_ERROR, reconnect.
Apparently the server somehow lost the bind. |
e153e1205bc686fac815ce7bb534adcb36dfb722 |
|
13-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
ldap: Added blocking=yes setting to use auth-workers. |
14b495a09db7aea6b68146fd6427229e75d2bb39 |
|
11-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Use refcounting for LDAPMessage to make sure it always gets freed correctly.
This may fix some memory leaks in some (error?) cases. |
190ba2ebc899bd114e1e4ab9ee119be10f0cc0ec |
|
10-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
auth: If passdb ldap returned no values for userdb_ fields, use userdb prefetch anyway. |
eaa9884158bc0cf98379939f72061e31c359cf39 |
|
28-May-2013 |
Timo Sirainen <tss@iki.fi> |
auth ldap: If ldap debug_level>0, log how long initialization took. |
80ef919fa14d4196bcbf1e486d2d549154fa62e8 |
|
21-May-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed crash if LDAP query returned multiple results. |
5acace56d99e0bef77b35e9b55113afde837680a |
|
04-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
ldap auth: Don't access freed memory. |
8d8dc14bf9df8b809582e5b76d80f45a45c70eb4 |
|
26-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap: Another fix to sub-dn-lookup. |
b6df44e31bf9d54669b5903dfb5dd3fbbe896acc |
|
26-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap: Crashfix |
872521e5ee7480b1002a9789a86874bd92e6aad8 |
|
26-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap: Compiling fix to previous change |
f30ab1a83f91b92c6576d34c033332af6b2898b1 |
|
26-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap: Improved sub-dn-lookup error message. |
f2f40b6ca4ce986d80ae0fe59efb542b3b837bfa |
|
25-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap: Various crashfixes |
068afb0ee323c59fd4830d49a40a59be11ea0212 |
|
25-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap: Don't crash if attributes have no @subrequests. |
6264b5ea568948885d269419ac4b4e3b00045042 |
|
18-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap auth: Removed base() wrapper around @dn values.
The idea was to provide extensibility, but it can better be done with LDAP
URLs. |
626a206050bbe60b1f758c8918d09dad8accf225 |
|
18-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap auth: "!ldapField" now requests the given field, but doesn't return it directly.
It's only useful for listing fields that %{ldap_ptr} can potentially access. |
a9b698e78ff0b4c71b1966c5a5d568c77632474c |
|
18-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap auth: Added %{ldap_ptr:realAttr} to get the value from the realAttr.
For example:
password_attrs = \
=proxy=y, \
=host=%{ldap_ptr:activeHost}, \
primaryHost, secondaryHost
Where activeHost's value is either "primaryHost" or "secondaryHost". |
c2bae70e86bab833f1f51a6d8333c8996275ff08 |
|
18-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap auth: Fix to previous change. |
3fb1531681f9cbe49928f8e32357a692bf901c83 |
|
18-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap auth: Support field values containing DNs to other LDAP records and getting them.
For example:
user_attrs = \
=user=%{ldap:uid}, \
@mail=base(%{ldap:mailDN}), \
=uid=%{ldap:uidNumber@mail}, \
=gid=%{ldap:gidNumber@mail}, \
=home=%{ldap:rootPath@mail}/%d/%n
This first does the regular lookup, and then does another lookup using
mailDN's value as the new lookup's base. The other lookup's filter is
currently hardcoded to "no filter". |
8ae72ad7d0c69e972cfa65d1e2ce4e3e9a8b765c |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Replaced all -1U and (unsigned int)-1 with UINT_MAX.
It's somewhat clearer this way. Also clang's -fsanitize=integer gives
runtime errors about -1U (but not about explicit casts, so no need to change
(type)-1 casts). |
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. |
74d5f3c4e3fd49d966a87f317f439a71954b3c70 |
|
23-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Added a way to set default values for nonexistent LDAP attributes.
%{ldap:attrName:default_value} expands to default_value if attrName doesn't
exist. |
803197abb1cc0e81abb668c026c22394bfef820d |
|
13-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-settings: settings_read*() now returns an error string instead of logging itself |
bdd36cfdba3ff66d25570a9ff568d69e1eb543cf |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed network.[ch] to net.[ch].
The function prefixes already started with net_ instead of network_.
And icecap wants to use network.h for other purpose. :) |
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. |
a75d470c9223a75801418fcdda258885c36317e0 |
|
20-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Reverted "support for non-pointers" part of the hash table API changes.
Originally I wrote it using clang, which didn't give as many warnings as gcc
did. I guess this way is safer anyway.. |
27a44fcfd8d19bffe0f267f20a2b5d3fe7600fdd |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Removed CONTEXT_TYPE_SAFETY macro and reimplemented its functionality better.
gcc/clang now gives a compiler error in many places if callback isn't
exactly what was expected. It's also now much easier to add more of these
checks. |
678d0463849ba777106eb7875f27db07a5d8e3df |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Hash table API is now (mostly) type safe. |
7536dca18968a279b69c685eedda205bee228fd4 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
hash_table_create(): Removed table_pool parameter.
Every single caller was using default_pool there, so there's no point in
having it. |
2219b375f50f9af1f3e69b7b38aab733ea174c24 |
|
01-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Support empty ldap base (for ldap servers that support it). |
31a574fda352ef4f71dbff9c30e15e4744e132c0 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added array_append_zero() to write a zero-filled record to an array.
Replaced (void)array_append_space() calls with it. |
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 |
7783bfe16d9f2c3076e519c5bf190c37a3aa7774 |
|
14-May-2012 |
Timo Sirainen <tss@iki.fi> |
ldap: If attributes contain ldapAttr=key=template%$ and ldapAttr doesn't exist, skip the field.
This makes it work again the same as with v2.0. |
bf6c5e9028e7d8f31e92e5037b63c72a93ce3c5b |
|
04-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
ldap: Removed warning about changed user_* settings.
This warning can happen even with recommended settings when symlinking the
passdb's ldap config to userdb ldap config. |
914d477534d4d502d3c3432e7910f9332366064f |
|
04-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
ldap: Treat =key the same as =key=, just like v2.0. |
9a8727ac119e429f8318262d9a2ba54aa4299306 |
|
21-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
ldap: Support attr=name=prefix style template attributes for backwards compatibility.
This was mainly used for quota, e.g. "quotaBytes=quota=*:storage=" |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
63cf2e557bdd9dd8bb4e2ecb84763ef884231f18 |
|
02-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Get LDAP attribute names automatically from template's %{ldap:attr} variables. |
c349375340580e4ef10b427323c6e67c14ae4996 |
|
02-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
auth: LDAP fields can now access any returned LDAP attribtes with %{ldap:name} |
7c85bb54c14c0ca3e7171431f99a594615792086 |
|
02-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
ldap: Crashfixes to previous change. |
0a8926b91a84abf462afdc1ed95def229377d7ff |
|
02-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
ldap: Support using the same LDAP attribute in multiple fields. |
964c86de7158ccafdfe665853579d71232e2634e |
|
18-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
auth: Log a warning if userdb ldap isn't used, but user_* or iterate_* aren't defaults.
This is intended to stop people from wondering why their changes don't do
anything. |
89676692402d8a58415b2c11256652322091ebab |
|
07-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
ldap: Fixed random assert-crashing with with sasl_bind=yes. |
d779da03fd24e13b0c6fbfa9a93ad0e4132c9f47 |
|
09-May-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Added assert. |
31088625f59b7359d70845d81ea9e3dd8a24eb63 |
|
12-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Removed max. request queue limit from LDAP.
Old requests get dropped after 60 seconds, but other than that there is
probably not much point in having a hard coded limit. |
2d0a002723dac5c58c250f6566efb1f5e474c169 |
|
04-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
auth: If initial binding to LDAP server hangs, detect it and abort. |
baa6930bf0103e276355a81f187e5f7c69cf23f2 |
|
05-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed ldap assert-crash. |
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. |
3dadeec1ce7a5bf72fbd850658df1db3cedd4416 |
|
28-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Log a warning if ldap attribute has unexpectedly multiple values. |
5c9ddc08925dc972bfb4ca17937cfafd162a212a |
|
02-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
ldap auth: Hide password_noscheme from debug logs unless auth_debug_passwords=yes |
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 |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
7bafda1813454621e03615e83d55bccfa7cc56bd |
|
04-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Removed MEMBER() macro. Require C99 style struct initializer.
--HG--
branch : HEAD |
c51fe409810cbb2432b72d6819bd183469fcaebc |
|
25-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
ldap: Don't log an error when server disconnects us because of idling.
--HG--
branch : HEAD |
42ec694fb0f2e1fb1d8afcfb441382daea487bd9 |
|
07-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
ldap: Fixed hang when >128 requests were sent at once.
Based on patch by Marek Miska.
--HG--
branch : HEAD |
cc03958ccda8258252c512412f8d5600ce383b14 |
|
20-May-2009 |
Timo Sirainen <tss@iki.fi> |
auth: Fixed using ldap plugin.
--HG--
branch : HEAD |
43d3ea2780b5f8557ede7b4c039e8f56cb8d357d |
|
13-May-2009 |
Timo Sirainen <tss@iki.fi> |
Implemented support for listing all users in userdb.
--HG--
branch : HEAD |
e434abb86a137bbe710320b5f5431804f05c6e26 |
|
12-May-2009 |
Timo Sirainen <tss@iki.fi> |
ldap: When using the same LDAP attribute multiple times, give an error message.
--HG--
branch : HEAD |
c184857e1fc86878761f6e47896c9cc1fad2d666 |
|
12-May-2009 |
Timo Sirainen <tss@iki.fi> |
LDAP: If LDAP_OPT_ERROR_STRING gives more information, log it.
--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 |
584a5375b70caa8bf7b202248aea84092bcb9c22 |
|
29-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
ldap: If first request is over 60 seconds old while a new request comes, reconnect.
--HG--
branch : HEAD |
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76 |
|
24-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for v2.0 master rewrite. Several features are still missing.
--HG--
branch : HEAD |
44fc0a34c39f1ddb3a776918630010867a5dd04e |
|
26-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed --with-ldap=plugin and --with-gssapi=plugin
--HG--
branch : HEAD |
1512eb3e1f8d7366122089a03e3c8688986a5a26 |
|
03-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
ldap: Give better error message when aborting LDAP requests due to not being connected.
--HG--
branch : HEAD |
77cf38711809ab951741fcd306db2665cd78c8f2 |
|
03-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Changed default ldap_version from 2 to 3. Some servers no longer allow v2.
--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 |
3ccab0bac68040f179a7de45c516cec258e28fdb |
|
19-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed hash_*() to hash_table_*() to avoid conflicts with OSX's strhash.h
Based on patch by Apple.
--HG--
branch : HEAD |
487f025c05aa45aa6b2e99280f93441417095b04 |
|
08-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
LDAP: If auth request queue is full, log how long ago the first request was added.
--HG--
branch : HEAD |
baf992882696ce085fa9122a559dbba8e627e19f |
|
21-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
ldap: Avoid kqueue/epoll errors when LDAP connection closes unexpectedly.
--HG--
branch : HEAD |
ab0d9eecd85f74acae18fe88529302e0776cc500 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
extern/static fixes (from a sparse check by Diego Liziero)
--HG--
branch : HEAD |
5ecdbd1546a42c77219af2a811e23ba365201cd2 |
|
25-Apr-2008 |
Timo Sirainen <tss@iki.fi> |
Static attributes were broken in user_attrs.
--HG--
branch : HEAD |
db966fce2a30ac996d90ad31daffe47734ef4ad9 |
|
24-Apr-2008 |
Timo Sirainen <tss@iki.fi> |
Allow %variables in static LDAP fields.
--HG--
branch : HEAD |
37b5289a049b20bab43f414f647d37b17aa2c3b2 |
|
01-Apr-2008 |
Timo Sirainen <tss@iki.fi> |
Using templates in pass_attrs or user_attrs was somewhat broken, causing
errors for other fields. Fixed by richs at whidbey.net
--HG--
branch : HEAD |
f8464772990b52cb8de4553bc1135adcf72813b8 |
|
10-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Added ldaprc_path setting.
--HG--
branch : HEAD |
f4a19b0cf11cdff437571708d9d788d02a906a00 |
|
10-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Added debug_level LDAP option to specify OpenLDAP's debug level.
--HG--
branch : HEAD |
8f0a5540a21d235f4f830517c6211f6f92948f2c |
|
05-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Fail with a clear error if both tls=yes and ldaps:// URI is used.
--HG--
branch : HEAD |
4756ae94c4db02e694c3425d9d949678117b66a3 |
|
04-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
If sasl_bind=yes or tls=yes is used and ldap_version<3, fail with an error.
--HG--
branch : HEAD |
5626713ae04f85f4eead444f102725559eccc56b |
|
26-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Don't crash if ldap userdb lookup fails.
--HG--
branch : HEAD |
d95ef05d0c6ea5fdc8bc877dcf8f3b8fff6d8fb4 |
|
26-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Don't crash if ldap userdb lookup fails.
--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 |
337db2d47544b384b06cda46931560f9f54530b2 |
|
31-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
auth_debug: If LDAP server returned no fields, log it.
--HG--
branch : HEAD |
f023d5a1665cc388131159914898ceecc526eda5 |
|
25-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
If any of the tls_* settings are used but support isn't compiled in, log a
warning.
--HG--
branch : HEAD |
b96dcd982888d89e6f2508258d6d9588d79c7a26 |
|
25-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Added support for OpenLDAP-specific TLS settings.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
63cde222abaaa2a9bdaa9a143698dbc8b23bd742 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed queue to aqueue ("array queue") because struct queue already exists
in Solaris.
--HG--
branch : HEAD |
3cff7935d606a75357472a3e4269e0b06ac1bef2 |
|
29-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
When aborting queued requests, log the reason for it.
--HG--
branch : HEAD |
fc4ff2356fee6389d4cf2b3f12f4098a436f0502 |
|
29-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
LDAP handling rewrite. Reconnections are handled a lot better now. If
connection is down, requests are added to queue and they always stay there
at least 4 seconds.
--HG--
branch : HEAD |
d39e77e1f7f58e1e21042a673b718541fa3f63c7 |
|
28-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
If LDAP server disconnects the connection and we haven't sent requests for a
minute, disconnect silently and don't reconnect until the next auth request
comes.
--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 |
d2ded6e1da2d07ac070888873ddc10999a6d87ba |
|
28-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Die if (Solaris) LDAP library returns wrong file descriptor.
--HG--
branch : HEAD |
7cf0a6613fca9983b8a3443f9f6ef15df5a22162 |
|
20-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
If ldap_bind() failed because LDAP server was down, we never reconnected.
Patch by Brendan Braybrook.
--HG--
branch : HEAD |
f1e9954c699fcab107a3ebfe6be5fc32259d5646 |
|
22-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed hash_size() -> hash_count().
--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 |
ba00293b85c7fb4e7a2d100991c716e17b9daaae |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
hash_destroy() and hash_iterate_deinit() now take ** 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 |
0c822051bb9a910ee588fd97f7ec6f9df3d1b3c6 |
|
11-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
And a fix for last LDAP lookup changes.
--HG--
branch : HEAD |
0d68d1da0825e01be3f207042b9132ae8dfc9c06 |
|
10-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Actually reconnect always if ldap_result() fails for any reason. There
really aren't any other choices.
--HG--
branch : HEAD |
613daa324c2b61ec69291519a57186be7cc23286 |
|
10-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Reconnect if ldap_search() returns a failure related to connection problems.
Also if ldap_result() doesn't return a connection related failure, don't
reconnect.
--HG--
branch : HEAD |
be20a7ddf87cb56ee63016dd0029f0c523be09b6 |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
--with-ldap=plugin builds LDAP passdb and userdb support as a plugin.
--HG--
branch : HEAD |
99ee694f4099ea3dcc3b6b8331b093a8f1a2c604 |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Ignore spaces after commas in user_attrs and pass_attrs.
--HG--
branch : HEAD |
62608a85f51f6142f1030d073238fd0f08b88f5e |
|
31-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Retrying delayed auth binds after LDAP server reconnection assert-crashed.
--HG--
branch : HEAD |
1cb29929a19dea32779606cd54a1e63aefead88d |
|
25-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Having =key=value in pass_attrs or user_attrs allows returning static
key=value pairs.
--HG--
branch : HEAD |
acbf19bc103b663fbc311a3b2b88d586ea60c20d |
|
25-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Removed deprecated pass_attrs and user_attrs configuration method.
--HG--
branch : HEAD |
e53ca064060239939bd554a562ba007367dac8ed |
|
25-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Changed default pass_attrs and user_attrs to use the new format.
--HG--
branch : HEAD |
fb5abffb7097b3c5f167deff6ae293d2f828695b |
|
25-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
LDAP crashfixes. Based on patch by Katsu Yamamoto.
--HG--
branch : HEAD |
4261a8b43792dc4db4b39e6910319835b7450e84 |
|
03-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Moved generic LDAP result iteration to db_ldap. It also supports now
templates in values.
--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 |
e82b7f46916e2969dc625d234c05ec7fc40afce3 |
|
12-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Queue userdb lookup request until bind is finished (with auth_bind=yes).
--HG--
branch : HEAD |
a84eb0599fa1d796206eaed65c4e3239f0799276 |
|
31-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Added type checks to setting defines.
--HG--
branch : HEAD |
a5f3942122376fe79072560fad845e78d1a0b59c |
|
19-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Removed accidentally committed debugging code.
--HG--
branch : HEAD |
54cc31729775282a6f3e0c02adcd1ab4cadc1cdf |
|
19-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Do ldap_bind() only when there are no requests waiting, and don't do
anything until ldap_bind() has finished. This fixes several problems with
auth_bind=yes.
--HG--
branch : HEAD |
78361883c67c58e339697c167ca285731f50287b |
|
16-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Last change for making ldap_bind() error handling better was actually
broken.
--HG--
branch : HEAD |
763fd2ac217023c0940415379abcd5eb7a0f7ba7 |
|
09-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
If ldap_bind() fails directly, log the "ldap server down" errors more nicely.
--HG--
branch : HEAD |
2cfe9983ce7a6280636ee12beccc2e865111967b |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Replaced void *context from a lot of callbacks with the actual context
type. Also added/fixed some context type checks.
--HG--
branch : HEAD |
59151b71059df1190acd75d8717ed04a7920c862 |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added context parameter type safety checks for most callback APIs.
--HG--
branch : HEAD |
73583cff4f0ca9ee87204256ca1994adf17cb94c |
|
18-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Cleanup: Don't put string literals into non-const pointers.
--HG--
branch : HEAD |
594d203bdcbd160688bce5d5a6d65783b919ad49 |
|
13-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Solaris LDAP compiling fix.
--HG--
branch : HEAD |
e023e3c2677ab66d7a7445eae9caf3d739e199cb |
|
07-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Handle LDAP requests while being disconnected more correctly.
--HG--
branch : HEAD |
1a59321a1116f9819e7b2899379a44de339ce802 |
|
04-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Fixes
--HG--
branch : HEAD |
6f763803a160fdba3404f00856c28529673794a4 |
|
04-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Don't call ldap_parse_sasl_bind_result() in ldap_bind()'s callback. We're
not doing SASL authentication.
--HG--
branch : HEAD |
efb7a523ea2f7670ca07acaaa5aeb30692ad6cd3 |
|
04-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Cleanup
--HG--
branch : HEAD |
b270b29d458f3cbd6e63320bb17e23f809da0045 |
|
04-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Crashfixes
--HG--
branch : HEAD |
16133a719ce8b6a5b8cedd721340cc1607c43433 |
|
04-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
LDAP code changes: If auth binds are used, bind back to the default dn
before doing a search. Otherwise it could fail if user gave an invalid
password. Initial binding is now also done asynchronously. Reconnecting to
LDAP server wasn't working with auth binds. Use pass_attrs even with
auth_bind=yes since it may contain other non-password fields also. Updated
dovecot-ldap.conf to contain sasl_bind settings and reflect these changes.
--HG--
branch : HEAD |
fa6833e049d32cac4ee666bc379bea5f348da65a |
|
22-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
"Can't connect to server" message's host was wrong if uris setting was used.
--HG--
branch : HEAD |
d8c2d988a913d1aae9abf2dd50c611c87d81d72a |
|
19-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Prefer sasl/sasl.h. Require SASL v2, otherwise disable it.
--HG--
branch : HEAD |
dd2d3ef41dc407afb8afc49e18ff53640e4b4e02 |
|
19-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Check for sasl.h and sasl/sasl.h existence and use the one that's found. If
neither is found, disable support for LDAP SASL.
--HG--
branch : HEAD |
40992309053d51192ae1b36d1dd6c057f2d37257 |
|
17-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Added TLS support for LDAP if the library supports it.
--HG--
branch : HEAD |
23f8c5356cacdbd1cc09a39a08ef37a39125bb74 |
|
17-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fixes and some coding style cleanups.
--HG--
branch : HEAD |
a399486f2d8d5bed51bc6344baba61a7f2b0dcdb |
|
08-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Added support for SASL binding. Patch by Geert Jansen
--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 |
3c9e09fa412f62259e3a10bfe9ac6afb1becc2f0 |
|
13-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
If LDAP library didn't have ldap_initialize() function, we always complained
about the URI settings.
--HG--
branch : HEAD |
b1504ccfa93e77d906e39e6aa31a592d69f6b5b4 |
|
11-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Check that uris and hosts settings are correct.
--HG--
branch : HEAD |
e25885d4c7c4b392c66bbf26a9b892362d90f001 |
|
19-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Settings' default listing wasn't ended properly, which could have caused
dovecot-auth to crash at startup (depending on used compiler).
--HG--
branch : HEAD |
2e1e493b248dec0127b1eabeea5a8bc330378fcd |
|
18-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Give a clear error message if SQL/LDAP configuration file path was left
empty.
--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 |
f1ddb98e6b639394ae205b305be1ddcfab102578 |
|
07-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added fast authbinding and auth_bind_userdn setting. Patch by Geff
<boing@boing.com>
--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 |
ed5e91e58dfc372c2135c55427bf6f25a7725042 |
|
06-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
If LDAP lookup fails because connection gets closed, try retrying it again
after reconnect.
--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 |
e714eed72515794c46c6712a611e5ab924d903da |
|
22-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
user_global_uid and user_global_gid settings weren't working. Also changed
them to now allow named user/group.
--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 |
0d7d27765267594a5870892268ab345148306d49 |
|
17-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
If both userdb and passdb used LDAP the later one was overriding first one's
attribute names.
--HG--
branch : HEAD |
0e90e1b11b699166a4a4c5e01d132a28c3e26aff |
|
16-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
LDAP crashfixes.
--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 |
5a8b0ce25f7838652b4a0cb9dab0ad19ec0fab25 |
|
13-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Move default filters/attrs to setting defaults rather than check it from
code. Also fixes a crash.
--HG--
branch : HEAD |
7ccf19a1a13a02973ce0318b60f8ee3637e2cd6d |
|
19-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Fixed crashing due to free()ing too much.
--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 |
48559742084e98049335c21c53dfd1ff95f11cd8 |
|
16-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Fixed to compile with Solaris LDAP library
--HG--
branch : HEAD |
e65cc79f80577e83c706f0678c78e2c0bd91434f |
|
26-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
Patch by Quentin Garnier:
1. Change default value for 'hosts' to NULL instead of 'localhost'. That
way, libldap will choose the default list of server as specified in
OpenLDAP's ldap.conf configuration file.
2. Add a new configuration stance, 'uris', which you can set to a list of
URIs that will be passed directly to libldap, which understands them.
--HG--
branch : HEAD |
9e7182d6fa1940ec14cc2938699820b68ee1dc0d |
|
03-Dec-2003 |
Timo Sirainen <tss@iki.fi> |
Changed hash_foreach() to iterator.
--HG--
branch : HEAD |
002bb664e4b88a808e8a07cf595bfbbf1e7194ec |
|
22-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Give better error message if uid/gid not found from ldap and no default was
set.
--HG--
branch : HEAD |
765dc060173604ac5bfc4e6b425a28de73b134b2 |
|
22-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
095034a7699bfc464a07883f633551b5c313c4e7 |
|
22-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
If LDAP connection closes, notify all requests that they failed.
--HG--
branch : HEAD |
0cb57ee35d4cab9c03434d7abf312c081ed554d4 |
|
10-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
New configuration file code. Some syntax changes, but tries to be somewhat
backwards compatible. SIGHUP now reverts back to old configuration if it
detected errors in new one.
--HG--
branch : HEAD |
1c38a95332f1945c9806d7d83175a0d948f51291 |
|
02-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
Moved auth_username_chars from db-pgsql to generic for all. Some other
auth code cleanups.
--HG--
branch : HEAD |
b567e0172c73dcf7642462e86962060358dd5f28 |
|
06-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Added ldap_version setting.
--HG--
branch : HEAD |
c65695787dbb712fc403c4b9f90516b2598377b9 |
|
01-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Setting user_global_uid or user_global_gid crashed.
--HG--
branch : HEAD |
ebfcfd258acc89633c47d9c3b0b40a1a3f75cdcb |
|
20-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
minor ldap fixes
--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 |
d1f0acc7fc722e13e8296228703adfe8a884d59e |
|
18-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Escape special chars in username if needed.
--HG--
branch : HEAD |
985375eafa124c948eee326eb6bfbe2b268514b5 |
|
17-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Handle LDAP failures better.
--HG--
branch : HEAD |
a8fc29f19ea6e2d472ba779b2dd5ca4e1f3dac79 |
|
17-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Rather than block for two seconds, we can just call ldap_result() again if
it returns 0..
--HG--
branch : HEAD |
c4457e497e01b57565d24da624968699b166e02a |
|
11-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Use the same LDAP connection for both userdb and passdb if config_path is
the same.
--HG--
branch : HEAD |
1f18053d463f0294387b5e4dd11f9010bda9a24e |
|
11-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Added user_global_uid and user_global_gid LDAP settings.
--HG--
branch : HEAD |
10c5fd417af4ee30b68c967f5e7d5a49f4f149b5 |
|
10-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Separate user and pass attrs/filters in config file
--HG--
branch : HEAD |
e82af44fe25ca9b88210f313548dc08538e4a677 |
|
11-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
passdb ldap added. fixes to userdb ldap.
--HG--
branch : HEAD |
3e1ded79bbc9166aa221bcf62d8eb2bee179c557 |
|
01-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Define OPENLDAP_ASYNC_WORKAROUND
--HG--
branch : HEAD |
7d6389e4053c2dac1fb37180b5756b00785983dc |
|
02-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
auth process fixes, LDAP seems to be working (with the kludge define or
fixed libldap)
--HG--
branch : HEAD |
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 |