History log of /openbsd/usr.sbin/ldapd/conn.c (Results 1 – 21 of 21)
Revision Date Author Comments
# d2e51e44 26-Jun-2023 claudio <claudio@openbsd.org>

Improve the conn_err() bufferevent error callback. To better report errors.
OK kn@


# 622ead63 30-Apr-2023 jsg <jsg@openbsd.org>

avoid use after free
ok jmatthew@


# 3fe2f2e6 03-Feb-2023 tb <tb@openbsd.org>

Add void to conn_close_any()

This makes the function definition match the prototype and silences a
clang-15 warning.


# 696b5899 24-Oct-2019 tb <tb@openbsd.org>

The ber_* namespace is used by liblber since time immemorial,
so move our BER API to the unused ober_* prefix to avoid some
breakage in ports.

Problem diagnosed by jmatthew with ber_free() in samba,

The ber_* namespace is used by liblber since time immemorial,
so move our BER API to the unused ober_* prefix to avoid some
breakage in ports.

Problem diagnosed by jmatthew with ber_free() in samba, but
there are many others as pointed out by sthen.

tests & ok rob
ok sthen (who had an almost identical diff for libutil)
"go head hit it" deraadt

show more ...


# f9444383 31-Jul-2018 claudio <claudio@openbsd.org>

Make ber type and encoding a unsigned int instead of unsigned long.
This way the size is the same on all archs and 32bit should be good enough.
OK rob@


# c0785a05 15-May-2018 reyk <reyk@openbsd.org>

Fix format string errors in log messages and update ldapd to use relayd's log.c

OK benno@ jmatthew@


# 2ea53e46 08-Feb-2018 jca <jca@openbsd.org>

Kill ber.c support for direct fd read/writes

This mechanism is already unused and annotated with lots of XXX's, no
need to keep it around. ok claudio@


# fdd30f56 20-Jan-2017 benno <benno@openbsd.org>

work on making log.c similar in all daemons:

move daemon-local functions into new logmsg.c, and reduce
the (mostly whitespace) differences so that log.c's can be diffed easily.

ok krw@ jmatthew@


# 57f46873 01-May-2016 jmatthew <jmatthew@openbsd.org>

convert ldapd to use the libtls api, bringing in a copy of the evbuffer_tls
code from syslogd.

ok beck@ benno@


# 576ea306 02-Nov-2015 jmatthew <jmatthew@openbsd.org>

use SOCK_NONBLOCK instead of fcntl

ok dlg@


# 48318e0b 02-Nov-2013 deraadt <deraadt@openbsd.org>

bunch of format string cleanups, removing %i, signed vs unsigned, and even
a few long long's
ok jmatthew


# 0d43ad28 16-Jun-2012 jmatthew <jmatthew@openbsd.org>

Protect against fd exhaustion when reopening database files. Only accept
client or control connections when there are at least 8 fds available,
and close a connection before calling imsg_read if it

Protect against fd exhaustion when reopening database files. Only accept
client or control connections when there are at least 8 fds available,
and close a connection before calling imsg_read if it would be unable to
accept an fd from the parent process.

ok gilles@

show more ...


# 6f4dd1d6 11-Apr-2012 deraadt <deraadt@openbsd.org>

rate limiting of accept() in various cases. Testing by jmatthew. there
maybe still be a corner case where it needs one more file descriptor
beyond the limit..


# b7a178a5 10-Nov-2010 martinh <martinh@openbsd.org>

Make -dvv flags produce debug traces of decoded BER messages on stderr.
Also shows a hexdump of the input buffer if BER decoding fails.
Useful when debugging protocol issues.


# 5a683acb 05-Nov-2010 martinh <martinh@openbsd.org>

When draining the input buffer of more than two complete requests, an
additional incomplete request would be truncated. This fixes the number of
bytes consumed from the input buffer.


# 02cddd88 19-Oct-2010 martinh <martinh@openbsd.org>

Remember the bind DN after BSD authentication. This makes access control
work for SASL and BSDAUTH binds as it does for simple binds.


# 5772b996 01-Jul-2010 martinh <martinh@openbsd.org>

Implement the LDAP compare operation.


# b7f53b5a 29-Jun-2010 martinh <martinh@openbsd.org>

Remember on what listener a connection got from, and return protocol error
if trying to use starttls without a configured certificate, instead of just
blocking the client.


# 1d2cc1d9 27-Jun-2010 martinh <martinh@openbsd.org>

return value unused, found by lint


# c2fec72a 31-May-2010 martinh <martinh@openbsd.org>

Remove trailing whitespace and spaces before tabs.

ok gilles@


# 5d465952 31-May-2010 martinh <martinh@openbsd.org>

Initial import of ldapd, a small LDAP daemon. Work in progress.

ok deraadt@ jacekm@ gilles@ back@ henning@ blambert@