OpenBSD CVS

CVS log for src/usr.sbin/ldapd/conn.c


[BACK] Up to [local] / src / usr.sbin / ldapd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 26 10:28:12 2023 UTC (11 months, 2 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

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

Revision 1.20 / (download) - annotate - [select for diffs], Sun Apr 30 23:49:14 2023 UTC (13 months, 1 week ago) by jsg
Branch: MAIN
Changes since 1.19: +4 -2 lines
Diff to previous 1.19 (colored)

avoid use after free
ok jmatthew@

Revision 1.19 / (download) - annotate - [select for diffs], Fri Feb 3 17:43:25 2023 UTC (16 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Add void to conn_close_any()

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

Revision 1.17.6.1 / (download) - annotate - [select for diffs], Sun Oct 27 20:05:13 2019 UTC (4 years, 7 months ago) by tb
Branch: OPENBSD_6_6
Changes since 1.17: +7 -7 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

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

OpenBSD 6.6 errata 002

Revision 1.18 / (download) - annotate - [select for diffs], Thu Oct 24 12:39:26 2019 UTC (4 years, 7 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.17: +7 -7 lines
Diff to previous 1.17 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 31 11:01:00 2018 UTC (5 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Branch point for: OPENBSD_6_6
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored)

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@

Revision 1.16 / (download) - annotate - [select for diffs], Tue May 15 11:19:21 2018 UTC (6 years ago) by reyk
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

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

OK benno@ jmatthew@

Revision 1.15 / (download) - annotate - [select for diffs], Thu Feb 8 18:02:06 2018 UTC (6 years, 4 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

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@

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jan 20 11:55:08 2017 UTC (7 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

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@

Revision 1.13 / (download) - annotate - [select for diffs], Sun May 1 00:32:37 2016 UTC (8 years, 1 month ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.12: +37 -18 lines
Diff to previous 1.12 (colored)

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

ok beck@ benno@

Revision 1.12 / (download) - annotate - [select for diffs], Mon Nov 2 06:32:51 2015 UTC (8 years, 7 months ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.11: +1 -3 lines
Diff to previous 1.11 (colored)

use SOCK_NONBLOCK instead of fcntl

ok dlg@

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 2 13:31:51 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jun 16 00:08:32 2012 UTC (11 years, 11 months ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.9: +25 -2 lines
Diff to previous 1.9 (colored)

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@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Apr 11 08:31:37 2012 UTC (12 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +35 -7 lines
Diff to previous 1.8 (colored)

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..

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 10 08:00:54 2010 UTC (13 years, 7 months ago) by martinh
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.7: +12 -1 lines
Diff to previous 1.7 (colored)

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.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Nov 5 07:49:03 2010 UTC (13 years, 7 months ago) by martinh
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

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.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 19 09:10:12 2010 UTC (13 years, 7 months ago) by martinh
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

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

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jul 1 20:09:34 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

Implement the LDAP compare operation.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jun 29 21:00:34 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

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.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 27 18:31:13 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.2: +3 -5 lines
Diff to previous 1.2 (colored)

return value unused, found by lint

Revision 1.2 / (download) - annotate - [select for diffs], Mon May 31 18:29:04 2010 UTC (14 years ago) by martinh
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Remove trailing whitespace and spaces before tabs.

ok gilles@

Revision 1.1 / (download) - annotate - [select for diffs], Mon May 31 17:36:31 2010 UTC (14 years ago) by martinh
Branch: MAIN

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

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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.