summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldapd/namespace.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Minor ldapd -r tweaksjca2016-02-041-2/+3
| | | | | | | - 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
* Add -r argument to ldapd, to specify an alternative directory tolandry2016-02-011-3/+4
| | | | | | | | | | 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@
* bzero -> memset. No binary change.mmcc2015-12-241-7/+7
|
* Replace all queue *_END macro calls except CIRCLEQ_END with NULL.doug2014-09-131-3/+3
| | | | | | | | 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@
* Protect against fd exhaustion when reopening database files. Only acceptjmatthew2012-06-161-1/+17
| | | | | | | | 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@
* Move generic imsg/libevent glue to a separate file.martinh2010-09-011-2/+2
| | | | with eric@ at c2k10
* Retry requests when the btree is busy. Without this, clients will just hangmartinh2010-07-101-7/+12
| | | | | waiting for a response if the btree was being reopened when the request was received.
* Add support for referrals. Referrals are configured in the config file,martinh2010-06-291-6/+38
| | | | | | 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.
* Set errno to appropriate values when returning failure in btree. Make btreemartinh2010-06-231-21/+25
| | | | | functions only return success or failure (-1 or NULL). Update callers to check errno.
* Move around some functions to ease re-use from ldapctl.martinh2010-06-151-115/+3
|
* Make modify and simple auth requests open their own transactions, as searchmartinh2010-06-151-95/+83
| | | | | | | | | 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.
* Implement support in the parent to (re-)open database files on behalf ofmartinh2010-06-151-1/+29
| | | | | the unprivileged child over imsg. Part of a larger change that will fix database compaction.
* Track changes in btree_txn_* API, pass a NULL btree when also passing amartinh2010-06-111-3/+3
| | | | transaction.
* Open database files before chrooting, and use an absolute path tomartinh2010-06-031-3/+3
| | | | | | | | | 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@
* namespace_new() leaks `ns' on error path.martinh2010-06-011-1/+2
| | | | from zinovik@
* Initial import of ldapd, a small LDAP daemon. Work in progress.martinh2010-05-311-0/+594
ok deraadt@ jacekm@ gilles@ back@ henning@ blambert@