Howard Chu
3d52e63366
ITS#7929 don't log internal searches
2014-09-08 15:40:28 +01:00
Howard Chu
4ea2fe90e8
ITS#7934 add missing normalization of attrs
2014-09-08 14:57:57 +01:00
Jan Synacek
1ad90643b5
ITS#7933 fix frontend config
2014-09-08 14:04:38 +01:00
hyc
846cf30842
ITS#7930 additional fix
...
bypass cleanup handlers for suppressed search result msgs
2014-09-06 09:49:32 +01:00
hyc
18d9470984
ITS#7930 partial fix
...
Only restore op->o_req_dn if no one else changed it on us.
2014-09-06 09:14:46 +01:00
Howard Chu
92c7a89130
ITS#7928 fix syncprov abandon cleanup
2014-08-29 02:19:35 +01:00
Howard Chu
9a8cb6091a
ITS#7702 better fix
...
Check for duplicate scopes in search_aliases, not later.
2014-08-28 18:21:21 +01:00
Howard Chu
f42c7c6bbc
Revert "ITS#7702 fix results with aliases"
...
This reverts commit cac00c6a97
.
2014-08-28 17:51:46 +01:00
Howard Chu
b669f5b706
ITS#7904 init wwctx earlier
2014-08-27 11:50:32 +01:00
Howard Chu
cac00c6a97
ITS#7702 fix results with aliases
...
Aliases pointing within the original search scope could cause
the same entry to be returned multiple times. Check for subtree
scope and duplicate scopes.
2014-08-26 20:07:40 +01:00
Howard Chu
e5f5a4ab5f
ITS#7927 fix double-free of searchref
2014-08-26 19:17:33 +01:00
Howard Chu
b07e31aa02
Cleanup mdb_ad_get
2014-08-21 20:26:00 -07:00
Howard Chu
be02e8ddd0
ITS#7906,#7923 Don't free configinfo in _db_close
2014-08-20 13:49:37 -07:00
Howard Chu
3feffb9a0a
ITS#7904 more tweaks
...
Must save/restore mcd cursor if we're doing a scope-based search.
2014-08-20 13:06:51 -07:00
Howard Chu
cd02e6054e
ITS#7922 delete dead code
...
Harmless, but stupid.
2014-08-19 20:31:20 -07:00
Quanah Gibson-Mount
9c54ff2f0b
Fix typo
2014-08-18 12:18:44 -05:00
Howard Chu
27f3ef2cfd
ITS#7920 fix for slapacl
...
This needs to be streamlined in 2.5, current tool API is a mess.
2014-08-13 20:49:05 -07:00
Howard Chu
3f0839d8df
ITS#7838 fix typos in prev commit
2014-08-13 19:53:56 -07:00
Howard Chu
10b6c9f0f2
ITS#7919 fix cache DB config
...
Don't accept config directives for cache DB until the cache backend type
has been set.
2014-08-13 19:22:17 -07:00
Howard Chu
d8e280e87c
ITS#7906 more cleanup
...
db_open/close were not symmetric with init/destroy
2014-08-11 13:48:29 -07:00
Howard Chu
8b89b45615
ITS#7906 minor cleanup
...
rename ppolicy_close -> ppolicy_db_close for consistency
2014-08-05 19:37:28 -07:00
Howard Chu
08792a77fd
ITS#7906 better fix
...
don't free pwcons unless we're actually destroying this DB
2014-08-05 19:36:30 -07:00
Howard Chu
7f7a82c0f5
ITS#7915 fix translucent_modify
...
Go directly to local backend when fetching local entry
2014-08-04 13:42:35 -07:00
Howard Chu
d8c060104d
ITS#7915 fix mdb_entry_release
...
In server mode, make sure the entry was actually ours
2014-08-04 13:36:48 -07:00
Howard Chu
f7a2438112
ITS#7895 drop toolmode checks in str2entry
...
They were obsoleted by ITS#6737 and have been redundant ever since.
(commit 15f1e7bdb7
)
2014-08-02 11:17:12 -07:00
Howard Chu
5ac3dbefcd
ITS#7912 fix index config
2014-07-31 11:31:14 -07:00
Howard Chu
e5dae640f2
ITS#7909 fix slap_callback init
2014-07-30 06:55:36 -07:00
Quanah Gibson-Mount
e091e0bb63
ITS#7908
...
Add olcSssVlvMaxPerConn to the olcSssVlvConfig objectClass
2014-07-28 13:04:43 -05:00
Howard Chu
05402c396d
ITS#7906 fix ppolicy_connection_destroy
...
It can still run after ppolicy_close has freed the connection table
2014-07-24 17:04:56 -07:00
Howard Chu
e17878933f
ITS#7904 writewait patch
...
Assigned ITS#, tweaking. This ITS includes
4f05d992f2
716b35e191
be792fae2c
2014-07-23 13:12:51 -07:00
Howard Chu
4f05d992f2
Fix prev commit
2014-07-22 21:55:23 -07:00
Howard Chu
716b35e191
More for writewait callback
...
Must also reset search cursors
2014-07-22 21:52:24 -07:00
Howard Chu
031640456b
ITS#7903 preserve Sorted status of attrs
2014-07-22 20:24:58 -07:00
Howard Chu
f0475bab5a
ITS#7902 fix str2entry / sorted vals
2014-07-22 20:21:35 -07:00
Howard Chu
be792fae2c
Add sc_writewait callback
...
Invoked before a blocked writer waits for socket to be writable.
Use in back-mdb to release reader txn while waiting.
2014-07-22 19:17:15 -07:00
Ondřej Kuzník
a773a0cc14
ITS#7894 Let back-config use backend to release entries
2014-07-22 14:49:20 -07:00
Howard Chu
03d927485e
ITS#7249 partial fix for memberof on frontendDB
2014-07-21 08:44:42 -07:00
Michael Stroeder
8605eedb31
ITS#7838 add ORDERING rules to ppolicy attrs
2014-07-18 13:04:15 -07:00
Howard Chu
8c62b323ba
ITS#7868 fix slapo-sock db_init
2014-07-18 12:03:07 -07:00
Howard Chu
1f168a0b8f
ITS#7893 ( #6508 ) fix a_numvals
2014-07-09 13:07:53 -07:00
Howard Chu
b9abbdf623
Add missing mdb_strerror calls to debug msgs
2014-07-09 11:21:41 -07:00
Ondrej Kuznik
01f698bce9
ITS#7256 A few issues discovered during testing slapmodify.
...
- bdb deallocates cursor after some tool operations but expects it to be
around every time it is called
- mdb tries to allocate a second transaction while it already holds one,
deadlocking
- op->o_hdr must exist for most uses of op, but o_tmpmfuncs need not
- what about indexing after a tool modify? Does it happen automatically?
2014-07-08 17:28:12 -07:00
Ondrej Kuznik
d3a5ab824d
ITS#7256 Consolidate cleanup code at one location.
2014-07-08 17:28:12 -07:00
Ondrej Kuznik
07c563b8a5
ITS#7256 Rework entry retrieval and cleanup.
...
When doing deletes, lastmod has no entry to work on.
2014-07-08 17:28:11 -07:00
Ondrej Kuznik
fde1f80aa8
ITS#7256 Add some necessary checks.
2014-07-08 17:28:10 -07:00
Ondrej Kuznik
304c0cbbff
ITS#7256 Set backend for operation.
...
slap_tool_entry_check does it but it is not called every time.
2014-07-08 17:28:09 -07:00
Ondrej Kuznik
7810dccdff
ITS#7256 Let slapmodify ignore unknown operations
...
ldapmodify already does the same.
2014-07-08 17:28:07 -07:00
Ondrej Kuznik
cede821cef
ITS#7256 Allow deletes with slapmodify
2014-07-08 17:28:06 -07:00
Ondrej Kuznik
f05602927d
ITS#7256 mplement bi_tool_entry_delete for back-ldif
2014-07-08 17:28:04 -07:00
Ondrej Kuznik
c048b7cad6
ITS#7256 Introduce bi_tool_entry_delete
2014-07-08 17:26:05 -07:00
Ondrej Kuznik
17e223b896
ITS#7212 rudimentary slapmodify support for back-config
2014-07-08 17:25:58 -07:00
Ondrej Kuznik
5ee5251fa4
ITS#7212 slapmodify support for back-ldif
2014-07-08 17:25:58 -07:00
Howard Chu
282d215924
Fixup for win64 commit
...
couldn't avoid ifdefs. Silence warnings.
2014-06-23 08:21:36 -07:00
Howard Chu
dda779d83e
Windows64 32/64 silliness
...
On Windows64, long is the same size as int. Use size_t when we
need an actual 64 bit unsigned long.
2014-06-23 08:00:11 -07:00
Paul B. Henson
85d467aca6
ITS#7161 ppolicy pwdFailureTime resolution should be better than 1 second
2014-06-15 13:42:46 -07:00
Howard Chu
8fc7e06d22
Revert "ITS#7616 defer searches while consumer refreshing"
...
This reverts commit cf4aa8f9d9
.
There appears to be no safe way for this to work with MMR.
2014-06-12 13:23:29 -07:00
Howard Chu
e4e265c153
ITS#7873 check for pauses
2014-06-04 14:24:20 -07:00
Howard Chu
4afa10d059
ITS#7872 plug memleak of matchedDN
2014-06-04 14:02:06 -07:00
Howard Chu
45ff842542
Plug one-time leaks
2014-06-04 02:23:18 -07:00
Howard Chu
a01d3f965b
ITS#7870 ignore index DBs in slapcat
2014-06-03 20:38:21 -07:00
Howard Chu
33e12f4de3
Don't do any merging if manageDSAit was used
...
Just passthru search to local DB
2014-05-27 18:12:49 -07:00
Howard Chu
932a11ac76
ITS#7849 make sure to send cookie after fallback
2014-05-23 06:56:56 -07:00
Howard Chu
cf4aa8f9d9
ITS#7616 defer searches while consumer refreshing
2014-05-23 06:56:16 -07:00
Howard Chu
5a08b66141
ITS#7705,#7800 fix prev commit
...
Better check for missing IDs
2014-05-15 21:27:21 -07:00
Howard Chu
437f21b16e
ITS#7705,#7800 fix back-mdb pagedResults search
...
mdb_idscopes was remembering the IDs of every entry it checked;
it should only have been saving the IDs of entries that were
actually in the search scope. The extra entries filled the scopes
array, causing a loop searching for a parent entry that was
never inserted.
2014-05-15 21:06:17 -07:00
Howard Chu
141f168093
ITS#7850 catch invalid naming attr
2014-05-09 11:29:45 -07:00
Quanah Gibson-Mount
e5443fd279
Relocate the maxsize bit
2014-04-25 14:43:12 -05:00
Quanah Gibson-Mount
ea2fbe2152
Sample slapd.ldif is missing the olcDbMaxSize parameter
2014-04-25 14:36:09 -05:00
Howard Chu
c84ae5db07
ITS#7827 slapacl requires a valid suffix
2014-03-25 15:18:17 -07:00
Howard Chu
052aef5960
ITS#7587 fix double-free
...
Related to bb3e14ddba
(ITS#6254)
2014-03-18 11:47:31 -07:00
Howard Chu
5f92a0bb16
ITS#7803 reference slapd-config(5)
...
Also replace BDB example with LMDB
2014-02-28 12:52:39 -08:00
Howard Chu
5cab6b77e4
ITS#7798 fix mdb_entry_decode()
2014-02-07 03:02:33 -08:00
Kurt Zeilenga
5c878c1bf2
Happy new year (belated)
2014-01-25 05:21:25 -08:00
Howard Chu
b1ed3bf10a
ITS#7778 fix regression from #7329
2014-01-13 11:26:46 -08:00
Pierangelo Masarati
3be02f83df
handle softadd/softdel (internal modifications; ITS#7773)
2013-12-28 16:20:08 +01:00
Hallvard Furuseth
5415e1e6de
ITS#6758 Rewrite code for contrib:wrap_slap_ops.
...
Tweak slapd code so wrap_slap_ops can process it: Use pointers
BackendInfo *bi instead of array "func" = &bi->bi_op_bind. In
slapo-chain, keep a slap_operation_t instead of a function ptr.
2013-12-11 14:40:45 +01:00
Hallvard Furuseth
7bb8b706c5
ITS#6758 Add SLAP_OP() &co, contrib:wrap_slap_ops.
...
Add framework for debug macros SLAP_OP(), slap_be_op(),
slap_bi_op() around LDAP-operation backend calls.
contrib/slapd-tools/wrap_slap_ops converts code to use them.
Code compiles as before by default. #define USE_RS_ASSERT
enables debugging, $NO_RS_ASSERT tweaks it. See slapd/result.c.
2013-12-11 14:40:45 +01:00
Howard Chu
26ce222b6a
ITS#7761 bail out of search if config is pausing
2013-12-10 18:08:36 -08:00
Howard Chu
ac9ac0094e
ITS#7749 more for prev commit
2013-11-21 11:18:24 -08:00
Howard Chu
a4b9cab04f
ITS#7750 fix olcDbConfig modification
2013-11-18 20:39:35 -08:00
Howard Chu
1682691f50
Fix typo for Windows
2013-11-14 21:17:13 -08:00
Howard Chu
06e384d55b
ITS#7749 propagate op->o_extra in syncprov_findbase
2013-11-14 19:16:57 -08:00
Howard Chu
5328340d35
ITS#7746 fix for cert with NULL issuerDN
2013-11-14 03:02:07 -08:00
Howard Chu
66bb780b16
ITS#7743 Fix indexed AND filter
...
Partially revert 47f6aec61e
Was using RANGE_FIRST/RANGE_LAST on an IDL known to *not* be a range.
2013-11-11 21:01:33 -08:00
Howard Chu
3d1a0bb17e
ITS#7741 Fix entryDN index lookup
...
DN notfound is authoritative, don't ignore the result
2013-11-06 09:41:42 -08:00
Howard Chu
6711876a35
Fix CONFIG_DELETE crash
...
Closing a connection can abandon its ops without going thru the threadpool,
so make sure to lock the si_ops_mutex before walking the list.
2013-11-05 12:59:56 -08:00
Howard Chu
a12bedc2d8
ITS#7735 fix memctx usage in prev commit
2013-11-05 11:49:43 -08:00
Howard Chu
eef667fd49
ITS#7739 fix for empty nested include
2013-11-05 07:34:30 -08:00
Jorge Perez Burgos
66e0d6017a
ITS#7740 back-meta: avoid blocking other threads
...
Don't lock other threads while trying to connect to remote node.
2013-11-05 06:45:40 -08:00
Howard Chu
ed09222963
Fix slap_reparse_sync_cookie prototype
2013-11-02 14:20:15 -07:00
Howard Chu
0645878d5d
ITS#7735 plug memleak
...
Introduced in commit 48cdd54d9a
2013-11-01 11:07:51 -07:00
Quanah Gibson-Mount
e70bc5dd64
ITS#7737 Add a matching rule for OlcDbEnvFlgs
2013-11-01 09:57:20 -07:00
Howard Chu
80d8c56afd
ITS#7725 add nordahead envflag
2013-10-12 16:25:33 -07:00
Howard Chu
d47524d8f9
ITS#7692 no-op if target entry doesn't exist
2013-10-12 15:35:05 -07:00
Ted C. Cheng
a2e1b9b545
ITS#7699 fixed one dds start-up assertion failure
2013-10-12 15:23:19 -07:00
Howard Chu
d51ee964fc
ITS#7694 more for IPv6 CLDAP, slapd fix
2013-10-10 10:48:08 -07:00
Howard Chu
63314e9c4a
ITS#7710 fix typo
2013-10-10 04:04:44 -07:00
Howard Chu
44504848ac
ITS#7329 optimize index update for simple add ops
...
Don't need to reindex all the attr values if there were no deletes.
2013-10-09 07:55:50 -07:00
Howard Chu
c350b51a63
ITS#7710 fix for non-replicated internal ops
...
Their completion was making slap_graduate_commit_csn() cleanup
their parent op's CSN, thus preventing that CSN from propagating
to any consumers.
2013-10-09 04:58:37 -07:00
Howard Chu
c82dcab9bd
ITS#7720 don't do ptr arithmetic on void *s
2013-10-08 10:40:51 -07:00
Quanah Gibson-Mount
a672161ab7
Add maxsize parameter for mdb examples
2013-09-19 15:03:53 -07:00
Quanah Gibson-Mount
74c52fb136
Switch example slapd.conf to use mdb instead of bdb
2013-09-19 14:23:11 -07:00
Quanah Gibson-Mount
1a712bf18e
Enable features that were hidden behind LDAP_DEVEL
2013-09-19 09:50:52 -07:00
Pierangelo Masarati
919a0f5b54
ITS#7687: password modify can muck with controls (quick fix)
2013-09-10 22:03:32 +02:00
Howard Chu
819566415e
ITS#7381 more for prev commit
2013-09-09 04:59:20 -07:00
Howard Chu
c0e2961f81
Drop unused var in prev commit
2013-09-07 14:58:18 -07:00
Howard Chu
88d22a1ca3
Simplify write waiter handling
...
Writer threads do their own wait using select/poll instead of
asking the listener thread. Eliminates one mutex+one condvar
per conn plus multiple wakeups of the listener thread. Also
fixes writetimeout to wait an exact time, instead of the
approximation used in the listener thread.
2013-09-07 14:53:02 -07:00
Howard Chu
7d6d6944c5
ITS#7683 log tls prot/cipher info
...
Note: I could not test the MozNSS patch due to the absence of
NSS PEM support on my machine. Given the review comments in
https://bugzilla.mozilla.org/show_bug.cgi?id=402712 I doubt that
trustworthy PEM support will be appearing for MozNSS any time soon.
2013-09-07 12:22:09 -07:00
Howard Chu
69f810d549
ITS#7685 add missing olcTLSProtocolMin
2013-09-07 10:00:11 -07:00
Howard Chu
e631ce808e
ITS#7595 Add Elliptic Curve support for OpenSSL
2013-09-07 09:47:40 -07:00
Howard Chu
4d02a43ec9
ITS#7381 fix chain config for restarts
2013-09-06 12:54:20 -07:00
Howard Chu
0ef9e6107b
More for threadpool queues
...
Allow dynamic reconfig
2013-09-03 15:06:37 -07:00
Howard Chu
3b272b43dc
In mdb_checkpoint, force sync
...
Otherwise this is a no-op in various NOSYNC/MAPASYNC situations
2013-09-02 12:54:48 -07:00
Howard Chu
b03ce7af6c
ITS#7676,7677 don't leak libldap err codes
2013-08-30 12:28:17 -07:00
Howard Chu
ca310ebff4
Add channel binding support
...
Currently only implemented for OpenSSL.
Needs an option to set the criticality flag.
2013-08-26 23:31:48 -07:00
Howard Chu
f947f789f3
Fix prev commit
...
Hardcoded number of queues was leftover from preliminary
work. Use connection_pool_queues.
2013-08-18 21:15:30 -07:00
Howard Chu
34f832faee
Multiple queues per threadpool
2013-08-16 19:04:49 -07:00
Howard Chu
f230503b10
Tweak mutex acquisition
...
Slightly reduce held time.
2013-08-16 18:58:39 -07:00
Howard Chu
5b2bfec3b4
More for 907b9d4877
...
op.o_extra is only used with threading
2013-08-14 03:51:29 -07:00
Howard Chu
cec27aa517
Fix prev commit
2013-08-12 15:04:51 -07:00
Howard Chu
907b9d4877
Fixes for threaded indexer
...
Works now, but still 2x slower. Leave disabled.
2013-08-12 14:50:54 -07:00
Howard Chu
64f06d5acc
ITS#7662 cleanup reader txn in mdb_entry_get()
2013-08-10 05:05:16 -07:00
Howard Chu
19737680d1
ITS#7659 add directoryString compatible syntaxes
...
countryString and telephoneNumber were missing
2013-08-09 10:08:09 -07:00
Howard Chu
0626df2cf1
ITS#7591 fix back-meta missing result msgs
2013-08-02 04:44:57 -07:00
Howard Chu
8e28696f31
ITS#7654 fix implicit declaration warnings
2013-08-02 04:03:05 -07:00
Howard Chu
115460ae53
ITS#7645 use ldap_pvt_tls_config for TLSProtocolMin
2013-07-29 07:04:03 -07:00
Timothy Pearson
65f891d7a2
ITS#7641 don't muck with controls if slapi doesn't use them
2013-07-26 13:15:58 -07:00
Howard Chu
9b60fa9bb3
ITS#7636 slapi: don't free filterstr if filter didn't change
2013-07-10 12:56:04 -07:00
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
Howard Chu
3d107181cf
ITS#7350 allow value-specific ACLs on zero-length values
2012-08-22 15:05:54 -07:00
Pierangelo Masarati
06dfe9ddde
multiple URIs are allowed
2012-08-22 10:50:54 +02:00
Pierangelo Masarati
52a1a86fb5
fix one-time leak
2012-08-22 09:20:18 +02:00
Jan Synacek
057949785f
ITS#7340 Fix handling of sets when checking for count constraint
2012-08-21 11:57:59 -07:00
Howard Chu
9d5af71214
ITS#7361 fix Windows lock handling
2012-08-21 04:55:03 -07:00
Howard Chu
858a11d72f
Fix whitespace
2012-08-19 13:04:33 -07:00
Howard Chu
842d1b5a17
Added delete support
2012-08-19 12:49:02 -07:00
Howard Chu
aa91738bc1
Fix rewrite/suffixmassage parsing
2012-08-19 01:25:07 -07:00
Howard Chu
e21d97385d
Finished emit support
2012-08-19 00:32:43 -07:00
Howard Chu
edbe111c8c
back-meta shares back-ldap's OIDs
2012-08-18 01:38:28 -07:00
Howard Chu
dde9480cbd
Initial emit support
2012-08-18 00:53:44 -07:00
Howard Chu
fb4d515195
Factor out common attrs from main and target
2012-08-17 21:27:35 -07:00
Howard Chu
54de37c0e1
Initial config support for back-meta
...
Currently just a direct replacement of slapd.conf parsing,
no dynamic features yet.
2012-08-17 14:04:48 -07:00
Howard Chu
11cf13bf9d
Fix slapadd -q -w double-free
2012-08-17 13:38:47 -07:00
Howard Chu
3f71f75601
ITS#7354 fix delta-sync mmr crash
2012-08-16 18:08:56 -07:00
Howard Chu
babfce7d0f
ITS#7172 don't reference ops in syncprov locks
...
When a client performs a write and then closes the connection without
sending an Unbind request, the connection cleanup can race with the
op cleanup.
2012-08-15 14:36:35 -07:00
Quanah Gibson-Mount
95ade24a5a
Revert f6b8103b78
for add.c
...
ITS#7325
2012-07-26 14:01:34 -07:00
Quanah Gibson-Mount
5302323a7f
Revert "ITS#7325 fix entry len"
...
This reverts commit 348d43e82f
.
2012-07-26 13:59:50 -07:00
Howard Chu
da75e3b65e
ITS#7338 fix olcDbConfig changes to take effect immediately
2012-07-26 10:08:18 -07:00
Howard Chu
e5864927ae
Fix online reconfig
...
maxreaders/maxsize was not re-opening because cleanup call was missing
online indexer should abort txn after index failure
2012-07-26 08:45:39 -07:00
Howard Chu
2265d2bac8
Append tweak: must init mdb->mi_nextid
...
Otherwise duplicate entries aren't detected
2012-07-22 15:44:11 -07:00
Emily Backes
c453a236fc
Update name information
2012-07-22 07:08:35 -07:00