53e4a0d5cb048ea2bdf598ca56120b626b8615f5 |
|
10-Dec-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
auth: Debug log an LDAP request result only once |
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. |
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. |
6332ef7522d7a77a18c1bec4fc80d92ee597336c |
|
16-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
auth ldap: More concentration of i_fatal() calls to db_ldap_init() |
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. |
5acace56d99e0bef77b35e9b55113afde837680a |
|
04-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
ldap auth: Don't access freed memory. |
b6df44e31bf9d54669b5903dfb5dd3fbbe896acc |
|
26-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap: Crashfix |
f2f40b6ca4ce986d80ae0fe59efb542b3b837bfa |
|
25-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
ldap: Various crashfixes |
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. |
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". |
4ee00532a265bdfb38539d811fcd12d51210ac35 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch] |
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 |
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. |
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. |
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. |
3dadeec1ce7a5bf72fbd850658df1db3cedd4416 |
|
28-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
auth: Log a warning if ldap attribute has unexpectedly multiple values. |
4f7c150ea0fb986d229379cda622cdcb2d827fd2 |
|
10-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
ldap: Reduce max. queued request count to 8.
OpenLDAP seems to default to 16 worker threads. |
43d3ea2780b5f8557ede7b4c039e8f56cb8d357d |
|
13-May-2009 |
Timo Sirainen <tss@iki.fi> |
Implemented support for listing all users in userdb.
--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 |
b96dcd982888d89e6f2508258d6d9588d79c7a26 |
|
25-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Added support for OpenLDAP-specific TLS settings.
--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 |
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 |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
acbf19bc103b663fbc311a3b2b88d586ea60c20d |
|
25-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Removed deprecated pass_attrs and user_attrs configuration method.
--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 |
cfdaa223525f87c9c980a25cc7bb6770a248d76a |
|
12-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
#define LDAP_DEPRECATED for now.
--HG--
branch : HEAD |
ecb1b2d6236942bf82f822e8d0167f0e160b206d |
|
19-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Several fixes to handling deinitialization without crashing.
--HG--
branch : HEAD |
e023e3c2677ab66d7a7445eae9caf3d739e199cb |
|
07-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Handle LDAP requests while being disconnected more correctly.
--HG--
branch : HEAD |
8ecde70225dbd3eb4730f3fd9344d4b5af50dde8 |
|
07-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Remove sasl_props from here too.
--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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
b567e0172c73dcf7642462e86962060358dd5f28 |
|
06-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Added ldap_version setting.
--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 |
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 |
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 |