History log of /openbsd-current/usr.sbin/ldapd/index.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.13 24-Oct-2019 tb

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 tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.12 28-Jun-2018 gsoares

avoid passing NULL to asprintf(3) when there's no parent dn entry
OK jca@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.11 20-Jan-2017 benno

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 tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 24-Dec-2015 mmcc

bzero -> memset. No binary change.


Revision tags: OPENBSD_5_8_BASE
# 1.9 03-Jun-2015 millert

Do not assume that asprintf() clears the pointer on failure, which
is non-portable. Also add missing asprintf() return value checks.
OK deraadt@ guenther@ doug@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.8 26-Nov-2010 martinh

Unbreak re-indexing by checking if an index entry already exists.


Revision tags: OPENBSD_4_8_BASE
# 1.7 26-Jun-2010 martinh

Unbreak removal of one-level search index.


# 1.6 23-Jun-2010 martinh

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.


# 1.5 23-Jun-2010 martinh

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


# 1.4 11-Jun-2010 martinh

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


# 1.3 03-Jun-2010 martinh

Fix compilation on gcc2. Check a return value from malloc while at it.

"that compiles!" deraadt@


# 1.2 31-May-2010 martinh

Remove trailing whitespace and spaces before tabs.

ok gilles@


# 1.1 31-May-2010 martinh

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

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


# 1.12 28-Jun-2018 gsoares

avoid passing NULL to asprintf(3) when there's no parent dn entry
OK jca@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.11 20-Jan-2017 benno

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 tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 24-Dec-2015 mmcc

bzero -> memset. No binary change.


Revision tags: OPENBSD_5_8_BASE
# 1.9 03-Jun-2015 millert

Do not assume that asprintf() clears the pointer on failure, which
is non-portable. Also add missing asprintf() return value checks.
OK deraadt@ guenther@ doug@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.8 26-Nov-2010 martinh

Unbreak re-indexing by checking if an index entry already exists.


Revision tags: OPENBSD_4_8_BASE
# 1.7 26-Jun-2010 martinh

Unbreak removal of one-level search index.


# 1.6 23-Jun-2010 martinh

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.


# 1.5 23-Jun-2010 martinh

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


# 1.4 11-Jun-2010 martinh

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


# 1.3 03-Jun-2010 martinh

Fix compilation on gcc2. Check a return value from malloc while at it.

"that compiles!" deraadt@


# 1.2 31-May-2010 martinh

Remove trailing whitespace and spaces before tabs.

ok gilles@


# 1.1 31-May-2010 martinh

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

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


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.11 20-Jan-2017 benno

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 tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.10 24-Dec-2015 mmcc

bzero -> memset. No binary change.


Revision tags: OPENBSD_5_8_BASE
# 1.9 03-Jun-2015 millert

Do not assume that asprintf() clears the pointer on failure, which
is non-portable. Also add missing asprintf() return value checks.
OK deraadt@ guenther@ doug@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
# 1.8 26-Nov-2010 martinh

Unbreak re-indexing by checking if an index entry already exists.


Revision tags: OPENBSD_4_8_BASE
# 1.7 26-Jun-2010 martinh

Unbreak removal of one-level search index.


# 1.6 23-Jun-2010 martinh

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.


# 1.5 23-Jun-2010 martinh

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


# 1.4 11-Jun-2010 martinh

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


# 1.3 03-Jun-2010 martinh

Fix compilation on gcc2. Check a return value from malloc while at it.

"that compiles!" deraadt@


# 1.2 31-May-2010 martinh

Remove trailing whitespace and spaces before tabs.

ok gilles@


# 1.1 31-May-2010 martinh

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

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