]> git.sur5r.net Git - openldap/log
openldap
12 years agoCleanup ISO C compatibility for recent commits
Hallvard Furuseth [Sun, 18 Sep 2011 19:49:25 +0000 (21:49 +0200)]
Cleanup ISO C compatibility for recent commits

12 years agoSupport single parameter substitution in filter
Howard Chu [Sun, 18 Sep 2011 20:24:24 +0000 (13:24 -0700)]
Support single parameter substitution in filter

12 years agodeltasync test tweaks
Howard Chu [Sat, 17 Sep 2011 10:08:02 +0000 (03:08 -0700)]
deltasync test tweaks

Check replication success before stopping consumer.
Set retry/interval to make sure consumer reconnects after provider restart.

12 years agoAdd a few NULL checks to defend against dumb API checkers.
Howard Chu [Fri, 9 Sep 2011 06:41:06 +0000 (23:41 -0700)]
Add a few NULL checks to defend against dumb API checkers.

Unfortunately automated checkers don't seem to read the documentation
for how APIs are expected to be used, and the C declaration syntax
isn't expressive enough to encode the documented usage.

12 years agoITS#7039
Quanah Gibson-Mount [Wed, 2 Nov 2011 21:22:57 +0000 (14:22 -0700)]
ITS#7039

12 years agofix uninit'ed vars (ITS#7039)
Pierangelo Masarati [Thu, 8 Sep 2011 21:31:21 +0000 (23:31 +0200)]
fix uninit'ed vars (ITS#7039)

12 years agoITS#6925
Quanah Gibson-Mount [Wed, 2 Nov 2011 21:11:03 +0000 (14:11 -0700)]
ITS#6925

12 years agosilence warning
Pierangelo Masarati [Thu, 8 Sep 2011 23:08:05 +0000 (01:08 +0200)]
silence warning

12 years agoimport ITS#6925 patch; fix peeraddr variable name clash in LDAP_CONNECTIONLESS code...
Pierangelo Masarati [Thu, 8 Sep 2011 23:07:17 +0000 (01:07 +0200)]
import ITS#6925 patch; fix peeraddr variable name clash in LDAP_CONNECTIONLESS code; fix scope of addr[] when inet_ntop(3) is used

12 years agoFix log parsing, broken by 8d74f71
Howard Chu [Fri, 2 Sep 2011 20:22:41 +0000 (13:22 -0700)]
Fix log parsing, broken by 8d74f71

12 years agotests/data/: #bdb,hdb# -> #maindb/indexdb#.
Hallvard Furuseth [Thu, 1 Sep 2011 11:43:55 +0000 (13:43 +0200)]
tests/data/: #bdb,hdb# -> #maindb/indexdb#.

Done for keywords index,limits.  (Also do 'mode' if there were any cases.)
Change generated by:  perl -i -pw0777e '
  INIT { $q=qr/\#(?:[bh]|index|main)db\#/im; $k=qr/(?:index|limits|mode)\b/ }
  0 while s/^$q($k.*\n)((?:$q.*\n)*?)\n?$q\1/\#maindb\#$1$2/imo;
  s/^\#maindb\#index/\#indexdb\#index/igm;
' tests/data/*.* tests/data/regressions/*/*.*

12 years agotests: Add $MAINDB, $INDEXDB for [bhn]db tests.
Hallvard Furuseth [Thu, 1 Sep 2011 11:08:06 +0000 (13:08 +0200)]
tests: Add $MAINDB, $INDEXDB for [bhn]db tests.

Simplifies tests for the DB storage backends.
Adds indexing etc to ndb in some cases, to match bdb/hdb.
This also fixes some broken back-null/back-ldif settings.

12 years agoFix loglevel <integer> to be loglevel <level> to match reality (and olcLogLevel descr...
Quanah Gibson-Mount [Thu, 8 Sep 2011 21:05:56 +0000 (14:05 -0700)]
Fix loglevel <integer> to be loglevel <level> to match reality (and olcLogLevel description too!)

12 years agoAlso track skipped (non-executable) tests
Howard Chu [Thu, 1 Sep 2011 00:35:06 +0000 (17:35 -0700)]
Also track skipped (non-executable) tests

12 years agoAdd NOEXIT envvar to run all tests and tally failures
Howard Chu [Wed, 31 Aug 2011 22:15:39 +0000 (15:15 -0700)]
Add NOEXIT envvar to run all tests and tally failures

12 years agoITS#7035
Quanah Gibson-Mount [Fri, 28 Oct 2011 02:41:32 +0000 (19:41 -0700)]
ITS#7035

12 years agoITS#7035 don't loop forever in wait4msg
Howard Chu [Wed, 7 Sep 2011 04:13:49 +0000 (21:13 -0700)]
ITS#7035 don't loop forever in wait4msg

12 years agoITS#7073
Quanah Gibson-Mount [Fri, 28 Oct 2011 02:34:25 +0000 (19:34 -0700)]
ITS#7073

12 years agoRelax entry_header, zero-length entries are valid.
Howard Chu [Sat, 27 Aug 2011 21:35:31 +0000 (14:35 -0700)]
Relax entry_header, zero-length entries are valid.

12 years agoFix moduleload path
Howard Chu [Fri, 26 Aug 2011 21:31:35 +0000 (14:31 -0700)]
Fix moduleload path

12 years agoITS#7030
Quanah Gibson-Mount [Fri, 28 Oct 2011 02:19:57 +0000 (19:19 -0700)]
ITS#7030

12 years agoITS#7030 fix overlay_insert() with specific index
Howard Chu [Fri, 26 Aug 2011 03:51:30 +0000 (20:51 -0700)]
ITS#7030 fix overlay_insert() with specific index

12 years agoITS#6983
Quanah Gibson-Mount [Fri, 28 Oct 2011 02:17:29 +0000 (19:17 -0700)]
ITS#6983

12 years agoITS#6983 fix duplicate entry in HDB subtree IDL
Howard Chu [Thu, 25 Aug 2011 21:47:23 +0000 (14:47 -0700)]
ITS#6983 fix duplicate entry in HDB subtree IDL

12 years agoITS#7014
Quanah Gibson-Mount [Fri, 28 Oct 2011 02:14:38 +0000 (19:14 -0700)]
ITS#7014
ITS#7022
ITS#7023
ITS#7028

12 years agoITS#7028 man: ldap_sync(3) ldap_sync_destroy type
Jan Vcelak [Wed, 24 Aug 2011 17:21:35 +0000 (19:21 +0200)]
ITS#7028 man: ldap_sync(3) ldap_sync_destroy type

12 years agoITS#7028 man: slapo-unique(5) quoting keywords
Jan Vcelak [Wed, 24 Aug 2011 17:19:09 +0000 (19:19 +0200)]
ITS#7028 man: slapo-unique(5) quoting keywords

12 years agoITS#7023 document TLSCACertificateFile in the man page as it is in the Admin Guide
Francis Swasey [Thu, 18 Aug 2011 16:01:35 +0000 (12:01 -0400)]
ITS#7023 document TLSCACertificateFile in the man page as it is in the Admin Guide

12 years agoITS#7022 cleanup prev commit
Howard Chu [Wed, 24 Aug 2011 22:37:52 +0000 (15:37 -0700)]
ITS#7022 cleanup prev commit

12 years agoITS#7022 NSS_Init* functions are not thread safe
Rich Megginson [Tue, 16 Aug 2011 18:01:16 +0000 (12:01 -0600)]
ITS#7022 NSS_Init* functions are not thread safe

The NSS_InitContext et. al, and their corresponding shutdown functions,
are not thread safe.  There can only be one thread at a time calling
these functions.  Protect the calls with a mutex.  Create the mutex
using a PR_CallOnce to ensure that the mutex is only created once and
not used before created.  Move the registration of the nss shutdown
callback to also use a PR_CallOnce.  Removed the call to
SSL_ClearSessionCache() because it is always called at shutdown, and we must
not call it more than once.

12 years agoITS#7014 TLS: don't check hostname if reqcert is 'allow'
Jan Vcelak [Tue, 9 Aug 2011 13:21:34 +0000 (15:21 +0200)]
ITS#7014 TLS: don't check hostname if reqcert is 'allow'

If server certificate hostname does not match the server hostname,
connection is closed even if client has set TLS_REQCERT to 'allow'. This
is wrong - the documentation says, that bad certificates are being
ignored when TLS_REQCERT is set to 'allow'.

12 years agoMore abandon paranoia
Howard Chu [Wed, 24 Aug 2011 21:57:36 +0000 (14:57 -0700)]
More abandon paranoia

12 years agoAndroid/ARM portability
Howard Chu [Sat, 15 Oct 2011 05:03:46 +0000 (22:03 -0700)]
Android/ARM portability

2-byte alignment isn't good enough for subpages

12 years agoFix page_split with MDB_RESERVE
Howard Chu [Fri, 7 Oct 2011 01:53:07 +0000 (18:53 -0700)]
Fix page_split with MDB_RESERVE

12 years agoDon't replicate refint repair ops
Howard Chu [Mon, 22 Aug 2011 21:05:58 +0000 (14:05 -0700)]
Don't replicate refint repair ops

12 years agoerror messages from ldapsearch changed
Pierangelo Masarati [Mon, 22 Aug 2011 14:43:21 +0000 (08:43 -0600)]
error messages from ldapsearch changed

12 years agofurther cleanup of ldapsearch response
Pierangelo Masarati [Mon, 22 Aug 2011 17:18:07 +0000 (11:18 -0600)]
further cleanup of ldapsearch response

12 years agoreferral is a legitimate result
Pierangelo Masarati [Mon, 22 Aug 2011 15:07:54 +0000 (09:07 -0600)]
referral is a legitimate result

12 years agomake sure size limits are passed to ldapsearch
Pierangelo Masarati [Mon, 22 Aug 2011 15:02:02 +0000 (09:02 -0600)]
make sure size limits are passed to ldapsearch

12 years agoITS#7021
Quanah Gibson-Mount [Thu, 6 Oct 2011 23:51:40 +0000 (16:51 -0700)]
ITS#7021

12 years agoadd notes about pwdAllowUserChange (more about ITS#7021)
Pierangelo Masarati [Sun, 21 Aug 2011 01:02:06 +0000 (19:02 -0600)]
add notes about pwdAllowUserChange (more about ITS#7021)

12 years agoaccording to draft-behera, this attribute only affects password modifies by self...
Pierangelo Masarati [Sun, 21 Aug 2011 00:50:33 +0000 (18:50 -0600)]
according to draft-behera, this attribute only affects password modifies by self (ITS#7021)

12 years agoFix subcursor initialization
Howard Chu [Thu, 6 Oct 2011 23:11:25 +0000 (16:11 -0700)]
Fix subcursor initialization

12 years agoFor #6982 fix a66fb16
Howard Chu [Thu, 18 Aug 2011 08:52:52 +0000 (01:52 -0700)]
For #6982 fix a66fb16

12 years agoITS#7017
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:58:19 +0000 (16:58 -0700)]
ITS#7017

12 years agofix TTL tolerance (ITS#7017, patch by jvcelak@redhat.com)
Pierangelo Masarati [Wed, 17 Aug 2011 18:56:55 +0000 (12:56 -0600)]
fix TTL tolerance (ITS#7017, patch by jvcelak@redhat.com)

12 years agoITS#7016
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:57:21 +0000 (16:57 -0700)]
ITS#7016

12 years agomake sure frontend gets the {-1} (ITS#7016)
Pierangelo Masarati [Wed, 17 Aug 2011 04:17:43 +0000 (22:17 -0600)]
make sure frontend gets the {-1} (ITS#7016)

12 years agohack for #6982 - keep o_abandon set in op_free
Howard Chu [Tue, 16 Aug 2011 20:51:10 +0000 (13:51 -0700)]
hack for #6982 - keep o_abandon set in op_free

12 years agoRevert "More for ITS#6892"
Howard Chu [Tue, 16 Aug 2011 20:49:27 +0000 (13:49 -0700)]
Revert "More for ITS#6892"

This reverts commit 3cb2ca8bbd1ec8da8f27a608deefc7a2d45aa538.
Patch has no benefit

12 years agoITS#6892 again
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:52:12 +0000 (16:52 -0700)]
ITS#6892 again

12 years agoMore for ITS#6892
Howard Chu [Mon, 15 Aug 2011 22:40:46 +0000 (15:40 -0700)]
More for ITS#6892

12 years agoITS#7018
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:50:32 +0000 (16:50 -0700)]
ITS#7018

12 years agohost part of unique URI must be empty (ITS#7018)
Pierangelo Masarati [Sat, 13 Aug 2011 21:33:19 +0000 (23:33 +0200)]
host part of unique URI must be empty (ITS#7018)

12 years agoITS#7015
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:48:57 +0000 (16:48 -0700)]
ITS#7015

12 years agocleanup slapd.ldif; install it (ITS#7015)
Pierangelo Masarati [Thu, 11 Aug 2011 15:33:08 +0000 (17:33 +0200)]
cleanup slapd.ldif; install it (ITS#7015)

12 years agotypo in comment
Pierangelo Masarati [Thu, 11 Aug 2011 15:02:25 +0000 (17:02 +0200)]
typo in comment

12 years agouse ldap_search_ext(timelimit) instead of ldap_set_option(LDAP_OPT_TIMELIMIT) (relate...
Pierangelo Masarati [Thu, 11 Aug 2011 10:16:01 +0000 (12:16 +0200)]
use ldap_search_ext(timelimit) instead of ldap_set_option(LDAP_OPT_TIMELIMIT) (related to ITS#7009)

12 years agoITS#7009
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:46:29 +0000 (16:46 -0700)]
ITS#7009

12 years agohonor TIMEOUT when appropriate (ITS#7009); also honor timelimit (was broken)
Pierangelo Masarati [Wed, 10 Aug 2011 20:39:16 +0000 (22:39 +0200)]
honor TIMEOUT when appropriate (ITS#7009); also honor timelimit (was broken)

12 years agoITS#7012
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:45:20 +0000 (16:45 -0700)]
ITS#7012

12 years agomake sure 2-arg statements have exactly 2 args (related to ITS#7012)
Pierangelo Masarati [Wed, 10 Aug 2011 18:22:33 +0000 (20:22 +0200)]
make sure 2-arg statements have exactly 2 args (related to ITS#7012)

12 years agoTLS config statements always need an argument (related to ITS#7012)
Pierangelo Masarati [Wed, 10 Aug 2011 17:40:20 +0000 (19:40 +0200)]
TLS config statements always need an argument (related to ITS#7012)

12 years agoITS#6999
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:42:53 +0000 (16:42 -0700)]
ITS#6999

12 years agoITS#6999 fix syncrepl timeout in refreshAndPersist
Howard Chu [Fri, 29 Jul 2011 20:05:45 +0000 (13:05 -0700)]
ITS#6999 fix syncrepl timeout in refreshAndPersist

12 years agoITS#7001
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:41:45 +0000 (16:41 -0700)]
ITS#7001
ITS#7002

12 years agoITS#7002 MozNSS: fix VerifyCert allow/try behavior
Rich Megginson [Thu, 28 Jul 2011 21:08:37 +0000 (14:08 -0700)]
ITS#7002 MozNSS: fix VerifyCert allow/try behavior

If the olcTLSVerifyClient is set to a value other than "never", the server
should request that the client send a client certificate for possible use
with client cert auth (e.g. SASL/EXTERNAL).
If set to "allow", if the client sends a cert, and there are problems with
it, the server will warn about problems, but will allow the SSL session to
proceed without a client cert.
If set to "try", if the client sends a cert, and there are problems with
it, the server will warn about those problems, and shutdown the SSL session.
If set to "demand" or "hard", the client must send a cert, and the server
will shutdown the SSL session if there are problems.
I added a new member of the tlsm context structure - tc_warn_only - if this
is set, tlsm_verify_cert will only warn about errors, and only if TRACE
level debug is set.  This allows the server to warn but allow bad certs
if "allow" is set, and warn and fail if "try" is set.

12 years agoITS#7001 MozNSS: free the return of tlsm_find_and_verify_cert_key
Rich Megginson [Tue, 26 Jul 2011 02:27:59 +0000 (20:27 -0600)]
ITS#7001 MozNSS: free the return of tlsm_find_and_verify_cert_key

If tlsm_find_and_verify_cert_key finds the cert and/or key, and it fails
to verify them, it will leave them allocated for the caller to dispose of.
There were a couple of places that were not disposing of the cert and key
upon error.

12 years agoITS#7000
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:38:00 +0000 (16:38 -0700)]
ITS#7000

12 years agoITS#7000 fix bad patch in ITS#6472
Howard Chu [Thu, 28 Jul 2011 20:52:47 +0000 (13:52 -0700)]
ITS#7000 fix bad patch in ITS#6472

12 years agoITS#6992,ITS#6998,ITS#7003
Quanah Gibson-Mount [Wed, 5 Oct 2011 23:19:24 +0000 (16:19 -0700)]
ITS#6992,ITS#6998,ITS#7003

12 years agoITS#7003 fix typo
Howard Chu [Thu, 28 Jul 2011 20:48:08 +0000 (13:48 -0700)]
ITS#7003 fix typo

12 years agoITS#6998 MozNSS: when cert not required, ignore issuer expiration
Jan Vcelak [Wed, 20 Jul 2011 16:55:33 +0000 (18:55 +0200)]
ITS#6998 MozNSS: when cert not required, ignore issuer expiration

When server certificate is not required in a TLS session (e.g.
TLS_REQCERT is set to 'never'), ignore expired issuer certificate error
and do not terminate the connection.

12 years agoblind fix build on solaris native compilers (ITS#6992)
Pierangelo Masarati [Fri, 8 Jul 2011 06:47:28 +0000 (08:47 +0200)]
blind fix build on solaris native compilers (ITS#6992)

12 years agoDon't use Append mode when splits are caused by sub-page inserts
Howard Chu [Tue, 4 Oct 2011 01:02:17 +0000 (18:02 -0700)]
Don't use Append mode when splits are caused by sub-page inserts

Sub-pages need room to grow...

12 years agoFix freelist bug on page split
Howard Chu [Mon, 3 Oct 2011 19:40:53 +0000 (12:40 -0700)]
Fix freelist bug on page split

NULL out env->pghead before writing it, so that its pages can't be used
to satisfy the write.

12 years agoAdd rudimentary MDB_MULTIPLE support for puts
Howard Chu [Mon, 3 Oct 2011 18:25:31 +0000 (11:25 -0700)]
Add rudimentary MDB_MULTIPLE support for puts

Only for DUPFIXED DBs. Still could do better.

12 years agoAdd MDB_APPEND to avoid splitting full pages
Howard Chu [Mon, 3 Oct 2011 04:27:07 +0000 (21:27 -0700)]
Add MDB_APPEND to avoid splitting full pages

12 years agoFix 6e05ca17e988754ae90fde1921765ba130bb90b2
Howard Chu [Mon, 3 Oct 2011 02:52:12 +0000 (19:52 -0700)]
Fix 6e05ca17e988754ae90fde1921765ba130bb90b2

Missed a MDB_RESERVE case

12 years agoAdd mdb_cursor_txn() and mdb_cursor_dbi() for querying the cursor
Howard Chu [Mon, 3 Oct 2011 02:27:31 +0000 (19:27 -0700)]
Add mdb_cursor_txn() and mdb_cursor_dbi() for querying the cursor

12 years agoAdd MDB_RESERVE mode
Howard Chu [Sun, 2 Oct 2011 17:02:30 +0000 (10:02 -0700)]
Add MDB_RESERVE mode

When putting a record, just make space for the data, don't copy it.
(Not compatible with MDB_DUPSORT, since the actual data is needed
to determine the insert location.)

12 years agoTweak cursor adjustment code
Howard Chu [Sat, 1 Oct 2011 05:15:05 +0000 (22:15 -0700)]
Tweak cursor adjustment code

Skip the original cursor that made the change

12 years agoMake sure mdb_open actually got a sub-db record
Howard Chu [Fri, 30 Sep 2011 04:07:07 +0000 (21:07 -0700)]
Make sure mdb_open actually got a sub-db record

12 years agoDoc for the MDB_NOSUBDIR env option
Howard Chu [Fri, 23 Sep 2011 04:46:12 +0000 (21:46 -0700)]
Doc for the MDB_NOSUBDIR env option

12 years agoAdd MDB_NOSUBDIR option
Howard Chu [Fri, 23 Sep 2011 01:05:06 +0000 (18:05 -0700)]
Add MDB_NOSUBDIR option

Create the data file using exactly the given pathname, and
the lock file using a suffix on the data file name.

12 years agoReader table notes
Howard Chu [Thu, 22 Sep 2011 11:34:40 +0000 (04:34 -0700)]
Reader table notes

12 years agoassert cleanup
Howard Chu [Thu, 22 Sep 2011 00:21:48 +0000 (17:21 -0700)]
assert cleanup

12 years agotxn_abort/commit free all their cursors now.
Howard Chu [Wed, 21 Sep 2011 23:37:29 +0000 (16:37 -0700)]
txn_abort/commit free all their cursors now.

12 years agoOnly free malloc'd cursors
Howard Chu [Wed, 21 Sep 2011 23:06:52 +0000 (16:06 -0700)]
Only free malloc'd cursors

12 years agoTrack changes to all cursors.
Howard Chu [Wed, 21 Sep 2011 21:14:11 +0000 (14:14 -0700)]
Track changes to all cursors.

For any change to a page or node, update all other cursors pointing
at the same page (or node). Cursors are now stored in a linked list
off their owning transaction. Cursors are all closed when the transaction
ends. Cursors in parent transactions are updated when their child
transaction commits.

12 years agoAdd support for nested transactions.
Howard Chu [Tue, 20 Sep 2011 19:57:05 +0000 (12:57 -0700)]
Add support for nested transactions.

12 years agolibmdb IDL cleanup.
Hallvard Furuseth [Tue, 13 Sep 2011 07:39:28 +0000 (09:39 +0200)]
libmdb IDL cleanup.

Microoptimize IDL search.
Use RANGE_<FIRST/LAST> when IDL is known to be a range.

12 years agoAdditional fix for prev commit
Howard Chu [Mon, 19 Sep 2011 01:26:54 +0000 (18:26 -0700)]
Additional fix for prev commit

12 years agoMake sure 2 subpages fit in one real page
Howard Chu [Mon, 19 Sep 2011 01:13:23 +0000 (18:13 -0700)]
Make sure 2 subpages fit in one real page

12 years agoFix last delete from a subpage
Howard Chu [Mon, 19 Sep 2011 00:07:47 +0000 (17:07 -0700)]
Fix last delete from a subpage

12 years agoFix 09006ccec7928c9cf53bca6abe741e8d4d466c98
Howard Chu [Sun, 18 Sep 2011 23:39:18 +0000 (16:39 -0700)]
Fix 09006ccec7928c9cf53bca6abe741e8d4d466c98

Check for stale DBs was in the wrong place.

12 years agoFix mdb_drop() if not deleting the DB record
Howard Chu [Sun, 18 Sep 2011 21:18:27 +0000 (14:18 -0700)]
Fix mdb_drop() if not deleting the DB record

12 years agoFix typo, minor cleanup
Howard Chu [Sun, 18 Sep 2011 20:28:08 +0000 (13:28 -0700)]
Fix typo, minor cleanup

12 years agoAdd mdb_drop() for deleting a DB
Howard Chu [Sun, 18 Sep 2011 19:37:02 +0000 (12:37 -0700)]
Add mdb_drop() for deleting a DB

Allow MIDLs to grow arbitrarily, to allow unlimited number of
pages to be freed in one txn.

12 years agoAPI change, consistency check
Howard Chu [Sun, 18 Sep 2011 17:38:08 +0000 (10:38 -0700)]
API change, consistency check

mdb_close() takes an env, not a txn.
Also, add check for stale DB records (in case some other process
wrote to the DB last).