Jan Synacek
3c19681372
ITS#7431 fix constraint_check_restrict segfault
2012-11-26 13:49:53 -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
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
Jan Synacek
2991111f82
ITS#7418 Fix slapo-constraint: handle uri and restrict correctly
2012-10-30 16:07:26 -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
Jan Synacek
057949785f
ITS#7340 Fix handling of sets when checking for count constraint
2012-08-21 11:57:59 -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
Emily Backes
c453a236fc
Update name information
2012-07-22 07:08:35 -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
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
96876a171a
ITS#7292 more syncprov leaks
2012-06-07 16:02:45 -07:00
Howard Chu
4dba1f6963
ITS#7292 plug memleaks in accesslog,syncprov
2012-06-07 11:33:20 -07:00
Howard Chu
1d89901e73
ITS#7253 add a note about Criticality and RFC4510
2012-04-20 07:24:03 -07:00
Pierangelo Masarati
e92704309a
more on ITS#6656
2012-04-17 21:51:02 +02: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
Howard Chu
9e6245f87e
ITS#7235 prevent sop from being freed during init
2012-04-07 10:22:56 -07:00
Hallvard Furuseth
19905a390f
ITS#7234 Fix syncprov entry leak: Set op->o_tag
2012-04-07 14:13:50 +02:00
Pierangelo Masarati
ce54dabb1b
fix uninit'ed parameters to monitor_back_register_entry_attrs()
2012-04-04 15:09:50 +02:00
HIRABAYASHI Satoshi
92d439a0dd
ITS#7218 fix sessionlog usability check
2012-03-28 02:48:03 -07:00
Howard Chu
3792e9ec59
ITS#7178 fix uninit'd op->ors_deref
2012-02-23 01:16:39 -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
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
5584e5b98d
ITS#7150 fix check for already abandoned op
2012-02-03 09:35:13 -08:00
Kurt Zeilenga
2bbf9804b9
Happy New Year!
2012-01-01 07:10:53 -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
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
Hallvard Furuseth
0ab060091e
Silence gcc -Wsign-compare (no real change)
2010-11-22 13:45:11 +00:00
Hallvard Furuseth
b39e9d151d
For ITS#5421: Remove ldap-int.h dependencies.
...
LDAP_FREE() -> ber_memfree(), msg->lm_ber -> ldap_get_message_ber(msg).
2010-11-22 12:51:44 +00:00
Rein Tollevik
d3cddce244
ITS#6718: Send NEW_COOKIE messages to all consumers.
2010-11-21 19:00:38 +00:00
Rein Tollevik
990d8f562f
ITS#6710: Force clients to refresh if context is dirty.
2010-11-21 17:56:09 +00:00
Rein Tollevik
877fc0ab37
ITS#6709: Wait for active mods to finish before initiating new consumers.
2010-11-21 15:31:38 +00:00
Rein Tollevik
ba86259aa0
ITS#6708: Mutex protect fixing the filter.
2010-11-15 15:42:06 +00:00
Ralf Haferkamp
e1c2a67517
Unregister VLV control as well when last overlay instance
...
is removed (additional fix for ITS#6647)
2010-11-04 12:13:26 +00:00
Howard Chu
de6dbc981e
ITS#6685 fix result code tag
2010-10-26 00:59:10 +00:00
Ralf Haferkamp
76c611ad42
Removed unused variables
2010-10-19 10:48:21 +00:00
Ralf Haferkamp
02753d1555
ITS#6677 moved one more #endif, addtional fix for previous commit
2010-10-19 10:47:41 +00:00
Howard Chu
2cd0b96158
ITS#6677 move #endif
2010-10-17 01:36:47 +00:00
Pierangelo Masarati
85369497aa
do not expose control until sssvlv overlay is actually instantiated at least once (ITS#6647)
2010-10-06 08:24:45 +00:00
Pierangelo Masarati
dc78654c0b
make sure so is correctly initialized (spotted by valgrind, possibly related to ITS#6649)
2010-09-18 18:27:28 +00:00
Pierangelo Masarati
79d4e4cf6a
add support for ADD_IF_NOT_PRESENT and SOFTDEL internal modification types (ITS#6561)
2010-09-07 13:21:20 +00:00
Pierangelo Masarati
c405143a0a
ignore undefined attrs (ITS#6600, based on patch by Jonathan CLARKE)
2010-09-07 02:03:23 +00:00
Pierangelo Masarati
c78014bc5d
make sure callback is freed (ITS#6640)
2010-09-07 02:01:35 +00:00
Pierangelo Masarati
df2573b4a9
hacks ITS#6632
2010-08-29 08:08:42 +00:00
Howard Chu
a8ffb63331
Better fix - avoid allocating callback for non-logged mod ops
2010-08-04 08:50:29 +00:00
Howard Chu
21d299e370
More for ITS#6608 - don't replicate ppolicy state changes on replicas
2010-08-04 08:14:59 +00:00
Howard Chu
9434a7d676
ITS#6608 don't update mod opattrs on single-master slaves
2010-07-28 02:43:21 +00:00
Howard Chu
7e7f24f13f
ITS#6606 send error if consumer is newer than provider
2010-07-28 02:21:27 +00:00
Howard Chu
c7305c4133
Check for SLAP_SYNTAX_DN flag instead of distinguishedName syntax
2010-07-12 03:20:57 +00:00
Ralf Haferkamp
c4f0c2cc2b
unregister controls when removing syncprov, ppolicy, valsort, chain or
...
sssvlv overlay
2010-07-01 11:51:43 +00:00
Ralf Haferkamp
7b2dc4c059
Send error to active psearches upon overlay removal
2010-06-23 16:34:25 +00:00
Howard Chu
9a0e94b4dc
More for ITS#6572, fix copy/paste error
2010-06-17 22:05:33 +00:00
Howard Chu
28072167c7
ITS#6572 zero out freed DN vals. from mbackes@symas.com
2010-06-13 18:47:21 +00:00
Howard Chu
c8c3847103
ITS#6566 use Debug, not fprintf(stderr)
2010-06-02 00:18:32 +00:00
Howard Chu
a07d3630cb
Quit send loops if slapd is shutting down
2010-05-21 17:47:17 +00:00
Ralf Haferkamp
a06696a1ef
During the refresh phase the sync filter needs to be adjusted (skipping
...
the "(entrycsn>=cookie)" part that was inserted) when checking whether a
change needs to be replicated, otherwise we lose DELETES that happen during
the refresh phase (ITS#6555).
2010-05-20 17:08:28 +00:00
Howard Chu
c45fca65fc
Init uninit'd vlv flag
2010-05-18 07:35:12 +00:00
Ralf Haferkamp
5743591419
Reset BackendInfo to original value after checkpoint. Plugs a memory leak
...
when deleting the syncprov overlay from a database (when compiled with
-DSLAP_CONFIG_DELETE)
2010-04-29 15:47:27 +00:00
Pierangelo Masarati
71a11b44e8
fix memory handling in rewrite parsing (ITS#6526)
2010-04-17 16:29:34 +00:00
Pierangelo Masarati
9d2e03f052
allow to specify a per-database list of attributes that need to be always collected, even if not explicitly requested by clients (addresses ITS#6513)
2010-04-15 05:26:21 +00:00
Pierangelo Masarati
a3a603eca6
malloc as much as possible on slab
2010-04-15 05:11:23 +00:00
Howard Chu
68ce33cd77
ITS#6519 don't replicate purge deletes
2010-04-13 23:28:35 +00:00
Kurt Zeilenga
3dadeb3efe
happy belated New Year
2010-04-13 22:17:29 +00:00
Pierangelo Masarati
5564ee0173
don't free before use
2010-04-12 16:24:01 +00:00
Pierangelo Masarati
a6298f97fc
keep attrs count consistent (ITS#6508)
2010-04-08 17:24:44 +00:00
Pierangelo Masarati
063c844b2a
increment counter (ITS#6497)
2010-03-23 20:33:06 +00:00
Pierangelo Masarati
7ca6247395
check for NULL backend (ITS#6490)
2010-03-22 21:48:25 +00:00
Howard Chu
7cec659d74
Fix prev commit
2010-03-13 21:41:51 +00:00
Howard Chu
968663d6e4
Fix for CB_TAIL with cached results
2010-03-10 22:25:42 +00:00
Howard Chu
e85ca5d49a
ITS#6484 don't bypass other overlays' entry_release handler
2010-03-03 23:36:29 +00:00
Howard Chu
f992b66f05
ITS#6484 - cache DB needs to release its own entries
2010-03-02 21:29:32 +00:00
Pierangelo Masarati
3cd65c0a5d
reduce code duplication
2010-02-12 08:55:34 +00:00
Ralf Haferkamp
837320eaac
plugged one time memory leak (found with valgrind)
2010-01-22 18:01:25 +00:00
Ralf Haferkamp
9e3517595d
Plugged memory leak. Syncentry wasn't free'd when sending
...
LDAP_SYNC_NEW_COOKIE intermediate results. (ITS#6459)
2010-01-21 13:33:21 +00:00
Howard Chu
0c195fc013
ITS#6438 check for redundant syncops_free() ?
2010-01-05 03:50:10 +00:00
Pierangelo Masarati
ade09a57da
allow direct insert/delete of olcRwmMap (ITS#6436)
2009-12-21 18:58:21 +00:00
Pierangelo Masarati
0329d982a2
better fix to ITS#6434 (olcRwmMap needs work to allow atomic mods)
2009-12-21 17:32:05 +00:00
Pierangelo Masarati
8ddb160ae8
fix in-database configuration of olcRwmMap (no ITS# yet)
2009-12-20 18:31:08 +00:00
Pierangelo Masarati
85621c882a
guard against simultaneous REP_ENTRY_MUSTRELEASE and REP_ENTRY_MODIFIABLE (related to ITS#6423)
2009-12-08 20:53:39 +00:00
Pierangelo Masarati
173873172c
guard against simultaneous REP_ENTRY_MUSTRELEASE and REP_ENTRY_MODIFIABLE (ITS#6423)
2009-12-08 19:36:10 +00:00
Pierangelo Masarati
40065adb4d
remove REP_ENTRY_MUSTRELEASE when copying (ITS#6423)
2009-12-08 18:47:17 +00:00
Pierangelo Masarati
2c1c200662
log about invalid URI (more about ITS#6421)
2009-12-08 01:34:22 +00:00
Pierangelo Masarati
db852e4378
handle simple filters with no brackets (ITS#6421)
2009-12-08 00:17:25 +00:00
Howard Chu
111b27cfd4
ITS#6270, refix patch from ITS#5511
2009-11-30 06:07:22 +00:00
Hallvard Furuseth
492b2cda2b
ITS#6403: reset 'entry' output argument to overlay_entry_get_ov()
2009-11-29 19:53:01 +00:00
Howard Chu
3b2380254a
ITS#6400 clarify...
2009-11-24 03:41:24 +00:00
Howard Chu
fae4df1ed6
more for #6397
2009-11-23 22:17:25 +00:00
Howard Chu
e72e0507f8
ITS#6397 cleanup psearch if cookie is stale
2009-11-23 22:13:42 +00:00
Hallvard Furuseth
da747ed63a
Fix rev 1.200 commit: C90 forbids mixed declarations and code
2009-11-23 16:04:00 +00:00
Howard Chu
faddd86f54
Revert prev commit, simpler fix...
2009-11-22 17:43:48 +00:00
Pierangelo Masarati
1970251bb7
check result of str2filter; syncrepl: can be broken; retcode: can't; pcache: shouldn't (ITS#6391)
2009-11-22 11:57:17 +00:00
Howard Chu
993fbf4514
Short-circuit backend_operational; sent entry's e_private doesn't belong
...
to the backend any more
2009-11-22 04:43:34 +00:00
Howard Chu
c365ac359e
ITS#6368 use dup'd entries in response queue
2009-11-22 04:42:00 +00:00
Howard Chu
650ebba22b
Fix prev commit
2009-11-21 11:54:59 +00:00
Howard Chu
4bdc6fcbc9
in op_response, rearrange contextCSN update checks
2009-11-21 11:43:01 +00:00
Howard Chu
af0d762c1c
Mostly revert prev commit, broke test054
2009-11-21 03:38:13 +00:00
Howard Chu
ae5af832db
Always log outgoing cookie, just use op->o_csn instead of commit_csn since
...
all responses are now serialized.
2009-11-21 02:37:53 +00:00
Howard Chu
198cbd6ea8
ITS#6368 partially revert 1.273, always check for skips, not just on
...
first matchops call
2009-11-19 11:17:53 +00:00
Howard Chu
ddfe3cde10
ITS#6387 plug leaks
2009-11-18 23:58:39 +00:00
Pierangelo Masarati
1ec443df53
trim unnecessary test
2009-11-16 10:02:47 +00:00
Howard Chu
ff98f4abc5
Use fake_init2 in db_open/db_close since they can execute from a
...
back-config operation (and could wipe out the state otherwise)
2009-11-15 10:38:13 +00:00
Howard Chu
67edd75e48
Cleanup for #6373
2009-11-14 21:53:06 +00:00
Howard Chu
dd2f158b52
Fix prev commit
2009-11-14 09:35:23 +00:00
Howard Chu
fe911c5960
ITS#6376 plug potential leak
2009-11-14 09:34:29 +00:00
Howard Chu
3f9e8eeeec
ITS#6373 more for subentry creation
2009-11-11 04:03:27 +00:00
Howard Chu
9ad558b78c
ITS#6373 create subentry if missing
2009-11-11 03:36:46 +00:00
Howard Chu
46a97b9204
ITS#6373 sync_use_subentry support
2009-11-11 03:19:01 +00:00
Pierangelo Masarati
17a185b32a
unparse checkpoint time in minutes (ITS#6370)
2009-11-10 19:02:33 +00:00
Howard Chu
a3f38ed932
ITS#6346 serialize all responses
2009-10-29 23:46:10 +00:00
Howard Chu
3d189671bd
ITS#6310 dup entry before adding to cache
2009-10-24 05:59:39 +00:00
Rein Tollevik
739f8d0753
ITS#6335 Don't reuse a modtarget someone is about to remove
2009-10-16 17:27:18 +00:00
Howard Chu
eefe62b597
Implement policy checks on compare op
2009-10-15 07:11:39 +00:00
Pierangelo Masarati
716eaf0e8b
update entryCSN (and operational attrs in general) when changing memberOf (ITS#6329)
2009-10-14 20:35:42 +00:00
Pierangelo Masarati
8bdf89ac6a
make sure members are not used uninitialized
2009-10-07 22:44:14 +00:00
Howard Chu
e0cad0e988
ITS#6308 lock leak: must release entry using same op that acquired it
2009-09-29 06:21:32 +00:00
Howard Chu
2e601e8291
ITS#6288 don't deref sort control if it wasn't set
2009-09-29 03:10:03 +00:00
Howard Chu
2d2fca51d2
ITS#6242 need managedsait to replace glue entries with their real values
2009-09-27 22:42:04 +00:00
Pierangelo Masarati
07b7491249
fix LDIF comment when modifying (ITS#6286)
2009-09-08 04:40:24 +00:00
Pierangelo Masarati
e45c20cf92
fix uninitialized var (ITS#6266; actually, the problem was a bit more severe...)
2009-08-24 01:22:55 +00:00
Pierangelo Masarati
9f2360e2a9
fix uninitialized and off-by-one (thanks to valgrind)
2009-08-21 16:01:33 +00:00
Howard Chu
27c39c56c4
ITS#6152 add tests for cache refresh and Bind caching
2009-08-21 13:25:38 +00:00
Howard Chu
6d50de8526
ITS#6152 pwdModify support
2009-08-20 09:47:34 +00:00
Howard Chu
17d31e523f
Fix prev commit
2009-08-20 09:46:40 +00:00
Howard Chu
2d28fe4d4c
ITS#6265 must set orm_no_opattrs
2009-08-20 00:32:28 +00:00
Howard Chu
acd888b9de
child DB should have ordering prefix
2009-08-19 23:46:37 +00:00
Pierangelo Masarati
9f13a2ae02
more cleanup of attr renaming
2009-08-19 23:13:13 +00:00
Pierangelo Masarati
afec8d12ad
more cache monitoring (ITS#5178)
2009-08-19 23:09:52 +00:00
Pierangelo Masarati
a688867cae
more about previous commit
2009-08-19 22:41:06 +00:00
Hallvard Furuseth
4b6f2de8ab
Silence warning (bv_len >= 0 is always true)
2009-08-19 18:59:33 +00:00
Howard Chu
924fdaaf84
Bind caching works
2009-08-19 08:14:07 +00:00
Howard Chu
3de89b4201
Bind caching, work in progress
2009-08-19 03:00:33 +00:00
Pierangelo Masarati
f3cdcadf89
wrap gmtime for reentrancy (ITS#6262)
2009-08-18 23:48:15 +00:00
Pierangelo Masarati
87321c3fae
update cachedQueryURL only when requested
2009-08-18 08:38:42 +00:00
Pierangelo Masarati
ef7569fdc0
expose cachedQueryURL in overlay's monitor entry (partial fulfilment of ITS#5178; needs new register_overlay() code in back-monitor)
2009-08-17 23:23:21 +00:00
Howard Chu
c670264951
For refresh_purge, only delete entry if ours is the last queryid on it.
...
Otherwise just remove our queryid.
2009-08-17 22:24:26 +00:00
Howard Chu
8cd909db3f
Plug leaks in prev commit
2009-08-17 14:38:28 +00:00
Howard Chu
cd0681c4e1
ITS#6152 restart consistency checker when going back online
...
reset refcnt when refreshing a query
2009-08-17 13:24:33 +00:00
Howard Chu
deb1fb6eb6
Fix refresh_merge, using mods from wrong entry
2009-08-17 13:11:05 +00:00
Howard Chu
73c46fa598
Cleanup prev commit
2009-08-17 12:51:44 +00:00
Howard Chu
a5cfab44d7
ITS#6152 preliminary refresh support, untested
2009-08-17 12:02:48 +00:00
Howard Chu
31084affa6
ITS#6251 framework for TTR. refresh not yet implemented.
2009-08-17 03:03:50 +00:00
Howard Chu
7ad21d7dfd
Fix typo in prev commit
2009-08-17 02:22:28 +00:00
Howard Chu
88c6cfa814
Deprecate previous config keywords. Add ttr parsing (no functionality yet)
2009-08-16 23:26:34 +00:00
Pierangelo Masarati
bb3e14ddba
honor requested attrs (ITS#6254), including operational
2009-08-14 01:18:23 +00:00
Pierangelo Masarati
f283f7ad47
improve previous commit; make sure returned entries match filter (ITS#6255); defer sizelimit exceeded detection
2009-08-14 00:49:48 +00:00
Pierangelo Masarati
b6cf5ca896
make sure filter is applied to final entry (ITS#6255)
2009-08-14 00:14:35 +00:00