Commit graph

11500 commits

Author SHA1 Message Date
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
Howard Chu
0a96599375 ITS#6809 add missing newline 2011-01-28 09:11:18 +00:00
Pierangelo Masarati
2a513ad623 cleanup monitor unregister (ITS#6808) 2011-01-27 22:27:22 +00:00
Howard Chu
2d37632286 ITS#6807 always use complete cookie on refresh requests 2011-01-27 20:50:08 +00:00
Howard Chu
68081c5a24 ITS#6804 fix ACL_RECORD_VALUE_STATE macro, was skipping past the ACL
instead of resuming from the intended one
2011-01-27 00:50:26 +00:00
Pierangelo Masarati
34a21b7f40 add support for subtree-include (ITS#6801); improve support for subtree-exclude 2011-01-22 15:47:37 +00:00
Ralf Haferkamp
35c2869e44 ITS#6794 Fixed slapadd -q for glued databases
Cleanup memory/threads more thoroughly in bdb_tool_entry_close() so that a
subsequent bdb_tool_entry_open() (e.g. for a glued database) can setup
things correctly again.
2011-01-21 17:11:21 +00:00
Hallvard Furuseth
a67100a7c1 ITS#6758 whitespace fix for rev 1.350 2011-01-21 12:09:47 +00:00
Hallvard Furuseth
ecc19f03a0 ITS#6758 Remove comment; broken rs.sr_type idea 2011-01-21 11:43:20 +00:00
Hallvard Furuseth
fb6aa52870 Support $NO_RS_ASSERT. Add comments.
Use a private rs_assert_() helper function instead of libc assert.
2011-01-21 11:41:45 +00:00
Hallvard Furuseth
2396759291 ITS#6758 Support rs_reinit(rs, rs->sr_type).
rs_reinit() looks like a function call, so it should act like one.
2011-01-21 11:23:00 +00:00
Howard Chu
d3b09ef2a9 ITS#5421 drop ldap-int.h 2011-01-19 21:27:16 +00:00
Pierangelo Masarati
f62b4a55c1 fix and improve candidate selection (ITS#6799) 2011-01-19 17:36:35 +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
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
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
5c3f806fca ITS#6758 Add rs_reinit(), rs_flush_entry() 2010-12-30 23:32:07 +00:00
Hallvard Furuseth
ea2b675dca ITS#6758 Add rs_assert*, RS_ASSERT, USE_RS_ASSERT 2010-12-30 23:29:46 +00:00
Hallvard Furuseth
c9e85af35c ITS#6759: assert;Debug -> Debug;assert 2010-12-30 23:19:02 +00:00
Pierangelo Masarati
7443e6fc8c op->o_conn->c_sb may be 0 for internal operations 2010-12-30 21:41:07 +00:00
Rein Tollevik
a1a5affeb0 ITS#6754: Fail if there are unrecognized command-line arguments. 2010-12-30 19:45:08 +00:00
Howard Chu
97d9b07814 ITS#5862 Assert control for rootDSE/subschema 2010-12-30 17:28:19 +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
Howard Chu
56888eac30 Move assertion checking to slap_compare_entry() 2010-12-23 21:53:05 +00:00
Howard Chu
9bb47f74ae ITS#6753 use slap_compare_entry() 2010-12-23 21:45:36 +00:00
Howard Chu
149313fd25 ITS#6573 export compare_entry as slap_compare_entry() 2010-12-23 21:36:57 +00:00
Howard Chu
0393fe8974 Cleanup for #6660 2010-12-23 04:40:57 +00:00
Howard Chu
f58a646ad6 ITS#6660 preliminary fix. debug additions need to be cleaned up. 2010-12-23 00:16:19 +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
5feeec67d7 ITS#6747 Fix LDAP_CONNECTIONLESS Debug(), warnings 2010-12-14 15:06:32 +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
Pierangelo Masarati
351bc07fcc re-fix ITS#6645 commit 2010-12-07 11:58:38 +00:00
Pierangelo Masarati
615d1c7703 fix ITS#6645 commit 2010-12-07 11:55:27 +00:00
Pierangelo Masarati
15f1e7bdb7 move ctxcsn and schema check code in helpers; also apply to slapmodify (ITS#6737) 2010-12-07 10:50:54 +00:00
Pierangelo Masarati
dc156d7f6e allow to set LDIF max line width (ITS#6645) 2010-12-07 10:14:51 +00:00