Howard Chu
99e22a4366
ITS#7628 fix back-mdb txn refcount
...
If multiple ops used the same opinfo the refcount wasn't being decremented
2013-06-23 19:13:52 -07:00
Jan Synacek
95241fae6c
ITS#7611 Fix loglevel2bvarray
2013-05-29 07:31:15 -07:00
Howard Chu
1d252a9236
Disable databases & overlays (experimental)
...
Do not use. backend/overlay code needs to be fixed accordingly.
In particular, code which currently frees configuration in _db_close()
must be changed to free only in _db_destroy().
After restructuring, it must be possible to call _db_close()/_db_open()
multiple times in succession without requiring _db_config() in between.
2013-05-28 13:09:44 -07:00
Howard Chu
b7df586674
ITS#7608 allow slapadd w/unknown RDNs for config DB
2013-05-27 18:51:34 -07:00
Howard Chu
f27236b0c0
ITS#7588 plug memleak
2013-05-27 11:17:05 -07:00
Howard Chu
6dab36e97a
ITS#7608 promoted attrs must have valid ad_index
2013-05-27 08:57:15 -07:00
Howard Chu
9649281f7b
ITS#7609 add per-target filter patterns
2013-05-26 18:43:46 -07:00
Howard Chu
a3de7c29ae
ITS#7604 fix modrdn, base-scope search
2013-05-24 11:08:25 -07:00
Howard Chu
1748f03041
ITS#7588 fix possible NULL-deref in prev commit
2013-05-24 08:23:44 -07:00
Howard Chu
3d5e7ef0d2
ITS#7581 more for prev commit
2013-05-23 11:45:05 -07:00
Howard Chu
82d7e9d8ab
ITS#7581 fix back-meta config checks
...
Allow base entry to be added online with targets
added later. Add SLAP_SERVER_RUNNING flag to note
that main slap_startup has already occurred.
2013-05-23 10:54:50 -07:00
Howard Chu
a8c1438688
ITS#7577 more alias deref checks
2013-05-17 09:15:36 -07:00
Howard Chu
37c8b35ebd
Cleanup, fix syncrepl config errmsg
2013-05-17 07:51:23 -07:00
Howard Chu
68cb9ae250
ITS#7588 fix double-free for sorted paged search
2013-05-13 08:12:40 -07:00
Howard Chu
201ddbe3e4
ITS#7577 more for previous commit
2013-04-28 12:47:14 -07:00
Howard Chu
fb537d747c
ITS#7577 alias fixes
2013-04-28 12:25:58 -07:00
Ted C. Cheng
d3633632e1
ITS#7513 added TCP keepalive support to back-meta
2013-04-24 01:22:17 -07:00
Howard Chu
9381d04b87
Don't expire a conn if it's still referenced
2013-04-24 00:27:26 -07:00
Jorge Perez Burgos
69f4f4b673
ITS#7524 make sure binding flag is set before trying to bind
2013-04-24 00:25:04 -07:00
Jan Synacek
fb790edccd
ITS#7568 Add -Q to slaptest's help
2013-04-10 18:21:48 -07:00
Howard Chu
8cc61d8dbd
attrdb fixes
2013-04-05 03:03:07 -07:00
Howard Chu
3fe88a3cef
ITS#7552 fix for templates with * / +
2013-03-25 11:14:01 -07:00
Howard Chu
daf62a0841
ITS#7540 reject undefined attrs
2013-03-19 13:32:42 -07:00
Hallvard Furuseth
f38c8b79d4
ITS#7543 Fix log output "conn=-1 ... ACCEPT"
2013-03-18 20:28:07 +01:00
Howard Chu
02b22e7e59
ITS#7542, more for ITS#7432
...
typos in quicksort
2013-03-18 11:43:47 -07:00
Howard Chu
051dba822c
Avoid unnecessary syncCookie malloc/free
2013-03-14 06:55:44 -07:00
Howard Chu
575ad77adb
ITS#7531 check updateCookie status for INTERMEDIATEs
...
Was already being checked for other message types.
2013-03-14 06:39:46 -07:00
Howard Chu
c9718545da
ITS#7533 don't install DB_CONFIG if no BDB backends
2013-03-01 05:46:15 -08:00
Pierangelo Masarati
d6b82ec6d0
more about ITS#7525
2013-03-01 10:20:57 +01:00
Howard Chu
bc1d4424c5
Define MDB_WRITES_PER_COMMIT, default to 500
...
The former default of 1000 may fail for DBs with many indices.
2013-02-23 19:04:13 -08:00
Howard Chu
04b95ec6ee
ITS#7525 more for quoting
2013-02-21 01:56:58 -08:00
Howard Chu
03b0319b46
ITS#7488 really turn off threaded indexing code
2013-02-19 18:20:17 -08:00
Howard Chu
f827aa683e
ITS#7527 add missing error checks for corrupt index
2013-02-19 18:19:47 -08:00
Pierangelo Masarati
648d28fb0b
DELETE needs pointer initialization like EMIT (ITS#7526)
2013-02-12 23:28:18 +01:00
Pierangelo Masarati
ecb7fc4243
quotes needed for spaces in DN (ITS#7525)
2013-02-12 17:18:06 +01:00
Howard Chu
9f227f7661
More for dn2id_upgrade
...
handle 0-length suffix
2013-02-10 00:17:51 +00:00
Howard Chu
5c91a27277
Add error checks to prev commit
2013-02-09 19:50:08 +00:00
Howard Chu
2bbee4bb23
Add mdb_dn2id_upgrade
...
Check if upgrade is needed in mdb_db_open()
Run from tool_reindex. Upgrade must not be interrupted.
2013-02-09 19:38:42 +00:00
Howard Chu
853b9d1335
ITS#6365 wait for read locks in tool mode
...
Fix commit e5b96f2c76
2013-02-07 18:23:25 +00:00
Howard Chu
33c98df18e
More explicit logging if mdb_txn_commit fails
...
Change LDAP_DEBUG_TRACE to LDAP_DEBUG_ANY.
Add log msg if it wasn't being logged before.
2013-02-02 05:31:39 -08:00
Howard Chu
a8352c03b3
ITS#7473 fix b1a6f6980f
...
uninit'd size in dn2id_walk, bogus pagedresults
2013-01-29 17:15:09 -08:00
Howard Chu
b1a6f6980f
ITS#7473 Scope-based searches
...
Walk subtree if number of subtree entries is smaller than
number of index candidates.
2013-01-26 16:20:49 -08:00
Howard Chu
a650568ef2
ITS#7473 Add mdb_dn2id_walk() to walk subtree
...
Non-recursive tree walker.
2013-01-26 16:19:38 -08:00
Howard Chu
ee8a897ff8
ITS#7473 Setup for subtree entry counts
2013-01-26 16:18:58 -08:00
Howard Chu
a98eb289af
ITS#7499 fix typos
2013-01-25 14:54:43 +00:00
Quanah Gibson-Mount
dd7b1c39b1
Clean up whitespace in previous commit
2013-01-24 11:31:41 -08:00
Ted C. Cheng
c3eb1dc82b
Removed #if 0 code block
2013-01-24 10:53:56 -08:00
Ted C. Cheng
d836def019
added tcp keepalive support to back-ldap
2013-01-24 10:53:56 -08:00
Howard Chu
56a0d9004f
ITS#7499 fix SQL statement configs
2013-01-23 17:55:16 -08:00
Howard Chu
461db2de1a
ITS#7497 fix lineno overflow in ldif_read_record()
2013-01-23 02:19:02 +00:00
Howard Chu
2f53035a51
ITS#7496, more for ITS#7483
...
Missing entries need to be checked at runtime too, not just slapcat.
Apparently some people will still try to run slapd even after slapadd
tells them their DB load was invalid.
2013-01-22 12:34:40 +00:00
Howard Chu
26d6e699aa
Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap
2013-01-14 16:51:29 -08:00
Pierangelo Masarati
ebf23f8187
add support for 'onerr' (ITS#7492)
2013-01-12 00:13:42 +01:00
Howard Chu
fb0b0688b0
ITS#7473 check DN scope before fetching id2e
...
This is only a 10% gain, but still worth having for now.
2013-01-11 03:15:59 -08:00
Howard Chu
acec27ec94
ITS#7488 disable threaded indexer for now
...
No time to find the bug at the moment.
There's no performance benefit anyway.
2013-01-09 09:07:29 -08:00
Howard Chu
f096ed1125
ITS#6164 avoid conn->c_mutex in send_ldap_ber
...
This may possibly trigger ITS#5835 again. Revert if so.
2013-01-09 01:57:48 -08:00
Pierangelo Masarati
f6cd91aadb
more about ITS#7487
2013-01-08 17:50:13 +01:00
Pierangelo Masarati
02f8963f74
handle SLAP_MOD_SOFTDEL (ITS#7487) and other internal modification specifiers
2013-01-08 17:40:39 +01:00
Pierangelo Masarati
021799aca4
fix slapd.conf name (ITS#7478)
2013-01-06 17:15:51 +01:00
Kurt Zeilenga
0fd1bf30b8
Happy New Year
2013-01-02 10:22:57 -08:00
Howard Chu
e4ec2be93d
Better handling of missing entries
...
Treat zero-length entries properly (as missing entries) in entry_next()
and entry_get_int().
2012-12-28 11:26:26 -08:00
Howard Chu
d3087229d5
Get MDB txn before acquiring a CSN
...
Since MDB writes are fully serialized in txn_begin, we can use CSNs as
commit sequence numbers, not just change sequence numbers. This will
prevent most instances of out-of-order writes, so syncprov will almost
never need to transmit a change without a cookieCSN. (Out-of-order is
still possible, if the write was received via syncrepl.)
2012-12-13 07:13:39 -08:00
Howard Chu
a2cfb99c52
ITS#7469 fix slapcat
2012-12-10 17:32:44 -08:00
Howard Chu
bbfe587246
Add support for 64 bit index hashing
2012-12-03 18:14:28 -08:00
Howard Chu
e1559100eb
Fix typo
...
See commit bb36bdcd1c
2012-12-03 18:00:36 -08:00
Howard Chu
fe9e1113ae
Rename mdb_open/close mdb_dbi_open/close
2012-12-03 17:06:31 -08:00
Howard Chu
c0f7090cac
Plug slapindex memleak
2012-12-03 11:39:14 -08:00
Howard Chu
6001417f30
ITS#7459 fix config schema
2012-12-03 06:55:12 -08:00
Howard Chu
aa1ae03caf
Rename libmdb to liblmdb
2012-11-30 12:59:18 -08:00
Howard Chu
e51aff55e6
Rename mdb.h to lmdb.h
2012-11-30 12:35:05 -08:00
Howard Chu
e1ccebcf88
ITS#7451 fix back-ldif return on empty dir
...
Broken by commit 2d1af3f2f7
2012-11-27 14:16:21 -08:00
Howard Chu
a061f2192e
ITS#7452 fix typo in envflags
2012-11-26 16:22:27 -08:00
Jan Synacek
3c19681372
ITS#7431 fix constraint_check_restrict segfault
2012-11-26 13:49:53 -08:00
Howard Chu
f13ba102e1
ITS#7450 enforce SLAPD_MAX_DAEMON_THREADS
...
Also allow the max to be redefined at compile time. Of course, there is no
legitimate reason to do so.
2012-11-25 19:43:49 -08:00
Howard Chu
fc0563ce53
ITS#7449 fix signedness for index_substr_any_*
...
Of course, no one would ever have any legitimate reason to set these
items to anywhere near such extreme values in the first place.
2012-11-25 19:31:14 -08:00
Ralf Haferkamp
be781ab808
ITS#7445 fix deref control exposure
...
do not expose control until deref overlay is actually instantiated at least
once (see also ITS#6647)
2012-11-19 16:09:59 +01:00
Ralf Haferkamp
7c97c036c8
Fixed insertion of the overlay_remove callback (SLAP_CONFIG_DELETE)
2012-11-19 14:55:29 +01:00
Ralf Haferkamp
f86e0cd8dc
ITS#7436 slapo-deref: call overlay_register_control in db_open
2012-11-09 15:48:02 +01:00
Howard Chu
b4126863a4
ITS#7426 ignore syncrepl ops
2012-11-01 17:56:52 -07:00
Howard Chu
951418f0bf
ITS#7427 fix for spurious old entries
2012-11-01 08:36:28 -07:00
Jan Synacek
2991111f82
ITS#7418 Fix slapo-constraint: handle uri and restrict correctly
2012-10-30 16:07:26 -07:00
Howard Chu
b555730139
ITS#7402 tweak prev commit, use hex for txn IDs
2012-10-20 09:34:13 -07:00
Howard Chu
c2783b9c5e
ITS#7402 fix potential txn leak in online indexer
2012-10-20 09:27:23 -07:00
Howard Chu
48f6a47c1e
ITS#7402 add txnID to debug output to aid tracing
2012-10-20 09:25:14 -07:00
Howard Chu
970e7f8199
ITS#7416 make sure to reopen attr DBs after env reopen
2012-10-11 16:45:42 -07:00
Howard Chu
d42c7c4937
ITS#7414 fix slapo-rwm modrdn cleanup
...
newSup is NULL if it was specified, but same as old Sup.
2012-10-11 07:59:06 -07:00
Howard Chu
c1800082cc
ITS#7403, #6296 fix AUTHZ_BACKEND handling
...
c_authz_cookie should only be set on explicit Bind requests.
2012-10-03 09:12:14 -07:00
Quanah Gibson-Mount
6a435736fb
Fix MDB objectClass so that MDB will load
2012-09-26 16:48:57 -07:00
Howard Chu
d7c964fedb
ITS#7403 fix idassert non-override mode
2012-09-26 09:29:57 -07:00
Howard Chu
d426cafaca
More for envflags
...
If trying to alter a non-resettable flag, just close/reopen the env.
2012-09-25 04:37:29 -07:00
Howard Chu
dc9ef835c5
Add envflags for MDB config
...
allows setting writemap and some other useful flags
2012-09-25 04:31:37 -07:00
Howard Chu
3e47e825fd
ITS#7391 more for ab04c50a32
2012-09-14 12:53:47 -07:00
Howard Chu
867134d4ca
ITS#7390 fix slapd_rw_destroy
2012-09-14 09:27:40 -07:00
Howard Chu
bdef02832e
ITS#7386 close read txn in reindex commit
2012-09-12 13:37:22 -07:00
Howard Chu
54a111907b
More for 38a3317096
...
update mdb_tool_idl_add prototype
2012-09-04 04:44:20 -07:00
Howard Chu
c9c24fbafe
More for ea248dacf4
...
Fix search_aliases invocation
2012-09-04 04:39:17 -07:00
Howard Chu
bf10bdb03a
Fix typos in prev commit
2012-08-27 14:27:04 -07:00
Howard Chu
ea248dacf4
Don't decode entries until we know they're in scope
2012-08-27 14:08:06 -07:00
Howard Chu
8fe09ba2a6
ITS#7368 SLAP_AUTH_DN stuff is not for RE24 yet
2012-08-23 14:25:52 -07:00
Howard Chu
6655e2793e
ITS#7350 actually use zero-length value ACLs
2012-08-22 15:29:17 -07:00