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
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
a4df185adf
ITS#7019 fix dsa-specific attr check for Persist updates
2011-11-07 15:25:07 -08: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
4045cd1dc0
ITS#7061 only return requested attrs in sssvlv response
...
Replaces commit 8eecc9a017
2011-11-01 11:23:59 -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
Hallvard Furuseth
ef7f5f5e32
Cleanup ISO C compatibility for recent commits
2011-09-19 10:31:12 +02: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
4f5d087b4f
Don't replicate refint repair ops
2011-08-22 14:05:58 -07: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
Pierangelo Masarati
17cfffdd29
fix TTL tolerance (ITS#7017, patch by jvcelak@redhat.com)
2011-08-17 12:57:56 -06: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
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
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
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
ae24a1a6ac
ITS#6973 need limits_check if overlay is global
2011-06-21 02:40:38 -07:00
Howard Chu
329e7937e6
ITS#6892 shortcut for non-replicated ops
2011-06-10 01:44:30 -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
Howard Chu
3fb9d604ef
ITS#6831 don't push stack unless needed
2011-06-03 22:22:48 -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
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
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
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
84361763f1
ITS#6850 from Raphael Ouazana @ Linagora
2011-03-04 23:02:23 +00:00
Howard Chu
28f0f11c6c
Fix uninit'd var
2011-02-25 05:32:05 +00:00
Howard Chu
eeb7603de6
Fix prev commit
2011-02-24 13:22:57 +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
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
Ralf Haferkamp
6a6626b49d
removed some used vars
2011-02-08 17:20:44 +00:00
Pierangelo Masarati
4e3eac93f7
prefix undef attrs with undef: (ITS#6823)
2011-02-02 21:45:34 +00:00
Pierangelo Masarati
15c8ad1f46
make sure data is reset
2011-02-01 22:58:41 +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
67a9ef8c33
give the caller a chance to use undefined filters (more about ITS#6814)
2011-01-31 21:53:56 +00:00
Howard Chu
3f28eeb797
ITS#6812 cleanup error codes
2011-01-29 03:30:22 +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
Pierangelo Masarati
2a513ad623
cleanup monitor unregister (ITS#6808)
2011-01-27 22:27:22 +00:00
Pierangelo Masarati
d829953dd0
empty query UUID means negative caching (ITS#6796)
2011-01-18 20:44:45 +00:00
Pierangelo Masarati
c4bdb76de0
count attr values; don't free dangling pointers (ITS#6797)
2011-01-18 20:33:12 +00:00
Howard Chu
4c1464f3cd
ITS#6795 plug sr_ctrls memleak
2011-01-18 02:24:35 +00:00
Pierangelo Masarati
85ba0b81ed
fix previous commit
2011-01-17 15:06:11 +00:00
Pierangelo Masarati
3c82ea09c7
make sure rwm_response returns SLAP_CB_CONTINUE (ITS#6792, as indicated by Hallvard)
2011-01-17 13:15:28 +00:00
Howard Chu
e3f344bcbd
ITS#6717 refine mincsn check for MMR
2011-01-13 22:45:59 +00:00
Howard Chu
7da903a11d
ITS#6716 partial revert, initialize sl_mincsn at db_open
2011-01-13 22:23:05 +00:00
Hallvard Furuseth
1ecaeb3b18
noop change: Silence signed vs unsigned warnings
2011-01-12 14:44:03 +00:00
Howard Chu
5ece155e14
More for #6503
2011-01-06 22:46:08 +00:00
Howard Chu
d4523d3142
ITS#6503 - record Adds in sessionlog too, to avoid excessive present phases
2011-01-06 22:37:23 +00:00
Kurt Zeilenga
966cef8c9a
Happy New Year
2011-01-05 00:42:37 +00:00
Pierangelo Masarati
53343b421c
force the generation of a new CSN (ITS#6766)
2011-01-03 00:04:53 +00:00
Pierangelo Masarati
ab4eb5e673
skip operations when internal
2011-01-02 23:36:30 +00:00
Pierangelo Masarati
d562608e40
memberof handling of rename (ITS#6700)
2011-01-02 23:03:13 +00:00
Pierangelo Masarati
7c77d9b801
fix control value generation (ITS#6652)
2011-01-02 17:19:14 +00:00
Pierangelo Masarati
0a12ea91df
hex digits need to be in pairs (ITS#6652)
2011-01-02 15:58:48 +00:00
Pierangelo Masarati
cddaeff565
fix reqControls validator (partially addresses ITS#6652)
2011-01-02 15:50:00 +00:00
Hallvard Furuseth
f4a3304477
ITS#6758 Use rs_*() to manage SlapReply entries.
...
Some noop changes + fixes entry leaks and REP_ENTRY_MODIFIABLE flag leaks.
2010-12-31 17:55:36 +00:00
Hallvard Furuseth
713886ec07
ITS#6758, pcache.c: Avoid SlapReply reuse.
...
refresh_merge(): Do not reuse Search SlapReply parameter for a Modify,
use a local one and copy its sr_err to the parameter. The parameter is
from refresh_query(). Move its SlapReply parameter to a local variable.
2010-12-31 13:46:48 +00:00
Hallvard Furuseth
6d7c1880a8
ITS#6758 Avoid SlapReply reuse.
...
Caller provides a SlapReply and reads the result after the operation,
then reuses it. Reinitialize before reuse, or move declaration inwards.
2010-12-31 13:08:11 +00:00
Hallvard Furuseth
04f8fa5619
ITS#6760: Fix rwm entry handling
2010-12-31 12:01:03 +00:00
Hallvard Furuseth
13f52646b2
ITS#6758 Avoid SlapReply reuse, simple cases.
...
Caller provides and reuses a SlapReply it does not read after
initialization. So reinitialize or move the declaration inwards.
In case of refint, move the rs parameter into refint_repair().
2010-12-31 10:46:22 +00:00
Howard Chu
089cf2d421
ITS#6670 partial fix - ignore member/memberof pointing to same entry
2010-12-31 01:38:24 +00:00
Hallvard Furuseth
d2b024be4a
ITS#6758 Reset some SlapReply flags & data.
...
Reset data more consistenlty. When resetting sr_entry after sending
data, reset sr_flag as well. Reset rs_attrs and Extended Operation
oid/data after setting and sending them.
2010-12-30 23:55:07 +00:00
Hallvard Furuseth
f7a77545ad
noop commit for ITS#6758: simplify future commits
2010-12-30 23:48:41 +00:00
Hallvard Furuseth
98966abeef
noop commit for ITS#6758: Remove no-effect code.
...
Unused variable resets, unused SlapReply parameters to some functions.
2010-12-30 23:43:12 +00:00
Hallvard Furuseth
cd6e9156e7
Remove lint (unused vars/labels/funcs/default:s)
2010-12-30 23:34:55 +00:00
Hallvard Furuseth
027b6812ee
ITS#6686 Fix last commit (declaration after code)
2010-12-28 15:59:48 +00:00
Howard Chu
e907ba219b
ITS#6686 add multiple sorts per connection, from Raphael Ouazana @ Linagora
2010-12-23 22:29:57 +00:00
Hallvard Furuseth
720aa4b77e
Plug mutex/rwlock leaks (destroy them)
2010-12-20 10:57:06 +00:00
Hallvard Furuseth
78a0be6a42
Plug memory leaks
2010-12-20 10:51:14 +00:00
Hallvard Furuseth
9e6331f14f
ITS#6752 Remove OpenLDAP 2.[23] dynlist code
2010-12-20 10:25:11 +00:00
Hallvard Furuseth
e7df2ef95f
ITS#6752 Handle REP_ENTRY_* flags correctly
2010-12-20 10:22:19 +00:00
Hallvard Furuseth
42a0f5efc2
ITS#6752 Fix dynlist Compare callback
...
Replace dynlist_sc_save_entry() with dynlist_sc_compare_entry() which
compares instead of saves the entry. Check rs->sr_type == REP_SEARCH.
2010-12-20 10:20:38 +00:00
Hallvard Furuseth
abbf57fd79
ITS#6752 dynlist: Do less work, simplify a bit.
...
Rearrange dynlist_compare(), tweak dynlist_response().
2010-12-20 10:19:21 +00:00
Hallvard Furuseth
2a9c5154ef
ITS#6748 Drop possibly-broken memberof log message
2010-12-14 15:26:42 +00:00
Hallvard Furuseth
0aa8c028b3
ITS#6746: Preserve error code, plug entry leak
2010-12-14 13:35:42 +00:00
Rein Tollevik
b4aa8dc68c
ITS#6716: Keep sessionlog sorted by csn, compare mincsn with head.
2010-12-12 18:12:05 +00:00
Hallvard Furuseth
6be3671985
Fix rev 1.132 (ITS#6632): Initialize all of roc in rwm_callback_get()
2010-12-03 10:08:59 +00:00
Hallvard Furuseth
50b1c4e1b1
ITS#6620: Don't delete absent pwdChangedTime.
...
Based on patch by Martin Evans.
2010-12-02 12:19:31 +00:00
Hallvard Furuseth
3d48d5a360
ITS#6730: Only update modifiersName once per entry
2010-12-01 11:21:29 +00:00
Hallvard Furuseth
a36512660f
ITS#6730: Fix missing refint updates with subtrees/subordinates
2010-12-01 11:19:17 +00:00
Hallvard Furuseth
9a9302a2f5
ITS#6663: Fix refint_nothing.
...
Also move callback trace output out of inner loop in callback.
2010-12-01 10:48:43 +00:00
Pierangelo Masarati
fa4dbb871b
fix double free related to ITS#6720
2010-11-29 16:03:43 +00:00