OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.18 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:13 2023 UTC (14 months, 3 weeks ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.17 / (download) - annotate - [select for diffs], Tue Apr 20 21:11:56 2021 UTC (3 years, 1 month ago) by dv
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
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Move TAILQ initialization to files where they are used.

These priv-sep daemons all follow a similar design and use TAILQs
for tracking control process connections. In most cases, the TAILQs
are initialized separate from where they are used. Since the scope
of use is generally confined to a specific control process file,
this commit also removes any extern definitions and exposing the
TAILQ structures to other compilation units.

ok bluhm@, tb@

Revision 1.16 / (download) - annotate - [select for diffs], Tue May 15 11:19:21 2018 UTC (6 years ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.15: +2 -2 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], Fri Jan 20 11:55:08 2017 UTC (7 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Mon Jan 9 14:04:31 2017 UTC (7 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.13: +5 -4 lines
Diff to previous 1.13 (colored)

Replace hand-rolled for(;;) traversal of ctl_conns TAILQ with
TAILQ_FOREACH().

No intentional functional change.

ok reyk@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 17 08:13:34 2016 UTC (8 years, 4 months ago) by landry
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)

Properly remove unix sockets (control & listening) upon exit of the
parent process.

Child process was killed by pledge because it tried to remove the
control socket and didnt have cpath - anyway it couldnt remove it since
it had chrooted..

ok jmatthew@ deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 24 17:47:57 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

bzero -> memset. No binary change.

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

use SOCK_NONBLOCK instead of fcntl

ok dlg@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jan 16 16:04:38 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored)

change to <limits.h> universe.  The only changes in the binary are due
to the heavy use of assert.
ok millert

Revision 1.9 / (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_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (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.7: +25 -4 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Wed Apr 11 08:31:37 2012 UTC (12 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.6: +30 -7 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Wed Sep 1 17:34:15 2010 UTC (13 years, 9 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.5: +37 -84 lines
Diff to previous 1.5 (colored)

Move generic imsg/libevent glue to a separate file.

with eric@ at c2k10

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 6 20:10:57 2010 UTC (13 years, 10 months ago) by martinh
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.4: +6 -5 lines
Diff to previous 1.4 (colored)

Send empty statistics rather than segfault if "ldapctl stats" is run when a
database is being reopened due to compaction.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 30 17:16:09 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

Don't send statistics for referral namespaces. This unbreaks ldapctl stats.
Avoid null pointer dereference when reopening a namespace.

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

Remove unused code.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 23 12:40:19 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.1: +1 -62 lines
Diff to previous 1.1 (colored)

Remove compaction and indexing from ldapd. It is better done by a separate
process now that the btree can pick up the changes automatically.

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.