CVS: cvs.openbsd.org: src

2010-05-31 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/05/31 11:27:50 src/usr.sbin/ldapd Update of /cvs/src/usr.sbin/ldapd In directory cvs.openbsd.org:/tmp/cvs-serv32412/ldapd Log Message: Directory /cvs/src/usr.sbin/ldapd added to the repository

CVS: cvs.openbsd.org: src

2010-05-31 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/05/31 11:27:51 src/usr.sbin/ldapctl Update of /cvs/src/usr.sbin/ldapctl In directory cvs.openbsd.org:/tmp/cvs-serv32412/ldapctl Log Message: Directory /cvs/src/usr.sbin/ldapctl added to the repository

CVS: cvs.openbsd.org: src

2010-05-31 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/05/31 11:28:10 src/usr.sbin/ldapd/schema Update of /cvs/src/usr.sbin/ldapd/schema In directory cvs.openbsd.org:/tmp/cvs-serv15371/schema Log Message: Directory /cvs/src/usr.sbin/ldapd/schema added to the

CVS: cvs.openbsd.org: src

2010-05-31 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/05/31 11:36:31 Added files: usr.sbin/ldapd : Makefile aldap.h attributes.c auth.c ber.c ber.h btest.c btree.3 btree.c btree.h compact.c conn.c

CVS: cvs.openbsd.org: src

2010-05-31 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/05/31 12:29:04 Modified files: usr.sbin/ldapd : btree.c compact.c conn.c index.c ldapd.c ldape.c parse.y search.c ssl.c ssl_privsep.c uuid.c Log

CVS: cvs.openbsd.org: src

2010-06-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/01 09:10:04 Modified files: usr.sbin/ldapd : namespace.c Log message: namespace_new() leaks `ns' on error path. from zinovik@

CVS: cvs.openbsd.org: src

2010-06-02 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/02 03:12:13 Modified files: usr.sbin/ldapd : parse.y btree.c Log message: remove c++ comments ok gilles@

CVS: cvs.openbsd.org: src

2010-06-03 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/03 11:29:54 Modified files: usr.sbin/ldapd : namespace.c ldape.c ldapd.h Log message: Open database files before chrooting, and use an absolute path to the database files, instead of relying on the

CVS: cvs.openbsd.org: src

2010-06-03 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/03 11:32:25 Modified files: usr.sbin/ldapd : search.c index.c btree.c Log message: Fix compilation on gcc2. Check a return value from malloc while at it. that compiles! deraadt@

CVS: cvs.openbsd.org: src

2010-06-03 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/03 11:49:47 Modified files: etc: ftpusers group master.passwd etc/mail : aliases usr.sbin : Makefile Log message: enable ldapd and ldapctl in the build ok

CVS: cvs.openbsd.org: src

2010-06-05 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/05 09:27:35 Modified files: usr.sbin/ldapd : ber.c Log message: Minimize changes against the ber.c in snmpd and ypldap. This also fixes an erroneous protocol error return in ldap_extended(), which

CVS: cvs.openbsd.org: src

2010-06-05 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/05 11:29:14 Modified files: usr.sbin/ldapd : Makefile etc: Makefile etc/mtree : 4.4BSD.dist Added files: etc: ldapd.conf Log message: Install

CVS: cvs.openbsd.org: src

2010-06-08 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/08 11:52:47 Modified files: usr.sbin/snmpd : ber.c usr.sbin/ypldap: ber.c usr.sbin/ldapd : ber.c Log message: ber_calc_len() is not an internal function, so adjust the comment.

CVS: cvs.openbsd.org: src

2010-06-10 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/10 23:29:22 Modified files: usr.sbin/ldapd : btree.c btree.h Log message: Append a tombstone meta page after a database has been compacted. This allows other processes to pick up the change and

CVS: cvs.openbsd.org: src

2010-06-11 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/11 01:41:16 Modified files: usr.sbin/ldapd : btree.c Log message: Allow functions that accept both a btree and a txn argument to be passed a NULL btree pointer. In that case the btree is taken from

CVS: cvs.openbsd.org: src

2010-06-11 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/11 02:27:58 Modified files: usr.sbin/ldapd : ldape.c Log message: print long long int as %lld

CVS: cvs.openbsd.org: src

2010-06-11 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/11 02:40:32 Modified files: usr.sbin/ldapd : btree.c Log message: Keep returning BT_DEAD if last meta page has the tombstone bit set.

CVS: cvs.openbsd.org: src

2010-06-11 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/11 02:45:06 Modified files: usr.sbin/ldapd : index.c namespace.c Log message: Track changes in btree_txn_* API, pass a NULL btree when also passing a transaction.

CVS: cvs.openbsd.org: src

2010-06-11 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/11 06:02:03 Modified files: usr.sbin/ldapd : ldapd.h search.c Log message: Wrap searches in a read-only transaction so it is guaranteed to see a consistent snapshot of the database. Also fixes a

CVS: cvs.openbsd.org: src

2010-06-13 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/13 00:46:03 Modified files: usr.sbin/ldapd : btree.h Log message: Fix value clash in btree flags BT_FIXPADDING and BT_NOSYNC.

CVS: cvs.openbsd.org: src

2010-06-13 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/13 00:55:33 Modified files: usr.sbin/ldapd : btree.c btree.h Log message: Don't expose typedefs of pgno_t and indx_t in the public header file, move them to btree.c. Also don't use exact-width

CVS: cvs.openbsd.org: src

2010-06-14 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/14 07:46:08 Modified files: usr.sbin/ypldap: ber.c usr.sbin/snmpd : ber.c Log message: Fixes unlinking the first element inside a set or a sequence, and fix reading empty sequences/sets.

CVS: cvs.openbsd.org: src

2010-06-15 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/15 08:43:56 Modified files: usr.sbin/ldapd : ldapd.c Log message: EV_READ and EV_WRITE are not mutually exclusive, so check if we get both in the same event.

CVS: cvs.openbsd.org: src

2010-06-15 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/15 09:12:54 Modified files: usr.sbin/ldapd : ldapd.c ldapd.h ldape.c namespace.c Log message: Implement support in the parent to (re-)open database files on behalf of the unprivileged child over

CVS: cvs.openbsd.org: src

2010-06-15 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/15 09:14:57 Modified files: usr.sbin/ldapd : uuid.c uuid.h Log message: remove unused uuid_hash function, found by lint

CVS: cvs.openbsd.org: src

2010-06-15 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/15 09:47:56 Modified files: usr.sbin/ldapd : auth.c ldapd.h modify.c namespace.c search.c Log message: Make modify and simple auth requests open their own transactions, as search already does.

CVS: cvs.openbsd.org: src

2010-06-15 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/15 09:54:39 Modified files: usr.sbin/ldapd : btree.c Log message: Verify that a transaction passed to btree_tnx_{put,del} is not readonly.

CVS: cvs.openbsd.org: src

2010-06-15 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/15 13:30:26 Modified files: usr.sbin/ldapd : ldapd.h namespace.c parse.y util.c Log message: Move around some functions to ease re-use from ldapctl.

CVS: cvs.openbsd.org: src

2010-06-17 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/17 12:36:36 Modified files: usr.sbin/ldapd : btree.c Log message: Fix byte alignment on sparc64. From Alexander Schrijver.

CVS: cvs.openbsd.org: src

2010-06-23 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/23 06:40:19 Modified files: usr.sbin/ldapd : Makefile control.c index.c ldapd.h ldape.c Removed files: usr.sbin/ldapd : compact.c Log message: Remove compaction and indexing from ldapd. It

CVS: cvs.openbsd.org: src

2010-06-23 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/23 07:10:14 Modified files: usr.sbin/ldapd : auth.c btree.c btree.h index.c modify.c namespace.c search.c Log message: Set errno to appropriate values when returning

CVS: cvs.openbsd.org: src

2010-06-26 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/26 17:19:42 Modified files: usr.sbin/ldapd : index.c Log message: Unbreak removal of one-level search index.

CVS: cvs.openbsd.org: src

2010-06-26 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/26 19:23:08 Modified files: usr.sbin/ldapd : btree.c Log message: Add support for different page sizes in the btree. Add a new header page type and move the page size, magic and version from the

CVS: cvs.openbsd.org: src

2010-06-27 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/27 10:01:08 Modified files: usr.sbin/ldapd : ldapd.h Log message: remove an unused typedef

CVS: cvs.openbsd.org: src

2010-06-27 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/27 10:24:18 Modified files: usr.sbin/ldapd : control.c ldapd.h Log message: Remove unused code.

CVS: cvs.openbsd.org: src

2010-06-27 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/27 12:19:36 Modified files: usr.sbin/ldapd : uuid.c uuid.h ssl.c ssl_privsep.c Log message: Remove unused functions and variables, found by lint.

CVS: cvs.openbsd.org: src

2010-06-27 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/27 12:31:13 Modified files: usr.sbin/ldapd : ldapd.h conn.c Log message: return value unused, found by lint

CVS: cvs.openbsd.org: src

2010-06-28 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/28 11:42:03 Modified files: usr.sbin/ldapd/schema: nis.schema Log message: Use the proper OIDs for syntax description, instead of bogus symbolic names.

CVS: cvs.openbsd.org: src

2010-06-28 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/28 20:45:46 Modified files: usr.sbin/ldapd : Makefile ldapd.h modify.c parse.y search.c validate.c Added files: usr.sbin/ldapd : schema.c schema.h Log message:

CVS: cvs.openbsd.org: src

2010-06-28 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/28 20:50:22 Modified files: etc: ldapd.conf Log message: Update default ldapd.conf to reflect changes in the schema parser. Use 'schema' instead of 'include' to parse schema files.

CVS: cvs.openbsd.org: src

2010-06-28 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/28 22:27:15 Modified files: usr.sbin/ldapd : btree.c Log message: Fix signedness warnings. Noticed by deraadt

CVS: cvs.openbsd.org: src

2010-06-29 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/29 15:00:34 Modified files: usr.sbin/ldapd : conn.c ldapd.h ldape.c Log message: Remember on what listener a connection got from, and return protocol error if trying to use starttls without a

CVS: cvs.openbsd.org: src

2010-06-29 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/29 15:23:13 Modified files: usr.sbin/ldapd : ldapd.conf.5 Log message: document the 'schema' keyword, and remove the placeholders for schema syntax

CVS: cvs.openbsd.org: src

2010-06-29 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/29 15:54:38 Modified files: usr.sbin/ldapd : auth.c ldapd.conf.5 ldapd.h ldape.c modify.c namespace.c parse.y search.c Log message: Add support for referrals. Referrals are

CVS: cvs.openbsd.org: src

2010-06-29 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/29 21:24:40 Modified files: usr.sbin/ldapd : validate.c Log message: Validate that all attributes are allowed by any of its object classes. Properly expand the object class hierarchy before doing

CVS: cvs.openbsd.org: src

2010-06-29 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/29 22:14:59 Modified files: usr.sbin/ldapd : schema.c Log message: Verify that any object class subclassing is allowed.

CVS: cvs.openbsd.org: src

2010-06-29 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/29 22:17:04 Modified files: usr.sbin/ldapd : schema.h validate.c Log message: Move OBJ_NAME and ATTR_NAME macros to schema.h so it's reachable from schema parser. Also fix a typo.

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 11:16:09 Modified files: usr.sbin/ldapd : ldape.c control.c Log message: Don't send statistics for referral namespaces. This unbreaks ldapctl stats. Avoid null pointer dereference when reopening

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 13:26:39 Modified files: usr.sbin/ldapd : auth.c ldapd.conf.5 ldapd.h parse.y Log message: Add a global root user that is allowed to read/write entries in all local namespaces. Useful for

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 13:35:20 Modified files: usr.sbin/ldapd : validate.c Log message: Validate that an entry can't belong to an abstract object class directly, unless it also belongs to a subclassed object class

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 13:42:40 Modified files: usr.sbin/ldapd : validate.c schema.c Log message: remove trailing spaces

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 14:36:57 Modified files: usr.sbin/ldapd : ldapd.conf.5 Log message: Change the example for the 'include' keyword as schema files are no longer included that way. pointed out by william@

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 15:44:33 Modified files: usr.sbin/ldapd : btree.c Log message: Don't prune page cache directly when adding to it. Fixes a crash with a zero cache-size. found by william@

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 16:16:53 Modified files: usr.sbin/ldapd : parse.y Log message: Set a default btree cache size.

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 18:43:56 Modified files: usr.sbin/ldapd : modify.c Log message: Add checks that we're not adding immutable attributes, just as we're disallowing modifying immutable attributes. Remove the check

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 20:19:11 Modified files: usr.sbin/ldapd : btree.c ldapd.c ldape.c search.c ssl.c Log message: Remove dead assignments. Found by clang static analyzer.

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 21:47:59 Modified files: usr.sbin/ldapd : schema.c Log message: Fix two possible null pointer assignments in the error path. found by clang static analyzer

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 22:21:41 Modified files: usr.sbin/ldapd : ber.c Log message: If the length of an element being read is larger than what is available in the buffer, return immediately. This fixes reading large

CVS: cvs.openbsd.org: src

2010-06-30 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/06/30 23:13:11 Modified files: usr.sbin/ldapd : btree.c Log message: Copy statistics to the compacted database so it isn't lost.

CVS: cvs.openbsd.org: src

2010-07-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/01 00:11:59 Modified files: usr.sbin/ldapd : btree.c Log message: reset number of revisions after compaction

CVS: cvs.openbsd.org: src

2010-07-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/01 00:15:55 Modified files: usr.sbin/ldapd : validate.c Log message: Free the list of object classes allocated after validating an entry.

CVS: cvs.openbsd.org: src

2010-07-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/01 11:21:25 Modified files: usr.sbin/ldapd : schema.c Log message: Give a more descriptive error message when an object class definition references non-existent attribute types. from william@

CVS: cvs.openbsd.org: src

2010-07-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/01 12:37:12 Modified files: usr.sbin/ldapd : schema.c schema.h Log message: Parse (and ignore) schema extensions with an X- prefix. Bail on unknown keywords.

CVS: cvs.openbsd.org: src

2010-07-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/01 14:09:34 Modified files: usr.sbin/ldapd : conn.c ldapd.h ldape.c Log message: Implement the LDAP compare operation.

CVS: cvs.openbsd.org: src

2010-07-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/01 18:42:50 Modified files: usr.sbin/ldapd : schema.c Log message: Fix memory leaks in schema parser.

CVS: cvs.openbsd.org: src

2010-07-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/01 19:43:00 Modified files: usr.sbin/ldapd : btree.c btree.h Log message: Add a BT_CURSOR_EXACT operation to btree_cursor_get. It behaves like BT_CURSOR, but fails if the key is not found.

CVS: cvs.openbsd.org: src

2010-07-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/01 19:44:45 Modified files: usr.sbin/ldapd : modify.c Log message: Disallow deleting non-leaf nodes.

CVS: cvs.openbsd.org: src

2010-07-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/01 20:42:02 Modified files: usr.sbin/ldapd : modify.c Log message: Don't validate modification of immutable attributes if the namespace is configured with relaxed schema checking.

CVS: cvs.openbsd.org: src

2010-07-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/01 23:23:40 Modified files: usr.sbin/ldapd : schema.c schema.h search.c Log message: Dump parsed schema to buffer and send in requests for the cn=schema subschema namespace. Only do this if

CVS: cvs.openbsd.org: src

2010-07-05 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/05 08:27:06 Modified files: usr.sbin/ldapd : modify.c Log message: Close cursor on delete. Fixes memory leak introduced by non-leaf delete check.

CVS: cvs.openbsd.org: src

2010-07-05 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/05 15:06:45 Modified files: usr.sbin/ldapd : btree.c Log message: Unbreak writing updates to the btree while having a cursor open on the affected pages. When a cursor has increased the reference

CVS: cvs.openbsd.org: src

2010-07-06 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/06 03:27:06 Modified files: usr.sbin/ldapd : modify.c Log message: Check return code from commit. Incorrectly returned success when commit failed due to disk full.

CVS: cvs.openbsd.org: src

2010-07-06 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/06 07:05:35 Modified files: usr.sbin/ldapd : btree.c Log message: Adapt code to adhere to the comment (now that doesn't happen very often!). When deciding how to rebalancing after delete (move or

CVS: cvs.openbsd.org: src

2010-07-06 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/06 07:28:35 Modified files: usr.sbin/ldapd : btree.c Log message: When moving a node between pages during rebalance, find the source page prefix before finding any child page prefix. This fixes an

CVS: cvs.openbsd.org: src

2010-07-06 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/06 12:59:27 Modified files: usr.sbin/ldapd : ldapd.conf.5 Log message: Clarify differences between the 'include' and 'schema' keyword. And stress the 'secure' keyword. Looks fine to jmc@, gilles@

CVS: cvs.openbsd.org: src

2010-07-06 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/06 14:02:33 Modified files: usr.sbin/ldapd : modify.c Log message: Plug another memory leak. Forgot to reset key returned from cursor, having a reference to a cached page.

CVS: cvs.openbsd.org: src

2010-07-06 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/06 14:10:57 Modified files: usr.sbin/ldapd : btree.c control.c Log message: Send empty statistics rather than segfault if ldapctl stats is run when a database is being reopened due to compaction.

CVS: cvs.openbsd.org: src

2010-07-10 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/10 08:27:15 Modified files: usr.sbin/ldapd : ldapd.h ldape.c namespace.c Log message: Retry requests when the btree is busy. Without this, clients will just hang waiting for a response if the btree

CVS: cvs.openbsd.org: src

2010-07-13 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/13 06:54:51 Modified files: usr.sbin/ldapd : attributes.c modify.c Log message: Avoid double free in ldap modify requests. The values received in the modify request is linked into the stored ber

CVS: cvs.openbsd.org: src

2010-07-18 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/18 09:15:40 Modified files: usr.sbin/ldapd : btree.c Log message: Fix an unaligned memory access.

CVS: cvs.openbsd.org: src

2010-07-21 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/21 00:32:14 Modified files: usr.sbin/ldapctl: ldapctl.8 usr.sbin/ldapd : ldapd.8 ldapd.conf.5 Log message: Add a history section saying that ldapd/ldapctl first appeared in 4.8.

CVS: cvs.openbsd.org: src

2010-07-21 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/21 11:32:12 Modified files: usr.sbin/ypldap: aldap.c Log message: Search filter BER tags use a context-specific class, not an application class. This allows ypldap to talk to ldapd, which otherwise

CVS: cvs.openbsd.org: src

2010-07-26 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/26 03:27:14 Modified files: usr.sbin/ldapd : btree.c Log message: Fix a sigbus due to unaligned memory access, found when compacting on sparc64. reads ok to gilles@

CVS: cvs.openbsd.org: src

2010-07-27 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/27 02:37:33 Modified files: etc: rc rc.conf Log message: Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=. ok deraadt@ gilles@

CVS: cvs.openbsd.org: src

2010-07-28 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/07/28 04:06:19 Modified files: usr.sbin/ldapd : modify.c Log message: Revert parts of previous change leading to assertion failure for certain modify operations. Also fix logic error when replacing an

CVS: cvs.openbsd.org: src

2010-09-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/01 06:13:21 Modified files: usr.sbin/ldapd : btree.c Log message: Do not use FP arithmetic. Variation on a diff from Mike Belopuhov some time ago.

CVS: cvs.openbsd.org: src

2010-09-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/01 11:34:15 Modified files: usr.sbin/ldapd : Makefile auth.c control.c ldapd.c ldapd.h ldape.c namespace.c Added files: usr.sbin/ldapd : imsgev.c imsgev.h Log

CVS: cvs.openbsd.org: src

2010-09-01 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/01 12:30:48 Modified files: usr.sbin/ldapd : schema.c Log message: Add missing leading string quote character in attribute type description. Caused syntax errors when parsing schema from the

CVS: cvs.openbsd.org: src

2010-09-03 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/03 03:39:17 Modified files: usr.sbin/ldapd : Makefile schema.c schema.h validate.c Added files: usr.sbin/ldapd : syntax.c Log message: Implement attribute syntaxes from RFC4517. This adds

CVS: cvs.openbsd.org: src

2010-09-03 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/03 03:53:24 Modified files: usr.sbin/ldapd : schema.c validate.c Log message: Resolve matching rules from superior attribute types at schema load time instead of when each attribute is validated.

CVS: cvs.openbsd.org: src

2010-09-03 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/03 08:34:02 Modified files: usr.sbin/ldapctl: Makefile Log message: Need syntax.c to build the schema parser. Sorry for that.

CVS: cvs.openbsd.org: src

2010-09-20 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/20 02:30:13 Modified files: usr.sbin/snmpd : ber.c Log message: Allow output of null values with a context class. This is used in SNMPv2 to return an error exception value for a varbind result

CVS: cvs.openbsd.org: src

2010-09-20 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/20 02:33:18 Modified files: usr.sbin/snmpd : snmpe.c Log message: ber_scanf_elements i format expects a long long pointer.

CVS: cvs.openbsd.org: src

2010-09-20 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/20 06:32:41 Modified files: usr.sbin/snmpd : snmpe.c Log message: Use strvis to encode octet strings in -DDEBUG mode. Makes my terminal happier when debugging.

CVS: cvs.openbsd.org: src

2010-09-20 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/20 11:26:48 Modified files: usr.sbin/ldapd : auth.c Log message: Implement support for bsdauth authentication via simple binds, not only SASL. This works by prefixing the userPassword attribute with

CVS: cvs.openbsd.org: src

2010-09-21 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/09/21 04:41:32 Modified files: usr.sbin/ldapd : schema.c Log message: Warn if schema file can't be opened.

CVS: cvs.openbsd.org: src

2010-10-19 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/10/19 03:10:13 Modified files: usr.sbin/ldapd : auth.c conn.c ldapd.h Log message: Remember the bind DN after BSD authentication. This makes access control work for SASL and BSDAUTH binds as it does

CVS: cvs.openbsd.org: src

2010-10-19 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/10/19 03:20:48 Modified files: usr.sbin/ldapd : ber.c Log message: When checking if the input buffer is large enough to hold an LDAP request, compare with available space, not the total space. This

CVS: cvs.openbsd.org: src

2010-10-19 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/10/19 03:34:41 Modified files: usr.sbin/ldapd : attributes.c Log message: Fix a segmentation fault when adding an attribute to an empty entry.

CVS: cvs.openbsd.org: src

2010-11-02 Thread Martin Hedenfalk
CVSROOT:/cvs Module name:src Changes by: mart...@cvs.openbsd.org 2010/11/02 13:39:52 Modified files: usr.sbin/ldapd : ldapd.8 Log message: Clarify the current state of ldapd as not fully LDAPv3 compliant.

  1   2   >