Howard Chu
f9cb538fbd
Add updateControls to txn response
2014-09-15 23:49:26 +01:00
Howard Chu
32f05e96f7
Flesh out txn support
...
Only in back-mdb; back-bdb needs work but it's deprecated;
not worth the effort. In particular txn, retry after deadlocks
makes the whole thing too messy.
2014-09-15 23:48:23 +01:00
Howard Chu
11594db633
ITS#7937 flush data to socket
2014-09-11 10:24:09 +01:00
Leo Yuriev
c1f04881be
ITS#7915 fix memory leaks in previous patch
2014-09-10 11:51:44 +01:00
Howard Chu
4f66cfa1b4
ITS#7935 partially revert prev patch
...
Can't allow special chars in RDN, not all OSs/filesystems support it.
2014-09-09 14:40:11 +01:00
Howard Chu
f88970efc1
ITS#7935 fix schema RDN normalization
2014-09-09 14:35:43 +01:00
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
Howard Chu
38a3317096
Use new Append support
2012-07-21 06:21:56 -07:00
Howard Chu
348d43e82f
ITS#7325 fix entry len
2012-07-19 01:38:39 -07:00
Howard Chu
6934696c23
ITS#7323 plug leak in online indexer
2012-07-12 02:36:12 -07:00
Ted Cheng
0b937d82f2
ITS#7319 Always encode user DN in pwmod request.
2012-07-03 16:13:36 -07:00
Howard Chu
73b631b814
ITS#7168 cleanup prev commit
2012-06-25 12:45:32 -07:00
Jan Synacek
bb8112c382
ITS#7168 Fix count constraint when using multiple modifications
...
Constraint overlay doesn't take into account multiple modifications when using
count.
Red Hat Bugzilla: #742163
2012-06-25 12:33:01 -07:00
Howard Chu
39481d50e0
ITS#7305 fix comments in prev commit
2012-06-23 05:49:02 -07:00
Jani Salonen
a572f4b967
ITS#7305 add slapi_[get|free]_client_ip()
2012-06-23 05:46:25 -07:00
Howard Chu
8aa05e920a
ITS#7302 fix mdb_dn2id_delete
2012-06-22 07:10:56 -07:00
Howard Chu
025b3b929e
ITS#7298 fix PermissiveModify control parsing
2012-06-15 04:46:11 -07:00
Howard Chu
ccffd16085
TS#7303 tweak
2012-06-12 16:23:54 -07:00
Howard Chu
7c28420618
ITS#7303 fix unneeded alias lookups
2012-06-12 16:16:07 -07:00
Howard Chu
c73ec15022
ITS#7292 more accesslog,syncprov leaks
2012-06-08 07:33:59 -07:00
Howard Chu
a8d1783550
ITS#7292 more syncprov control leaks
2012-06-08 05:09:45 -07:00
Howard Chu
a766cdf268
Revert "ITS#7292 plug memleak in control values"
...
This reverts commit 9e3af2356b .
2012-06-08 04:11:29 -07:00
Howard Chu
96876a171a
ITS#7292 more syncprov leaks
2012-06-07 16:02:45 -07:00
Howard Chu
9e3af2356b
ITS#7292 plug memleak in control values
2012-06-07 13:18:31 -07:00
Howard Chu
4dba1f6963
ITS#7292 plug memleaks in accesslog,syncprov
2012-06-07 11:33:20 -07:00
Howard Chu
16c97dee9c
ITS#7076 fix dup result messages on entry/searchref error
2012-06-07 05:43:13 -07:00
Hrvoje
243a2316d3
ITS#7222 fix bdb/hdb cache hang under high load
2012-05-31 10:48:38 -07:00
SATOH Fumiyasu
4272551a01
ITS#7284 slappasswd: Add support loading a dynamically loadable module
...
Add "-o module-path=<pathspec>" and "-o module-load=<filename>"
options to load a dynamically loadable password hash module
(e.g., slapd-sha2).
2012-05-31 02:46:04 -07:00
Howard Chu
d0296e6e33
ITS#7279 init rc in mdb_idl_insert_keys
2012-05-30 05:09:31 -07:00
Howard Chu
68ffed7130
Additional fix for threaded slapadd
...
If slapadd'ing a config DB and tool-threads is set in the config LDIF,
the checks for slap_tool_thread_max will be invalid.
2012-05-29 19:49:58 -07:00
Howard Chu
34240dbbbb
ITS#7255 in mdb_tool_entry_modify use the existing global txn
2012-05-02 13:32:06 -07:00
Howard Chu
1d89901e73
ITS#7253 add a note about Criticality and RFC4510
2012-04-20 07:24:03 -07:00
Howard Chu
42e3bedbf2
ITS#7182 new entry points should just be appended to monitor_extra_t
2012-04-18 11:52:38 -07:00
Ondrej Kuznik
6f8fb3bf39
ITS#7182 Simplify connection entry creation using entry_stub.
2012-04-18 11:44:55 -07:00
Ondrej Kuznik
e255d3e996
ITS#7182 Remove use of monitor_info_t in back-ldap.
2012-04-18 11:44:49 -07:00
Ondrej Kuznik
e8d913110d
ITS#7182 Remove monitor_info_t from params for monitor_entry_stub.
2012-04-18 11:44:36 -07:00
Ondrej Kuznik
838a7f5138
ITS#7182 allow for later monitor subsystem registration
...
Some databases might want to register their subsystems under the dn
allocated for them by monitor_register_databas. It requires that the
deferred database registration callback be called *before* the
subsystem's.
2012-04-18 11:44:17 -07:00
Pierangelo Masarati
e92704309a
more on ITS#6656
2012-04-17 21:51:02 +02:00
Howard Chu
62cdc32f4e
ITS#7245 fix slap_parse_sync_cookie invocation
2012-04-16 07:36:43 -07:00
Howard Chu
519e2b34b5
Support double-buffering for threaded slapadd
2012-04-14 07:54:26 -07:00
Pierangelo Masarati
5bbfd85a83
ITS#7088 fix deadlock on write operations that do not need to be logged (please check)
2012-04-12 18:04:39 +02:00
Pierangelo Masarati
a47ef8d2b7
ITS#6656 keep loginfo mutex-protected
2012-04-11 00:16:45 +02:00
Pierangelo Masarati
3d99878d0b
ITS#6656 make reqEntryUUID searchable
2012-04-10 23:13:55 +02:00
Pierangelo Masarati
f65ee5ddc1
ITS#6656 add reqEntryUUID to logs of write ops
2012-04-10 22:39:35 +02:00
Pierangelo Masarati
d7d1789e80
ITS#7224 check *_names pointer before dereferencing
2012-04-10 00:47:23 +02:00
Pierangelo Masarati
829efa878a
move entrypriv_create into monitor_extra_t
2012-04-09 18:37:48 +02:00
Pierangelo Masarati
11acc75e9f
move entry_stub to monitor_extra_t
2012-04-09 18:18:21 +02:00
Howard Chu
71843da2a7
MDB_APPEND should only be used in tool mode
2012-04-09 05:18:44 -07:00
Howard Chu
9e6245f87e
ITS#7235 prevent sop from being freed during init
2012-04-07 10:22:56 -07:00
Howard Chu
8bf047c8cb
ITS#7231 simplify prev commit
2012-04-07 07:57:39 -07:00
Howard Chu
494c6fa37f
ITS#7231 fix idl_append when b has only 1 element
2012-04-07 07:36:43 -07:00
Hallvard Furuseth
e6a25b2db6
ITS#7233 Fix slapd listener initialization.
...
This broke if i was incremented before the new thread read i:
for(...; i++) { ldap_pvt_thread_create(,,, &i); ... }
2012-04-07 14:13:50 +02:00
Hallvard Furuseth
19905a390f
ITS#7234 Fix syncprov entry leak: Set op->o_tag
2012-04-07 14:13:50 +02:00
Howard Chu
6d5dac4fa2
ITS#7197 fix olcTLSVerifyClient keywords
2012-04-04 13:25:09 -07:00
Pierangelo Masarati
ce54dabb1b
fix uninit'ed parameters to monitor_back_register_entry_attrs()
2012-04-04 15:09:50 +02:00
Howard Chu
b849ab00f8
ITS#7149 pick up definition of STRLENOF
2012-03-30 03:22:40 -07:00
Howard Chu
ac12129465
ITS#7182 silence warning about AVL_APPLY type
2012-03-29 07:06:16 -07:00
Ondrej Kuznik
8452b4ccde
ITS#7182 Expose the peer address of a connection.
2012-03-29 07:01:15 -07:00
Ondrej Kuznik
af09702199
ITS#7182 Expose the URI used for this connection.
2012-03-29 07:01:12 -07:00
Ondrej Kuznik
fa3a79c1b9
ITS#7182 Expose the connection flags.
...
The flags are exposed using a multivalued parameter so that other
connection flags (like back-meta's) could be exported without needing
additional code.
2012-03-29 07:01:10 -07:00
Ondrej Kuznik
cfc947dd54
ITS#7182 Enable operation and connection monitoring.
...
Reintroduce the cn=connections entry exactly as it were before ITS#7182.
2012-03-29 07:01:07 -07:00
Ondrej Kuznik
979e0f00b9
ITS#7182 Rework monitor registration.
...
Letting back-monitor create the subsystem entries is much more readable
than doing this manually.
Only the database is registered if needed (chain overlay has to be
updated to cope with this), the cn=Connection entry is removed in this
patch to be reinstated in the following one as part of the correct
subsystem.
The owner (overlay mostly) should already know the target subtree DN,
therefore the filter machinery can go away too.
2012-03-29 07:01:04 -07:00
Ondrej Kuznik
7c40b6e904
ITS#7182 Keep connection IDs for monitoring purposes.
2012-03-29 07:00:56 -07:00
Howard Chu
f6b8103b78
ITS#7149 more for back-perl, always use bv_len when available
2012-03-29 06:11:55 -07:00
Howard Chu
ab481c0f74
ITS#7149 fix back-shell/back-perl Modify with binary values
2012-03-29 06:05:15 -07:00
HIRABAYASHI Satoshi
92d439a0dd
ITS#7218 fix sessionlog usability check
2012-03-28 02:48:03 -07:00
Ondrej Kuznik
be9585d0ed
ITS#7182 Maintain the operation counts.
...
Currently ldap_back_default_rebind cannot access the ldapinfo structure.
Being a configurable callback, not letting it monitor when a change
might be disruptive feels safer.
2012-03-27 04:28:37 -07:00
Ondrej Kuznik
fb2d235615
ITS#7182 Introduce the variables for operation monitoring.
...
Only completed operations are considered for now, this can be changed
if needed.
2012-03-27 04:28:26 -07:00
Ondrej Kuznik
7baac1d9b4
ITS#7182 Add mss_private for monitor subsystem.
...
During initialization (and elsewhere), the subsystems have no way of
storing local data. While embedding them inside a larger strusture and
breaking out when needed (like the current back-ldap monitoring code
currently does) works, it certainly does not add to readability.
Notice that there is still no way to unregister an active subsystem.
This patch does not attempt to include such functionality while it might
actually be needed with the advent of SLAP_CONFIG_DELETE.
2012-03-27 04:28:16 -07:00
Howard Chu
dc0ef72dff
Cleanup prev commit
2012-03-27 01:53:41 -07:00
Ondrej Kuznik
122faa5bd9
(ITS#6987) Consider only same attribute siblings for Cft_misc.
...
For all other ce_types it holds that each is represented by one
attribute, making ce_type matching for X-ORDERED siblings equivalent to
how back-ldif handles them. Cft_misc is means "all other types", however
no overlay/backend so far has used different attributes as siblings,
triggering the difference in handling between bconfig.c and back-ldif.
2012-03-27 01:53:30 -07:00
Howard Chu
4433b1b8d5
ITS#7205 fix check for existing suffix
2012-03-26 03:35:23 -07:00
Howard Chu
93d3a4104a
ITS#7200 fix regression in b4d403ea31
2012-03-09 13:10:58 -08:00
Howard Chu
8c452e3272
ITS#7203 approxIndexer should omit zero-length keys
2012-03-09 12:47:49 -08:00
Howard Chu
47e57a9c8f
ITS#7191 fix typo, more alignment tweaks
2012-03-08 21:39:31 -08:00
Howard Chu
6143aa0c18
ITS#7201 fix config flags
2012-03-08 19:27:20 -08:00
Howard Chu
b4d403ea31
ITS#7200 enforce check for matching serverID URL
2012-03-08 19:24:09 -08:00
Howard Chu
d0bcaee0f3
ITS#7190 don't crash in slapcat on NULL entry
2012-03-06 22:15:51 -08:00
Howard Chu
6ab4d830cb
ITS#7195 add NotAllowedOnNonleaf to deltasync fallback errors
2012-03-02 14:12:41 -08:00
Howard Chu
c4325af7e0
ITS#7180 fix mdb_entry_get when mdb_entry_next was not called
2012-02-24 15:20:17 -08:00
Howard Chu
9b9f4984f0
More for ITS#7170
2012-02-23 12:08:53 -08:00
Howard Chu
3792e9ec59
ITS#7178 fix uninit'd op->ors_deref
2012-02-23 01:16:39 -08:00
Howard Chu
c4d78a17c3
ITS#7170 fix Quick mode index generation
2012-02-22 16:01:59 -08:00
Howard Chu
164e738878
ITS#7176 fix slapindex -q -t
2012-02-20 17:04:24 -08:00
Hallvard Furuseth
465942e74d
ITS#7160 Support POSIX make: No $< in target rules
2012-02-18 18:17:40 +01:00
Howard Chu
463c1fa25d
ITS#7143 fix attr_dup2 when no values are present (attrsOnly = TRUE)
2012-02-14 17:29:14 -08:00
Howard Chu
eace24ef33
ITS#7162 Revert "ITS#7052 ignore Adds with too old entryCSN"
...
This reverts commit ba4366eae0 .
The patch caused a regression (ITS#7162).
2012-02-12 21:07:25 -08:00
Howard Chu
d4b3c2af6a
Partial revert of f30269f5d2
...
ITS#6024 patch breaks MMR loop detection
2012-02-12 15:54:11 -08:00
Howard Chu
8e7af6331e
Add some debug info to aid Delete tracking
2012-02-09 14:16:17 -08:00
Timo Teräs
3dc71dfb1a
ITS#7158 Fix a crash in back-sql
2012-02-08 23:04:34 +01:00
Howard Chu
430256fafb
ITS#7143 add FIXME comment, note that current patch is not ideal
2012-02-03 11:58:00 -08:00
Howard Chu
ef2f5263de
ITS#7143 don't leave empty slots in normalized attr values
2012-02-03 11:43:40 -08:00
Howard Chu
ba4366eae0
ITS#7052 ignore Adds with too old entryCSN
2012-02-03 11:16:10 -08:00
Howard Chu
5584e5b98d
ITS#7150 fix check for already abandoned op
2012-02-03 09:35:13 -08:00
Howard Chu
3423b56690
ITS#7146 fix prev commit
2012-02-02 03:26:53 -08:00
Howard Chu
9d3b1af2ff
ITS#7146 check for ad_index overflow
...
Temporary fix...
2012-02-02 03:08:33 -08:00
Howard Chu
d2958a2a4e
ITS#7144 fix crash replicating modDN if oldRDN not present
2012-02-02 02:53:40 -08:00
Howard Chu
2e9f1f93c8
ITS#7142 fix slapadd exit on failure
2012-01-28 15:44:51 -08:00
Howard Chu
d7933e2ea4
ITS#7140 more cleanup on txn abort
2012-01-28 11:52:09 -08:00
Howard Chu
3be354d0d2
ITS#7052 syncrepl deletes should ignore some errors
...
Treat LDAP_NO_SUCH_OBJECT as success, otherwise the consumer will
abort and start a new refresh for no good reason.
2012-01-27 11:21:04 -08:00
Ondrej Kuznik
19fda82e75
ITS#7123 Update the cached entry when handling compare too.
2012-01-24 03:22:03 -08:00
Hallvard Furuseth
42faa8393e
ITS#7132 Fix syncrepl access to freed naming attr
2012-01-24 11:38:10 +01:00
Hallvard Furuseth
624642ba83
Fix sl_malloc valgrind support.
2012-01-24 01:45:51 +01:00
Hallvard Furuseth
db49dfecc9
ITS#7131 Fix connection loop connindex usage.
...
connection_<first/next>() takes a ber_socket_t *index, not int*.
2012-01-24 00:47:48 +01:00
Hallvard Furuseth
2b538761e9
ITS#7125 Document connection loop API.
...
Code comments belong in the code, not in commit messages.
2012-01-24 00:47:48 +01:00
Kevan Carstensen
7e893c75d1
ITS#7113 fix check order in connection_write()
2012-01-21 17:27:47 -08:00
Howard Chu
5ca62457f3
Fix: txn is invalidated by mdb_txn_commit()
2012-01-21 08:49:49 -08:00
Hallvard Furuseth
03e594d903
ITS#7075 Re-fix back-perl initialization.
...
Use PERL_SYS_INIT3() after all. There appears to be no correct
way to do this, so we should as least follow the documentation.
2012-01-21 05:01:43 +01:00
Howard Chu
214ad8c987
ITS#7127 fix syncrepl_config reference to freed memory
2012-01-19 15:55:54 -08:00
Hallvard Furuseth
221d3ccdc6
ITS#7125 Fix Connection.c_mutex usage.
...
Partial revert of 9e00b6cc6ce2857490b33218bdaf1339319c5f60:connection.c.
2012-01-13 16:07:39 +01:00
Kurt Zeilenga
2bbf9804b9
Happy New Year!
2012-01-01 07:10:53 -08:00
Howard Chu
68ee165fb5
ITS#7115 blocked writers should not interfere with pool pause
2011-12-21 01:24:23 -08:00
Howard Chu
85c1c545f4
ITS#7107 fix Operation init on reuse
...
Additional fix for a66fb1630c
2011-12-14 19:33:40 -08:00
Howard Chu
50e02126b7
ITS#7050 fix uninit'd return code in back-meta
2011-12-12 11:52:05 -08:00
Howard Chu
704e8228c0
ITS#7098 fix del/add of first schema element
2011-11-29 08:16:34 -08:00
Howard Chu
5b7c44a136
ITS#7099 fix dds db_open
...
Should not do anything in tool mode.
2011-11-29 05:57:36 -08:00
Howard Chu
4f298d47af
ITS#7099 fix mdb_entry_return for tool mode
...
Originally, overlays were not supposed to take effect in tool mode.
Apparently that's no longer the case...
2011-11-29 05:42:46 -08:00
Howard Chu
2c4d548206
ITS#7090 fix out-of-order slapadd
2011-11-25 00:25:52 -08:00
Pierangelo Masarati
26dc16e9f6
fix typos
2011-11-24 19:58:37 +01:00
Howard Chu
42a7fcf19a
ITS#6548,#7092 don't pass hangup events to reader thread
2011-11-19 13:57:56 -08:00
Howard Chu
7be5837dc0
Cleanup syncprov_db_close/CONFIG_DELETE code
...
No mutex needed since config ops are single-threaded.
Don't send Unavailable message if we're shutting down.
2011-11-18 01:22:52 -08:00
Howard Chu
278322ee5f
ITS#7025 fix syncprov crash
...
init fop.o_extra, copying from s_op is not guaranteed.
2011-11-18 00:31:20 -08:00
Howard Chu
111ecbdbed
ITS#6851 replace assert with error msg
2011-11-17 17:35:10 -08:00
Howard Chu
8a6402436e
More cleanup for previous slapadd tweaks
2011-11-17 14:21:18 -08:00
Howard Chu
e52127533d
ITS#7087 fix mdb_online_index endless loop
2011-11-10 16:33:49 -08:00
Howard Chu
3b2961fcc2
More debug msg null pointer checks
2011-11-09 15:36:16 -08:00
Howard Chu
a642e3eb90
Check for NULL DN in debug msg
2011-11-09 02:20:26 -08:00
Howard Chu
d9706311a0
Check for NULL DN
2011-11-09 02:07:14 -08:00
Howard Chu
676dae633a
Avoid stack overrun in mdb_search
...
Use malloc'd memory, stored persistently in thread-local storage.
2011-11-09 02:05:14 -08:00
Howard Chu
e2a7617d17
Key alignment tweaks for Sparc
2011-11-09 01:03:14 -08:00
Howard Chu
6b679875ae
Fix u_intX -> uintX
2011-11-08 19:06:46 -08:00
Howard Chu
323e70ba13
ITS#7083 fix verb_to_mask usage
2011-11-07 16:41:35 -08:00
Howard Chu
a4df185adf
ITS#7019 fix dsa-specific attr check for Persist updates
2011-11-07 15:25:07 -08:00
Quanah Gibson-Mount
3bb0c6746f
More for ITS#6984
2011-11-07 14:14:57 -08:00
Howard Chu
9f22ced88b
Fix Quickmode crash
2011-11-07 12:02:57 -08:00
Howard Chu
77cd4c53be
Dynamic config support for back-sql (untested)
2011-11-04 22:00:44 -07:00
Howard Chu
31b5c396d3
ITS#7077 preserve mirrorMode setting when deleting syncrepl
2011-11-04 18:31:09 -07:00
Howard Chu
e438122448
ITS#7081 fix prev commit
2011-11-04 11:32:38 -07:00
Howard Chu
bc54aa1078
ITS#6981 pcache: don't reference rs->sr_entry in op_cleanup
2011-11-02 09:26:50 -07:00
Howard Chu
49c6ddf99c
Revert "ITS#6981 don't free entries prematurely"
...
This reverts commit 877ebdf5ef .
2011-11-02 09:25:45 -07:00
Howard Chu
877ebdf5ef
ITS#6981 don't free entries prematurely
2011-11-01 16:24:10 -07:00
Howard Chu
f502695c81
Revert "ITS#6981 don't flush entries until after cleanup callbacks"
...
This reverts commit b68fa5ecd7 .
2011-11-01 16:14:12 -07:00
Howard Chu
b68fa5ecd7
ITS#6981 don't flush entries until after cleanup callbacks
2011-11-01 13:17:06 -07:00
Howard Chu
d69ca65afd
ITS#7060 fix str2result return code parsing
2011-11-01 12:59:36 -07:00
Howard Chu
6fa893a924
ITS#7063 add auto-converted LDIFs for missing schema
2011-11-01 12:48:26 -07:00
Howard Chu
62e65ec89b
Syntaxes must come before attributetypes in schema object
2011-11-01 12:46:10 -07:00
Howard Chu
ddaea1cf73
ITS#7065 fix cn=config modify replace/delete crash
2011-11-01 11:40:04 -07:00
Howard Chu
4045cd1dc0
ITS#7061 only return requested attrs in sssvlv response
...
Replaces commit 8eecc9a017
2011-11-01 11:23:59 -07:00
Howard Chu
9cb0386851
ITS#7062 call response callbacks even if connection was dropped
2011-11-01 11:02:00 -07:00
Hallvard Furuseth
1e62263697
ITS#7075 Fix back-perl initialization.
...
Use PERL_SYS_INIT() instead of broken PERL_SYS_INIT3(,,NULL). Pass its
output variables to perl_parse(). Fix argument type 'char *(*argv)[3]'
to 'char ***argv'. NULL-terminate argv in case that is needed.
2011-11-01 06:28:40 +01:00
Hallvard Furuseth
074fe6c298
ITS#6763,7053 Cleanup after sending entry/searchref.
...
slap_send_search_entry(), slap_send_search_reference(): Never skip
the cleanup code. Sending an entry did on sizeLimitExceeded/busy.
Sending a ref dropped rs_flush_entry() on error.
2011-10-24 01:06:42 +02:00
Howard Chu
2014460eb5
Only use tool IDL cache when multithreaded
2011-10-20 13:46:39 -07:00
Ralf Haferkamp
1ca56b5397
ITS#7066 Reworked fix
...
Seems simpler this way. No need for a back-config specific
bi_access_allowed() handler.
2011-10-20 11:50:57 +02:00
Ralf Haferkamp
72483b1d72
plugged mem-leak introduced by last commit
...
more for ITS#7066
2011-10-19 14:59:17 +02:00
Ralf Haferkamp
cf59ac0d70
ITS#7066 reworked default deny ACL for cn=config
...
Dynamically adding ACL for cn=config didn't work correctly, when no
ACLs where present for that database upon startup. Delete the last
ACL from the DB could also lead to unexpected results.
2011-10-18 17:08:05 +02:00
Howard Chu
df4738f071
Define S_IWRITE if needed
2011-10-12 19:19:52 -07:00
Howard Chu
c647a06441
More for cursor reuse
2011-10-06 19:15:10 -07:00
Howard Chu
4c17f31843
Keep some dn2i/id2e cursors open longer
...
So they can be reused, and avoid unnecessary page_searches
2011-10-06 19:14:22 -07:00
Howard Chu
7592013f59
Additional tweaks for double-threaded slapadd
2011-10-06 16:10:47 -07:00
Howard Chu
507238713b
ITS#7059 replace previous patch
...
Bug was caused by postalAddressNormalize sending 0-length values
to UTF8StringNormalize.
2011-10-06 15:22:40 -07:00
Howard Chu
d0dd8616f1
Fix UTF8StringNormalize overrun on zero-length string
...
Detected by valgrind
2011-10-06 14:06:59 -07:00
Howard Chu
df47eb24cd
Additional change for prev commit
2011-10-04 23:45:33 -07:00
Howard Chu
34adb86929
Use a thread for LDIF parsing in slapadd -q
2011-10-04 19:21:39 -07:00
Howard Chu
d06301f303
Turn off tool IDL caching
...
Well, just like in back-bdb in 2005, it only slowed things down
on larger LDIFs.
2011-10-04 02:18:09 -07:00
Howard Chu
9725bc475f
Tweak tool IDL cache, use MDB_MULTIPLE
2011-10-03 11:29:04 -07:00
Howard Chu
8a8fb76cca
Use MDB_APPEND mode where possible
2011-10-02 21:29:21 -07:00
Howard Chu
98da203fce
Use IDL caching in tool/quick mode
2011-10-02 19:38:58 -07:00
Howard Chu
a1533520c1
Use MDB_RESERVE for id2entry_put
2011-10-02 10:06:06 -07:00
Howard Chu
da210f40e1
ITS#7040 don't complain about other server's CSNs
...
Only worry if consumer has newer state for our SID. Fixes breakage
caused by ITS#6606.
2011-09-30 03:04:10 -07:00
Howard Chu
3ca52e4f94
ITS#7037 restart consumer on Persist errors
...
Consumer should never get NO_SUCH_OBJECT for an Add to the underlying DB
during Persist phase.
2011-09-30 02:27:04 -07:00
Howard Chu
638566f155
ITS#7037 fix syncrepl_add_glue for empty suffix
2011-09-30 02:10:37 -07:00
Howard Chu
b72d9b8368
ITS#7052 syncrepl deletes need a non-empty CSN
...
Must not let the underlying DB generate its own.
2011-09-30 00:09:01 -07:00
Howard Chu
c5ee5212fd
Updated for mdb_txn_begin API change.
...
Nested txn stuff which we don't use.
2011-09-21 15:59:08 -07:00
Hallvard Furuseth
47f6aec61e
back-bdb/back-mdb IDL cleanup.
...
Parenthesize macros. Microoptimize IDL search. Use RANGE_<FIRST/LAST>
when IDL is known to be a range.
2011-09-19 10:31:12 +02:00
Hallvard Furuseth
ef7f5f5e32
Cleanup ISO C compatibility for recent commits
2011-09-19 10:31:12 +02:00
Hallvard Furuseth
79f4f3c0bd
More libmdb vs back-mdb C type tweaks.
...
Do not access a size_t via an unsigned long pointer, an MDB_val via a
berval pointer, or the inverse. Instead copy into the proper data types.
2011-09-19 10:31:12 +02:00
Howard Chu
c0fc7fdbed
Fix prev commit
...
Don't truncate all indices if specific indices were given.
2011-09-18 14:47:41 -07:00
Howard Chu
344996c5e8
Support index truncation
2011-09-18 14:28:36 -07:00
Howard Chu
94c0b077d8
New mdb_close() signature
2011-09-18 13:25:38 -07:00
Howard Chu
04311cc716
Fix entry_alloc with no attrs
2011-09-14 10:14:02 -07:00
Howard Chu
0e96868e8e
Fix onelevel search from last commit
2011-09-14 09:54:58 -07:00
Howard Chu
dfed6f77d7
More search optimization
...
Tighten up entry_alloc/entry_decode
Track parent nodes in idscopes
2011-09-13 16:58:38 -07:00
Howard Chu
fb264bf3e1
Tentative speedup - use plain ints for entry_encode/decode
...
Keep entries word-aligned. Yields ~10% speedup, but also 10% more space used.
May revert this if the space cost is unacceptable.
2011-09-13 15:24:50 -07:00
Howard Chu
65b5ff2de3
mdb_db_close() should not force env_sync in quick mode
2011-09-13 01:28:37 -07:00
Howard Chu
9297050f9e
Resolve MDB/HDB monitor OID clashes
2011-09-12 11:41:04 -07:00
Howard Chu
c4ddf352ba
Just use memcpy since we know it's non-overlapping
2011-09-12 11:05:38 -07:00
Hallvard Furuseth
141a43c1ee
Tweak back-mdb integer types to match libmdb.
...
Also do not cast between berval and MDB_val. That breaks when
sizeof(berval.bv_len) != sizeof(MDB_val.mv_size).
2011-09-12 19:07:12 +02:00
Howard Chu
16cbeb5e65
Fix - slapcat doesn't set op->o_hdr for tmpmemctx
2011-09-10 01:12:50 -07:00
Howard Chu
802a2ad4b2
Fix out-of-order slapadd
2011-09-09 22:29:19 -07:00
Howard Chu
c5beffc94f
Fix bogus error codes
2011-09-09 19:53:56 -07:00
Howard Chu
54ced52c04
Keep cursor open for id2entry
2011-09-09 01:01:25 -07:00
Howard Chu
f72d65b77a
Use tmpmem-based entries
2011-09-08 22:07:04 -07:00
Howard Chu
80f6f0a1c0
Drop referral.c
2011-09-08 22:02:59 -07:00
Howard Chu
9240cbfb29
Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap
2011-09-08 21:42:58 -07:00
Howard Chu
472c0d7877
Add Valgrind mempool support.
...
Compile with -DUSE_VALGRIND. It will attempt to keep Valgrind
informed of our memory allocations. Frees are trickier since they
may be deferred indefinitely.
2011-09-08 21:39:45 -07:00
Pierangelo Masarati
ca95d353a4
silence warning
2011-09-09 01:09:04 +02:00
Pierangelo Masarati
d324ab5c74
import ITS#6925 patch; fix peeraddr variable name clash in LDAP_CONNECTIONLESS code; fix scope of addr[] when inet_ntop(3) is used
2011-09-09 01:09:04 +02:00
Howard Chu
deb0ef9f1f
Fix 6c8e4f2671
2011-09-08 10:33:01 -07:00
Howard Chu
a3346f969f
More error msgs
2011-09-06 17:29:42 -07:00
Howard Chu
9dc1b05f30
Fix 6c8e4f2 for empty suffixes
2011-09-06 14:04:38 -07:00
Howard Chu
6c8e4f2671
More search optimizations
2011-09-06 02:21:19 -07:00
Howard Chu
1e32fcf099
Use AD-indexes
2011-09-05 19:52:06 -07:00
Howard Chu
f8dc749c2d
Add AttributeDescription counter
2011-09-05 19:51:54 -07:00
Howard Chu
e5b1dce6a7
Debug helper for index
2011-09-05 15:23:08 -07:00
Hallvard Furuseth
a316851494
back-mdb/Makefile.in += variable MDB_SUBDIR.
...
For compiling against a checkout of the stand-alone libmdb,
which has a branch 'mdb.master' with its own root:
git clone --branch=mdb.master <openldap_repo_dir> mdb
set_mdb="MDB_SUBDIR=`pwd`/mdb/libraries/libmdb"
... maybe modify mdb repository for testing ...
cd <openldap_repo_dir>; make $set_mdb
2011-09-05 21:10:04 +02:00
Howard Chu
a4d0cde2d3
Fix from key_change consolidation
2011-09-05 03:52:38 -07:00
Howard Chu
7afc68c0ec
Cursor updates
2011-09-05 01:27:16 -07:00
Howard Chu
d38ef26425
Fix conversion of IDL to range
2011-09-03 13:09:19 -07:00
Howard Chu
0ba4206ed9
Import back-mdb
2011-09-01 17:00:26 -07:00
Howard Chu
8d74f717ff
For test063
...
add hex timestamp to lutil_debug() output
Fix LASTMOD race condition in accesslog.c
Set refreshInterval even if using refreshAndPersist, since
fallbacks will use refresh params
2011-08-30 19:16:39 -07:00
Howard Chu
4f35d789ac
Relax entry_header, zero-length entries are valid.
2011-08-27 14:48:04 -07:00
Howard Chu
c617f3c3b9
ITS#7029,#7031 More for prev commit
2011-08-26 16:56:43 -07:00
Howard Chu
eae46d35d2
ITS#7030 fix overlay_insert() with specific index
2011-08-25 20:51:30 -07:00
Howard Chu
1c476b302e
ITS#6983 fix duplicate entry in HDB subtree IDL
2011-08-25 14:47:23 -07:00
Howard Chu
ab69775dd0
ITS#7029 fix uninit'd nvalue
2011-08-24 16:09:37 -07:00
Howard Chu
fdb3443366
More abandon paranoia
2011-08-24 14:57:36 -07:00
Howard Chu
5829eb44a1
ITS#7025 handle Abandon in backglue
2011-08-23 13:48:59 -07:00
Howard Chu
4f5d087b4f
Don't replicate refint repair ops
2011-08-22 14:05:58 -07:00
Pierangelo Masarati
415b8ec84b
release mutex only *after* backend connection initialization (ITS#6993)
2011-08-22 11:23:54 -06:00
Pierangelo Masarati
bdbdae3e5f
according to draft-behera, this attribute only affects password modifies by self (ITS#7021)
2011-08-20 18:52:54 -06:00
Howard Chu
433812db38
For #6982 fix a66fb16
2011-08-18 01:52:52 -07:00
Pierangelo Masarati
17cfffdd29
fix TTL tolerance (ITS#7017, patch by jvcelak@redhat.com)
2011-08-17 12:57:56 -06:00
Pierangelo Masarati
fb83bf08bc
make sure frontend gets the {-1} (ITS#7016)
2011-08-16 22:18:23 -06:00
Howard Chu
a66fb1630c
hack for #6982 - keep o_abandon set in op_free
2011-08-16 13:51:10 -07:00
Howard Chu
20a8da0b7c
Revert "More for ITS#6892"
...
This reverts commit 3cb2ca8bbd .
Patch has no benefit
2011-08-16 13:49:27 -07:00
Howard Chu
3cb2ca8bbd
More for ITS#6892
2011-08-15 15:40:46 -07:00
Pierangelo Masarati
0d0d64518f
host part of unique URI must be empty (ITS#7018)
2011-08-13 23:34:31 +02:00
Pierangelo Masarati
8c2fc29786
cleanup slapd.ldif; install it (ITS#7015)
2011-08-11 17:34:29 +02:00
Pierangelo Masarati
f0810d6535
typo in comment
2011-08-11 17:09:36 +02:00
Pierangelo Masarati
6b74e9002b
make sure 2-arg statements have exactly 2 args (related to ITS#7012)
2011-08-10 20:26:59 +02:00
Pierangelo Masarati
55c70629aa
TLS config statements always need an argument (related to ITS#7012)
2011-08-10 20:26:59 +02:00
Howard Chu
a31a8ed20e
ITS#6999 fix syncrepl timeout in refreshAndPersist
2011-07-29 13:05:45 -07:00
Howard Chu
ff7acea2d2
ITS#7000 fix bad patch in ITS#6472
2011-07-28 13:52:47 -07:00
Howard Chu
8eecc9a017
Only return requested attrs in sssvlv response
2011-07-18 12:53:23 -07:00
Howard Chu
db106f89e6
ITS#6985 fix sssvlv target offset, ordering match
2011-07-18 12:41:51 -07:00
Pierangelo Masarati
c86677ef41
blind fix build on solaris native compilers (ITS#6992)
2011-07-08 08:48:59 +02:00
Pierangelo Masarati
c0b669e14f
fix config emit (ITS#6986)
2011-07-07 08:16:23 +02:00
Howard Chu
ebf07016ef
ITS#6872 fix test058 breakage from prev patch
2011-06-27 04:46:43 -07:00
Howard Chu
b1f26a8b17
Fix NO_THREADS typo
2011-06-22 20:03:24 -07:00
Howard Chu
b0fcec8d65
ITS#6716 Use sorted CSNs in syncrepl too
2011-06-22 00:32:00 -07:00
Howard Chu
6da3e3473c
ITS#6716 use sorted CSNs, fix sessionlog
...
track a CSN per SID in the log->sl_mincsn
2011-06-22 00:30:13 -07:00
Howard Chu
249422aa28
ITS#6716 Keep CSN lists sorted by SID
2011-06-21 22:35:14 -07:00
Howard Chu
ceefe132a8
ITS#6817 fix RE24 build breakage
...
Should SLAP_AUTH_DN be #defined in release now?
2011-06-21 17:05:53 -07:00
Howard Chu
ae24a1a6ac
ITS#6973 need limits_check if overlay is global
2011-06-21 02:40:38 -07:00
Ondrej Kuznik
6f43600731
ITS#6974 (Re)moving stray cleanup code.
2011-06-20 18:13:36 -07:00
Hallvard Furuseth
e25bce9124
Tweak back-ldif messages about CRC checksums.
2011-06-20 21:53:05 +02:00
Hallvard Furuseth
06fe436053
Cleanup back-ldif CRC code.
...
Handle interrupted write() again. Fix warnings/types. #ifdef LDAP_DEBUG.
2011-06-20 21:45:03 +02:00
Howard Chu
05ca8c3710
More fixes, add test script
2011-06-20 11:05:08 -07:00
Howard Chu
48cdd54d9a
Fix missing si_syncCookie numcsns
2011-06-20 06:51:33 -07:00
Howard Chu
480f0c16ff
More tweaks for delta-mmr
2011-06-20 04:27:11 -07:00
Howard Chu
67bbad6e70
delta-mmr conflict resolution
2011-06-19 20:14:03 -07:00
Howard Chu
237a686107
More for conflict detection
2011-06-19 20:13:59 -07:00
Howard Chu
95d7adcd6d
Setup delta-mmr using an overlay
2011-06-19 20:13:51 -07:00
Howard Chu
0a9f51f58d
ITS#6657/6691 use proper SQL length data type
2011-06-13 13:54:56 -07:00
Howard Chu
de395ddad3
ITS#6944 limit op cache to 10 ops per thread
2011-06-10 03:27:40 -07:00
Howard Chu
329e7937e6
ITS#6892 shortcut for non-replicated ops
2011-06-10 01:44:30 -07:00
Howard Chu
d1b38bd12b
ITS#6967 normalize schema RDN
2011-06-10 01:35:19 -07:00
Howard Chu
6f715114ff
Add CRC32 checksum to back-ldif files
...
Currently just logs a complaint on checksum mismatch. Could get
more obnoxious later.
2011-06-09 21:09:41 -07:00
Howard Chu
214d7e3750
Fix prev commit
2011-06-09 18:07:13 -07:00
Howard Chu
a4a7ffdf5c
Try to discourage editing back-ldif files
2011-06-09 17:59:08 -07:00
Howard Chu
68c7d375da
Revert "ITS#6688 enforce search ACL in back-perl"
...
This reverts commit 53bb95a2e3 .
Code was working as designed/documented. Changing now will
probably break other users.
2011-06-09 15:37:11 -07:00
Howard Chu
53bb95a2e3
ITS#6688 enforce search ACL in back-perl
2011-06-09 15:25:32 -07:00
cmikk@qwest.net
fa64b07cfc
ITS#6872
...
Perform the internal FIND_CSN search based at the backend's suffix with the
privileges of the backend's root DN.
2011-06-09 01:36:06 -07:00
Howard Chu
0a78997f97
ITS#6936 add connID and peername to auditlog
...
From ksmith @ ycp.edu, with fixes by hyc
2011-06-09 01:01:06 -07:00
Howard Chu
cbb6fe15b9
ITS#6901 fix filter with zero-length values
2011-06-08 19:17:50 -07:00
Ondrej Kuznik
c0aec23bde
ITS#6641 Bypass checks on ops with managedsait
...
Document the uniqueness changes
Fix whitespace in original patch -- hyc
2011-06-08 16:10:50 -07:00
Pierangelo Masarati
d8f97f58e2
ITS#6899
...
tag read entry response control value with [APPLICATION 4] (SearchResultEntry)
2011-06-08 22:19:09 +02:00
Pierangelo Masarati
8a1aa76b07
fix typo in previous commit
2011-06-08 00:48:57 +02:00
Howard Chu
b4cb462fe2
ITS#6948 partial revert of #6837 , unnecessary
2011-06-06 19:55:54 -07:00
Howard Chu
6e0934d570
ITS#6948 fix ITS#6837 patch
2011-06-05 13:59:19 -07:00
Howard Chu
1b08936565
ITS#6963 config entries' objectclass is read-only
2011-06-04 13:40:57 -07:00
Howard Chu
3fb9d604ef
ITS#6831 don't push stack unless needed
2011-06-03 22:22:48 -07:00
Howard Chu
f5b809b2e9
Fix ce9bbd2 missing success return
2011-06-03 21:56:01 -07:00
Howard Chu
8b90f05b59
ITS#6831 additional filter cmp fixes
2011-06-03 21:40:27 -07:00
Howard Chu
aaac401dc8
ITS#6831 fix filter comparison
2011-06-03 19:13:24 -07:00
Howard Chu
ce9bbd2df2
More for ITS#6961 - deadlock checking
2011-06-01 11:29:39 -07:00
Howard Chu
f5cb879aed
Fix for sparse ranges, get next ID from DB
...
Instead of iterating thru potentially many nonexistent IDs
2011-06-01 01:44:51 -07:00
Ralf Haferkamp
ea22849514
ITS#6954 fix consistency checker prematurely deleting cached queries
2011-05-26 15:26:55 +02:00
Ralf Haferkamp
9e80eab803
fix uninitialized bindref_time (found with valgrind)
2011-05-26 14:07:37 +02:00
Ralf Haferkamp
200af921f4
ITS#6953 do not use the cache db when refreshing
2011-05-26 10:53:27 +02:00
Howard Chu
78e1dd9b2f
ITS#6915 Don't replicate internal operations
2011-05-24 11:15:25 -07:00
Howard Chu
53b4baec8b
Revert "update entryCSN (and operational attrs in general) when changing memberOf (ITS#6329)"
...
This reverts commit 716eaf0e8b .
2011-05-24 11:06:56 -07:00
Howard Chu
d6e414db66
Revert "force the generation of a new CSN (ITS#6766)"
...
This reverts commit 53343b421c .
2011-05-24 11:06:26 -07:00
Howard Chu
637b625047
Revert "ITS#6915 fix op timestamps"
...
This reverts commit 81687b321c .
2011-05-24 11:06:11 -07:00
Ralf Haferkamp
5402fef6d7
ITS#6951 Fix two buffersize issue in "pcacheBind" config processing
...
Found with valgrind
2011-05-24 15:36:15 +02:00
Ralf Haferkamp
aa8615b8a2
ITS#6950 Fix '1.1', '+' and '*' in pcacheAttrSets
2011-05-24 14:35:03 +02:00
Pierangelo Masarati
052da7f8a2
check sat_equality before using it (ITS#6943)
2011-05-23 00:22:12 +02:00
Hallvard Furuseth
32792a4fbc
ITS#6935 Fix uninitialized cert-syntax vars.
...
serialNumberAndIssuerNormalize(): s3,
attributeCertificateExactNormalize():sn2,i_sn2.
2011-05-09 15:50:22 +02:00
Hallvard Furuseth
34c772e28d
ITS#6933 Add missing strdup of lutil_getRegParam()
2011-05-09 15:37:55 +02:00
Hallvard Furuseth
071c5800eb
ITS#6932: Move assert(str) before Debug(..str).
2011-05-07 20:11:35 +02:00
Hallvard Furuseth
fac36dcba7
ITS#6932: Clean up strange asserts & nearby code.
...
Mostly found by Klocwork: Issues #213,298-300,331,342-343,374,390,410.
2011-05-05 15:55:29 +02:00
Hallvard Furuseth
e2e5a8504d
klocwork#255 Fix sprintf(%d, u_int32_t)
2011-05-05 13:51:36 +02:00
Howard Chu
45ce60c094
ITS#6909 blind fix. re-init creds for retry.
...
Move retry so that cred validity is also re-checked.
2011-04-23 21:11:52 -07:00
Howard Chu
81687b321c
ITS#6915 fix op timestamps
...
This has always been broken since memberof was first written
2011-04-23 20:56:11 -07:00
Howard Chu
7a66c84783
More for ITS#6815, Unbind and Abandon
2011-04-20 12:31:27 -07:00
Howard Chu
9e00b6cc6c
Add strictrefresh syncrepl option
...
Only affects delta-syncrepl - stop listening to clients while
refresh is running.
2011-04-15 11:13:38 -07:00
Howard Chu
d6eb465bca
Log when delta-sync has to fallback
2011-04-15 10:41:31 -07:00
Howard Chu
b062dd67de
Log entry DN on syncrepl errors
2011-04-14 22:07:12 -07:00
Hallvard Furuseth
76b7a83026
Merge missing files from cvs repo
2011-04-04 15:38:46 +02:00
Luke Howard
4f0dc06553
slapi_attr_add_value should use attr_valadd to set a_numvals
2011-03-30 21:03:39 +11:00
Howard Chu
1cfe042f53
ITS#6870 fix winsock wake_sds init
2011-03-24 10:38:09 +00:00
Ralf Haferkamp
f4e5030c22
First underlying LDAP database needs special treatment upon deletion
2011-03-22 16:14:02 +00:00
Ralf Haferkamp
33cab9b7ed
Allow deletion of chain overlay's back-ldap databases
2011-03-22 15:37:11 +00:00
Hallvard Furuseth
471fb7ab3b
Comment back-ldap/SampleLDAP.pm data structure
2011-03-18 15:36:32 +00:00
Ralf Haferkamp
c70165c294
Set appropriate error code, when trying to delete non-leaf
...
entry from cn=config
2011-03-18 10:50:44 +00:00
Howard Chu
0ae659ad87
sl_busy is used as a boolean so just set it, don't increment it
2011-03-17 17:19:25 +00:00
Kurt Zeilenga
868e11f6f5
use IANA assigned OID for dontUseCopy control, don't hide anymore
2011-03-16 19:24:41 +00:00
Howard Chu
31175da39e
More for ITS#6853, check for trickle thread not yet started
2011-03-16 17:30:24 +00:00
Ralf Haferkamp
e6267d3317
Allow deleting Cft_Misc config entries by setting a delete
...
handler in the ConfigOCs structure
2011-03-16 17:29:10 +00:00
Ralf Haferkamp
bc00bee6c2
silence warning
2011-03-15 16:57:41 +00:00
Ralf Haferkamp
d4757e170b
removing global overlays should work now as well
2011-03-15 16:26:05 +00:00
Ralf Haferkamp
fa4aa9845f
plugged possible memory leak (e.g. when deleting syncrepl config)
2011-03-14 17:29:55 +00:00
Howard Chu
2399e2536f
More for 6853, add condvar for end condition
2011-03-11 22:16:13 +00:00
Howard Chu
db13bc1d4c
ITS#6858 fix segv if adding values out of order
2011-03-09 18:22:50 +00:00
Howard Chu
e8522e6cd1
More for prev commit - none of this is necessary if no_detach is true
2011-03-09 18:09:35 +00:00
Ralf Haferkamp
0ef6a3cc51
Removed missleading comments in ldap_chain_uri_cmp/_dup.
...
Likely a copy and paste left over.
2011-03-09 16:07:54 +00:00
Ralf Haferkamp
8359d5dcd9
ITS#6857 avoid overwriting be_flags of the underlying database
...
when setting up the chain overlay from slapd.conf
2011-03-07 16:55:57 +00:00
Pierangelo Masarati
821d2616b5
fix commit 1.268, related to ITS#6817
2011-03-05 10:30:21 +00:00
Pierangelo Masarati
16a1417a3f
more about ITS#6817
2011-03-05 10:28:04 +00:00
Howard Chu
7dd1089706
ITS#6853 wait for trickle task to quit
2011-03-04 23:54:10 +00:00
Howard Chu
84361763f1
ITS#6850 from Raphael Ouazana @ Linagora
2011-03-04 23:02:23 +00:00
Howard Chu
14dd620ae3
ITS#6852 add ordering for uidNumber and gidNumber
...
corresponds to draft-howard-rfc2307bis-02
2011-03-04 22:58:36 +00:00
Howard Chu
bfa05a5e32
More for #6561 - delete returns NO_SUCH_ATTRIBUTE, not TYPE_OR_VALUE_EXISTS
2011-03-04 07:54:06 +00:00
Howard Chu
07147abadc
Fix prev commit
2011-03-04 07:22:15 +00:00
Howard Chu
faa070d446
More for #6848 - drop -w option, just make it default behavior
2011-03-01 01:31:11 +00:00
Howard Chu
93da727d86
ITS#6848 Add -w option to wait for DB startup before parent exits
2011-03-01 01:19:37 +00:00
Howard Chu
d89b0d7604
ITS#6845 set a_flags in attr_alloc()
2011-03-01 00:28:37 +00:00
Howard Chu
640ff9c84b
Revert prev commit
2011-03-01 00:15:16 +00:00
Howard Chu
4a4bf0bf39
Cleanup error messages
2011-02-28 11:38:19 +00:00
Howard Chu
bc2b9f54f7
ITS#6845 don't muck with save_attrs for index deletes, use a new array
2011-02-28 10:17:03 +00:00
Howard Chu
7288804425
ITS#6845 set sorted flag on newly created sorted attrs
2011-02-28 09:58:25 +00:00
Pierangelo Masarati
05b5405c5e
fix potential deadlock in back-meta (ITS#6846)
2011-02-28 09:27:18 +00:00
Howard Chu
28f0f11c6c
Fix uninit'd var
2011-02-25 05:32:05 +00:00
Howard Chu
0109f871bf
Fix dnIsSuffix to use berval len
2011-02-25 03:25:20 +00:00
Ralf Haferkamp
db7304fc4e
ITS#6843 Fix cn=config slapadd for global overlays with private
...
database instances (e.g. slapo-chain)
2011-02-24 17:50:08 +00:00
Howard Chu
eeb7603de6
Fix prev commit
2011-02-24 13:22:57 +00:00
Ralf Haferkamp
24eb35f9b7
fix bdb_cache_deref() definition to match prototype
2011-02-23 15:51:09 +00:00
Howard Chu
4f2949b1ce
Use refcnt instead of keeping entry locked in Add response
2011-02-23 03:53:21 +00:00
Howard Chu
e92278b457
Tweak error message
2011-02-23 03:47:05 +00:00
Howard Chu
f5422a8eeb
More for cn=config support
2011-02-23 03:46:06 +00:00
Howard Chu
028c176c85
ITS#6815 delimited verbstring parsing
2011-02-23 03:44:54 +00:00
Howard Chu
2063cc9db7
ITS#6815 add logbase option, to only log requests matching a given suffix
2011-02-23 02:47:19 +00:00
Howard Chu
a60c82b3ba
ITS#6837 olcChainDatabase inherits from olcLDAPConfig
2011-02-19 02:49:18 +00:00
Howard Chu
6005349cbc
ITS#6837 make sure objectclasses are processed in correct
...
inheritance order
2011-02-19 02:48:47 +00:00
Howard Chu
20655ca45a
ITS#3272 link against libslapi.la
2011-02-17 02:57:47 +00:00
Hallvard Furuseth
1e76343406
Unlock new_cached_query->rwlock before destroying it.
...
Fixes rev 1.210 (new since last OpenLDAP release).
2011-02-11 11:43:18 +00:00
Howard Chu
61029a3ecf
Add substring matching rules for some of the olc-schema attributes.
...
Allows for easy extraction of individual objectclass definitions using
matchedValues searches.
2011-02-11 04:27:17 +00:00
Ralf Haferkamp
6a6626b49d
removed some used vars
2011-02-08 17:20:44 +00:00
Howard Chu
3a8720d3db
Cleanup ASPERL ifdefs
2011-02-05 00:51:18 +00:00
Howard Chu
d1cc334deb
Cleanup PERL_5_6 ifdefs
2011-02-05 00:48:22 +00:00
Hallvard Furuseth
2a9ef9badc
Silence gcc -Wformat: Cast printf %p arg to void*
2011-02-04 21:24:13 +00:00
Hallvard Furuseth
824ea93d84
Fix ITS#6814: Restore filter2bv_x() prototype.
...
It was removed in proto-slap.h 1.814, but the function is still in use.
2011-02-04 21:12:48 +00:00
Howard Chu
09cd5ebc4e
Overlay result is in rs->sr_err
2011-02-04 17:36:49 +00:00
Howard Chu
586c52c38d
config OID for back-perl
2011-02-04 17:13:29 +00:00
Howard Chu
6e0d483f62
Backward compatibility - treat unknown directives as perlModuleConfig's
2011-02-04 17:07:35 +00:00
Howard Chu
1c59810a89
Fixup config init
2011-02-04 16:42:06 +00:00
Howard Chu
6c7654d484
Fix typo from rev 1.15. Apparently nobody has used this module since 2007.
2011-02-04 16:21:10 +00:00
Ralf Haferkamp
41352ea34d
Fixed the overlay delete code to allow removing
...
cn=config overlays again.
2011-02-04 16:10:11 +00:00
Howard Chu
95f014d02f
Cleanup config items on destroy
2011-02-04 15:25:42 +00:00
Howard Chu
4e96cd4605
More cleanup / old perl compat
2011-02-04 15:03:16 +00:00
Howard Chu
a815d1821c
Dynamic config support - not fully backward compatible
2011-02-04 15:00:10 +00:00
Howard Chu
e3eecf85c4
Dynamic config for back-shell
2011-02-04 13:09:15 +00:00
Howard Chu
aa0153ee88
Fix typo
2011-02-04 12:22:55 +00:00
Howard Chu
e3a5e9d060
Dynamic config for back-passwd
2011-02-04 12:22:17 +00:00
Howard Chu
999b6407b0
Add overlay config stuff, handle overlay responses
2011-02-04 10:52:34 +00:00
Pierangelo Masarati
5d9baf3e85
use (noncritical) whoami extop during SASL bind (ITS#6817)
2011-02-03 23:35:56 +00:00
Pierangelo Masarati
ddbcb565d4
use (noncritical) authzid control during SASL bind (ITS#6817)
2011-02-03 23:20:15 +00:00
Howard Chu
cfd29403c0
Just use back-sock OID arc for overlay
2011-02-03 21:54:11 +00:00
Howard Chu
bef7970e8b
As an overlay, always return SLAP_CB_CONTINUE
2011-02-03 21:34:45 +00:00
Howard Chu
d678a83720
Add response message for overlays
2011-02-03 21:24:26 +00:00
Howard Chu
9ca9459ece
More for overlay use, add connid extension
2011-02-03 20:47:38 +00:00
Howard Chu
8ab45884e3
Add overlay wrapper, use for triggers etc.
2011-02-03 20:17:23 +00:00
Pierangelo Masarati
fb2092328c
do not set c_authz_backend unless needed (ITS#6824, thanks to Howard)
2011-02-03 20:04:56 +00:00
Howard Chu
14b7b19c0d
ITS#6821 make sure objectclass is processed before other mods
2011-02-03 00:15:09 +00:00
Hallvard Furuseth
4225acc07a
Revert last ITS#6532 commit, it is incomplete.
...
Needs better MUTATION support in filter.c first.
2011-02-02 23:28:42 +00:00
Hallvard Furuseth
b508c611a6
More ITS#6532: Support (:UUIDOrderingMatch:=foo)
2011-02-02 23:15:17 +00:00
Hallvard Furuseth
e74964d51b
More ITS#6532: Support (:csnOrderingMatch:=foo)
2011-02-02 22:24:39 +00:00
Pierangelo Masarati
4e3eac93f7
prefix undef attrs with undef: (ITS#6823)
2011-02-02 21:45:34 +00:00
Howard Chu
e72c093a55
ITS#6711 minimal tweaks for aclbind/idassertbind for privileged connection
...
in dobind_int().
2011-02-02 20:56:58 +00:00
Howard Chu
d626977848
Cleanup priv/idassert choice: check for configured bind method, not authcDN
2011-02-02 20:32:48 +00:00
Howard Chu
aec5adac17
ITS#6711 use idassert TLS conf for priv connection if aclbind not set
2011-02-02 20:06:28 +00:00
Ralf Haferkamp
c9e49778f4
ITS#6822 fix back-config's default ACL when overlays are in place
2011-02-02 19:56:08 +00:00
Pierangelo Masarati
e4fcc294fa
ignore attrs in search request that do not conform to RFC 4511 4.5.1.8. or standard track extensions (ITS#6819)
2011-02-01 23:13:58 +00:00
Pierangelo Masarati
15c8ad1f46
make sure data is reset
2011-02-01 22:58:41 +00:00
Howard Chu
6059ffaa00
Use larger key buffer
2011-02-01 21:24:38 +00:00
Howard Chu
acf502d99d
ITS#6806 fix uninit'd NA.txn
2011-02-01 21:21:31 +00:00
Pierangelo Masarati
aef310e4d8
do not return void (ITS#6820)
2011-02-01 17:49:27 +00:00
Pierangelo Masarati
75e3a1931d
ignore empty attrs in search requests (ITS#6819; see also ITS#6652)
2011-02-01 13:09:11 +00:00
Pierangelo Masarati
293b5e51a5
first cut at SASL bind issues in idassert (related to ITS#6817)
2011-01-31 22:07:04 +00:00
Pierangelo Masarati
67a9ef8c33
give the caller a chance to use undefined filters (more about ITS#6814)
2011-01-31 21:53:56 +00:00
Pierangelo Masarati
6d35c255d3
do not cause f_result to override undefined ava
2011-01-31 21:33:54 +00:00
Pierangelo Masarati
539a6902de
do not denormalize attrs without equality rule (ITS#6818)
2011-01-31 21:20:33 +00:00
Hallvard Furuseth
4064e3c15d
Re-fix ITS#6793 (back-ldap bad free of matchedDN).
...
Previous fix opened for a ITS#6758-style double free if the
caller was broken. Using REP_MATCHED_MUSTBEFREED is more robust.
2011-01-31 05:30:05 +00:00
Pierangelo Masarati
36d0a161ab
also handle RFC 4526 t-f filters in back-ldap (more about ITS#6814)
2011-01-29 14:23:53 +00:00
Pierangelo Masarati
4acb60f808
also handle RFC 4526 t-f filters in back-ldap (more about ITS#6814)
2011-01-29 14:16:02 +00:00
Pierangelo Masarati
b996c17eb2
handle undefined filters in back-ldap (more about ITS#6814)
2011-01-29 12:29:20 +00:00
Pierangelo Masarati
8fcc9b058b
handle undefined objectClass values in search filters (ITS#6814)
2011-01-29 10:30:17 +00:00
Howard Chu
3f28eeb797
ITS#6812 cleanup error codes
2011-01-29 03:30:22 +00:00
Howard Chu
20e7176183
More for ITS#6807, make sure to check_syncprov() after initial startup
2011-01-28 22:01:18 +00:00
Hallvard Furuseth
42cb7f06f1
cleanup: Rename rs_ensure_entry_modifiable().
...
The name rs_entry2modifiable() is more reasonably sized.
For now, leave behind a macro rs_ensure_entry_modifiable in proto-slap.h.
2011-01-28 16:33:55 +00:00
Howard Chu
36563721bc
Fix a couple FIXMEs: use ldif_put to allow for binary values in
...
compare and modify. Note that line wrapping is disabled; presumably
existing code expects the compare argument to use only a single line.
The manpage should be updated to note whether standard LDIF with
default line wrapping is expected or not. (Add uses default width already.)
2011-01-28 09:40:52 +00:00