OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.20 / (download) - annotate - [select for diffs], Thu Mar 5 07:39:25 2020 UTC (4 years, 3 months ago) by martijn
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, 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, HEAD
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Fix ldapd datadir location.

Diff from roklein <at> roklein <dot> de

OK claudio@

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jun 27 18:03:37 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Some asprintf() calls were checked < 0, rather than the precise == -1.
ok millert nicm tb, etc

Revision 1.18 / (download) - annotate - [select for diffs], Tue May 15 11:19:21 2018 UTC (6 years ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored)

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

OK benno@ jmatthew@

Revision 1.17 / (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.16: +2 -1 lines
Diff to previous 1.16 (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.16 / (download) - annotate - [select for diffs], Thu Feb 4 12:48:06 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

Minor ldapd -r tweaks

- fix style
- the string pointed to by datadir shouldn't be modified, use const
- initialize datadir at compile time
- in namespace.c, move the extern datadir decl above local decls

Revision 1.15 / (download) - annotate - [select for diffs], Mon Feb 1 20:00:18 2016 UTC (8 years, 4 months ago) by landry
Branch: MAIN
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)

Add -r argument to ldapd, to specify an alternative directory to
store/read the database, still defaulting to /var/db/ldap.

This will allow running totally separate instances, to be used by an
upcoming regress suite for example.

With a tweak from gsoares@ to check that the directory exists.
ok dlg@ semarie@ jca@

Revision 1.14 / (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.13: +7 -7 lines
Diff to previous 1.13 (colored)

bzero -> memset. No binary change.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 13 16:06:37 2014 UTC (9 years, 8 months ago) by doug
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Replace all queue *_END macro calls except CIRCLEQ_END with NULL.

CIRCLEQ_* is deprecated and not called in the tree.  The other queue types
have *_END macros which were added for symmetry with CIRCLEQ_END.  They are
defined as NULL.  There's no reason to keep the other *_END macro calls.

ok millert@

Revision 1.12 / (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_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.11: +17 -1 lines
Diff to previous 1.11 (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.11 / (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.10: +2 -2 lines
Diff to previous 1.10 (colored)

Move generic imsg/libevent glue to a separate file.

with eric@ at c2k10

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jul 10 14:27:15 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.9: +12 -7 lines
Diff to previous 1.9 (colored)

Retry requests when the btree is busy. Without this, clients will just hang
waiting for a response if the btree was being reopened when the request was
received.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 29 21:54:38 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.8: +38 -6 lines
Diff to previous 1.8 (colored)

Add support for referrals. Referrals are configured in the config file,
either in the global context or in a namespace. The latter can be used to
delegate requests to different servers for specific parts of the DIT. The
former is a global catch-all referral.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 23 13:10:14 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.7: +25 -21 lines
Diff to previous 1.7 (colored)

Set errno to appropriate values when returning failure in btree. Make btree
functions only return success or failure (-1 or NULL). Update callers to
check errno.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 15 19:30:26 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.6: +3 -115 lines
Diff to previous 1.6 (colored)

Move around some functions to ease re-use from ldapctl.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 15 15:47:56 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.5: +82 -94 lines
Diff to previous 1.5 (colored)

Make modify and simple auth requests open their own transactions, as search
already does. Trigger a reopen imsg request if either the data or index
databases are compacted. Queue the failed request and try again when the
file is reopened.

Compaction can now be done by a separate process, and ldapd will pick up
the change and reopen the file.

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

Implement support in the parent to (re-)open database files on behalf of
the unprivileged child over imsg. Part of a larger change that will fix
database compaction.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jun 11 08:45:06 2010 UTC (14 years ago) by martinh
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Track changes in btree_txn_* API, pass a NULL btree when also passing a
transaction.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jun 3 17:29:54 2010 UTC (14 years ago) by martinh
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Open database files before chrooting, and use an absolute path to
the database files, instead of relying on the chrooted-to path.

This breaks compaction as the ldape process can't re-open the
database files. This is being worked on.

ok gilles@

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 1 15:10:04 2010 UTC (14 years ago) by martinh
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

namespace_new() leaks `ns' on error path.
from zinovik@

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.