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
Hallvard Furuseth
3866da50f5
ITS#6793 Fix back-ldap bad free on matchedDN change
2011-01-17 10:55:41 +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
Howard Chu
85532fc8c7
More cleanup
2011-01-13 02:23:04 +00:00
Howard Chu
9f692a8168
ITS#6787 release entry locks before sending entries
2011-01-13 01:11:08 +00:00
Howard Chu
afa4a82747
Fix typo
2011-01-12 22:54:58 +00:00
Howard Chu
b8cf299007
Minor cleanup
2011-01-12 22:53:43 +00:00
Howard Chu
62ee62c0b0
More for prev commit
2011-01-12 22:48:30 +00:00
Howard Chu
758c6e4dc9
ITS#6783 fix abandon processing, cleanup
2011-01-12 22:28:46 +00:00
Hallvard Furuseth
1ecaeb3b18
noop change: Silence signed vs unsigned warnings
2011-01-12 14:44:03 +00:00
Hallvard Furuseth
6223282235
Catch ber_scanf errors properly
2011-01-12 14:41:33 +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
fc6bd40dfc
make sure matched is NULL when err=SUCCESS (ITS#6774)
2011-01-04 18:27:02 +00:00
Pierangelo Masarati
8fcd55bdc0
no need for next control
2011-01-04 16:17:24 +00:00
Pierangelo Masarati
2b44bc5bf6
typo in error message
2011-01-04 16:16:59 +00:00
Hallvard Furuseth
eae5e37ebd
Set sr_type=REP_SEARCH before be_operational
2011-01-04 15:12:45 +00:00
Hallvard Furuseth
a8c8ec5d4c
ITS#6758 config_back_add: Don't set sr_text if compareTrue
2011-01-04 15:02:52 +00:00
Quanah Gibson-Mount
ed620b9ed3
s/producer/provider
2011-01-04 01:31:30 +00:00
Pierangelo Masarati
1a56a1934a
quick fix for vc: allow custom controls tag
2011-01-04 00:09:10 +00:00
Pierangelo Masarati
342980d116
use Paged Results when talking to targets (in response to ITS#6664)
2011-01-03 17:52:55 +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
Pierangelo Masarati
b672d8535d
make sure initialization is only tried once; improve error messages
2011-01-02 15:06:11 +00:00
Pierangelo Masarati
f2df9f0cf5
add some logging (under TRACE)
2011-01-02 12:29:19 +00:00
Pierangelo Masarati
5c8d655bbb
quick fix for null DN
2011-01-02 02:15:21 +00:00
Hallvard Furuseth
bdb078a778
ITS#6758 Reset dangerous REP_ENTRY_* flags.
...
If SlapReply.sr_un cannot contain an entry but does or soon may
contain another member than sru_search: Ensure nothing will see
leftover REP_ENTRY_* flags and try to clean up the "entry" there.
2010-12-31 20:53:17 +00:00
Hallvard Furuseth
b26c767ed6
ITS#6758 slap.h: Cast REP_* #defines to slap_mask_t
2010-12-31 20:02:41 +00:00
Hallvard Furuseth
9467059b0b
ITS#6758 fix/add slap_send_search_entry() comments
2010-12-31 19:57:53 +00:00
Hallvard Furuseth
a4c2d54127
ITS#6758 result.c:Use rs_*(). Frees entries earlier.
...
For readability, use rs_flush_entry() where slap_send_search_entry() and
slap_send_search_reference() release entries before network operations.
This change also frees entires marked MUSTBEFREED earlier.
2010-12-31 18:14:31 +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
15aa7c472a
noop commit: cleanup 0 -> REP_RESULT in SlapReply
2010-12-31 14:08:34 +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
Hallvard Furuseth
cb15a4c687
ITS#6758 rs_reinit() += slap_reply_t parameter
2010-12-31 09:45:16 +00:00
Hallvard Furuseth
b120b2a05b
ITS#6758 config_build_entry, avoid SlapReply reuse
...
Do not use the 'SlapReply *rs' passed to config_build_entry(). Instead
pass a new one to op->o_bd->be_add() and copy the output sr_err to rs.
This takes care of most SlapReply reuse in bconfig.c.
2010-12-31 09:02:34 +00:00
Hallvard Furuseth
ab1bc728fa
ITS#6758 bconfig.c: ensure sr_text==NULL if sr_err==LDAP_SUCCESS
...
config_modify_internal(): Do not send rs->sr_text with success.
config_back_modify(): When slap_bv2ad() can set rs->sr_text,
set sr->sr_err too and catch failure.
2010-12-31 08:45:48 +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
abf7f2efce
ITS#6758 back-bdb: Delay setting sr->sr_entry until we know it will be used
2010-12-31 00:04:38 +00:00
Hallvard Furuseth
1ea8de9fda
ITS#6758 Do not set sr_err=error before be_search.
...
glue_op_search() set LDAP_UNWILLING_TO_PERFORM before be_search() as
well as when there was no be_search.
2010-12-30 23:59:23 +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