Commit graph

11087 commits

Author SHA1 Message Date
Howard Chu
7ab16ae6c2 ITS#6103 send response on abandon 2009-05-11 04:30:36 +00:00
Howard Chu
9fd983a99d ITS#6103 send response even if abandoned 2009-05-11 04:29:21 +00:00
Howard Chu
9767c87531 Partially revert prev commit, leave rs->sr_err == SLAPD_ABANDON 2009-05-11 04:23:51 +00:00
Howard Chu
2889cc9b1d ITS#6103 send cancelled response back to client 2009-05-11 04:16:57 +00:00
Pierangelo Masarati
2cf9473c46 misc cleanup 2009-05-08 16:31:50 +00:00
Pierangelo Masarati
8d55fbf5c6 (blindly) allow to build with BACKSQL_ARBITRARY_KEY defined (ITS#6100). Please note that this disables paged results support 2009-05-08 16:23:57 +00:00
Howard Chu
6bd1861101 Fix c_leaves count 2009-05-08 06:37:05 +00:00
Howard Chu
1a8e3f9e3e More for prev commit 2009-05-08 04:48:03 +00:00
Howard Chu
167f2d22ed ITS#6098 issuerUID and subjectUID are primitive, not constructed 2009-05-08 01:52:12 +00:00
Pierangelo Masarati
79024465dc check dn normalization result 2009-05-07 15:27:01 +00:00
Howard Chu
7f9a60ae7a More for prev commit: delete bdb_cache_info(), must use cache_find_id().
Fixed cache.c_cursize counting.
2009-05-06 13:57:01 +00:00
Howard Chu
64dc274655 ITS#6095 experimental fix: avoid purging other cases of in-use EntryInfos,
avoid using purged EntryInfos that have not yet been fully unlinked.
2009-05-06 08:33:26 +00:00
Howard Chu
f60107ff75 fix typo 2009-05-06 07:55:42 +00:00
Howard Chu
650ced22c8 More for ITS#5326 - don't free ora_e->e_name if same as o_req_dn 2009-05-05 21:54:01 +00:00
Pierangelo Masarati
b8022be3e6 fix one-time leaks; make sure free'd stuff is NULL 2009-05-04 11:37:58 +00:00
Pierangelo Masarati
5c2b116798 add in-scope helper 2009-05-04 10:57:50 +00:00
Howard Chu
a7fe6266d8 Don't do alock recovery in readonly mode since we didn't do BDB recovery 2009-05-03 00:49:35 +00:00
Howard Chu
87e2ad347b Fix typo in prev commit 2009-05-03 00:47:25 +00:00
Howard Chu
10baa9a60a ITS#6088 entryinfo cleanup 2009-05-03 00:30:20 +00:00
Howard Chu
6e27fa5076 ITS#6074 freeing already-freed EntryInfos... 2009-05-01 04:36:39 +00:00
Howard Chu
c7142fdec5 Don't underflow malloc'd memory in hdb_fix_dn() 2009-05-01 04:26:44 +00:00
Pierangelo Masarati
5efa186908 fix one-time leak 2009-04-30 11:36:12 +00:00
Pierangelo Masarati
fd609f3299 force entry release as appropriate (ITS#6081) 2009-04-29 13:03:50 +00:00
Pierangelo Masarati
477e602afd make logs symmetric 2009-04-29 11:36:49 +00:00
Pierangelo Masarati
aa494bd8c0 only free entries dup'ed by rwm_entry_get_rw() (ITS#6058) 2009-04-20 14:54:18 +00:00
Pierangelo Masarati
5207531d9b always pass a DN to the underlying database (ITS#6070) 2009-04-20 09:54:31 +00:00
Howard Chu
f11fcf47d2 Add missing extended/intermediate handlers for fake connections 2009-04-20 09:07:48 +00:00
Howard Chu
615082b0d0 Add ATDESC config arg type for AttributeDescriptions 2009-04-20 00:31:33 +00:00
Howard Chu
d70afbe6d1 Add global_host_bv, why do we still have bare char *s lying around... 2009-04-19 23:25:41 +00:00
Hallvard Furuseth
2365945268 ITS#6064: "//" comment from rev 1.445 -> "/**/" comment 2009-04-16 17:48:50 +00:00
Pierangelo Masarati
8ed197799c fix ITS#6057 2009-04-15 10:46:11 +00:00
Howard Chu
cfb12f536b ITS#6056 pagedresults stacked control is not overlay-friendly, add
slap_add_ctrls() function
2009-04-15 10:34:24 +00:00
Howard Chu
417b0b7013 ITS#6039 Winsock fixes 2009-04-11 04:03:09 +00:00
Howard Chu
6fc4af8a18 ITS#6054 quit using global malloc 2009-04-11 03:42:15 +00:00
Howard Chu
b0e50c6a7d ITS#6054 assert/exit on failed allocs 2009-04-11 03:40:12 +00:00
Howard Chu
a9a50a6a3e ITS#6021 minor cleanup 2009-04-05 04:17:06 +00:00
Rein Tollevik
2a4bce0633 More for ITS#6045: clear o_callback as well. 2009-04-04 20:25:38 +00:00
Rein Tollevik
4901d77f94 Fixed previous again, using o_bd->bd_self is safer. 2009-04-04 20:09:43 +00:00
Rein Tollevik
aef88182ab Fixed previous edit: Use op->o_bd, not a copy of ss->s_op->o_bd 2009-04-04 17:58:58 +00:00
Rein Tollevik
ab0d7543df ITS#6045: Use copy of db when testing filter in matchops. 2009-04-03 17:55:47 +00:00
Howard Chu
bf3920360d ITS#6016 check for static backends and overlays 2009-04-02 23:41:41 +00:00
Howard Chu
94ab6a31b2 ITS#6038 revert prev commits, ITS rejected 2009-03-27 11:07:42 +00:00
Rein Tollevik
c8cf2fc47a ITS#6038: Write slapadd progress meter to stdout. 2009-03-26 22:50:54 +00:00
Hallvard Furuseth
3e57c96acd ITS#6037: don't loop forever on EINTR in wait4child() 2009-03-26 22:12:12 +00:00
Hallvard Furuseth
1e470657b2 ITS#6037: save/restore errno in signal handlers 2009-03-26 22:11:06 +00:00
Howard Chu
9309eb4b34 ITS#6036 zero out freed val 2009-03-26 16:58:44 +00:00
Pierangelo Masarati
c9f514d1d1 slapcat does not mention -s in usage 2009-03-26 00:54:11 +00:00
Howard Chu
bddc9b337c ITS#6030 reject redundant moduleload attempts 2009-03-23 16:06:00 +00:00
Howard Chu
fdda1ea70f ITS#6030 don't reload already loaded modules 2009-03-23 11:38:24 +00:00
Howard Chu
ae3fb6acfa Fix 1.461, forgot to release mutex when persistent conn exists 2009-03-22 02:53:49 +00:00
Hallvard Furuseth
fb8a419e58 More ITS#5968: Edit AVA_Sort() comment to describe new behavior. 2009-03-20 17:11:28 +00:00
Howard Chu
528193ec23 Fix prev commit 2009-03-19 21:13:11 +00:00
Howard Chu
d44a75ff40 More for prev commit 2009-03-19 19:09:34 +00:00
Howard Chu
30d80e30ee More for #6011, rearrange teardown steps 2009-03-19 18:50:44 +00:00
Howard Chu
1d16ee5622 One more tweak for #5860 2009-03-19 06:06:37 +00:00
Howard Chu
65c24bdb1f More for #5860 - if the cache blew past the maxsize, bring it all the way
back down to size.
2009-03-18 18:18:40 +00:00
Howard Chu
0121f8c01d More for ITS#5860 2009-03-18 11:21:53 +00:00
Howard Chu
7f2f9c4b30 Cleanup prev commit 2009-03-18 09:44:20 +00:00
Howard Chu
cc950c70d1 More for ITS#5860, always check cache sizes 2009-03-18 08:52:38 +00:00
Howard Chu
ba75a865d7 ITS#6012 don't abort NULL txns (blind fix) 2009-03-17 18:09:40 +00:00
Pierangelo Masarati
6627f34356 use, then free (ITS#6027) 2009-03-17 15:52:41 +00:00
Howard Chu
59c7d24d7f ITS#6011 more for refcount'd cookieState 2009-03-17 04:54:09 +00:00
Howard Chu
50cd5bab30 ITS#6011 better fix for connection queue 2009-03-17 03:24:51 +00:00
Howard Chu
614faa3911 ITS#6011 use refcount for shared cookieState 2009-03-17 03:07:40 +00:00
Howard Chu
c6da723a91 cleanup prev commit 2009-03-17 01:00:55 +00:00
Howard Chu
47f31dcd8e More for ITS#6011 2009-03-17 00:56:23 +00:00
Howard Chu
1661146831 More debugging 2009-03-16 21:43:33 +00:00
Rein Tollevik
f30269f5d2 ITS#6024 Don't send cookies without csn. 2009-03-15 23:05:08 +00:00
Howard Chu
14d4ca86e1 Fix prev 2 commits: make sure op is Modify before testing modlist,
don't checkpoint when adding the context entry to a DB
2009-03-14 09:03:30 +00:00
Howard Chu
1e651713e2 ITS#5988 allow entries without CSN to be replicated 2009-03-14 07:22:19 +00:00
Howard Chu
9764499136 ITS#5973 re-enable patch 2009-03-14 07:21:06 +00:00
Howard Chu
4908009ed3 Don't write out abandoned results 2009-03-14 06:47:43 +00:00
Howard Chu
6a56c7014c More for prev commit 2009-03-14 01:14:59 +00:00
Howard Chu
5bd8725aac ITS#5988 avoid redundant slap_graduate_commit_csn calls 2009-03-14 01:04:55 +00:00
Howard Chu
fb35e344ed Fix prev commit 2009-03-13 23:25:00 +00:00
Howard Chu
2f14098a9b ITS#5988 don't respond if consumer's state is newer than ours 2009-03-13 23:09:14 +00:00
Howard Chu
43b23ce31c ITS#5999 better modtarget tracking 2009-03-13 22:59:20 +00:00
Howard Chu
6044e46ec7 Avoid shutdown problems 2009-03-13 08:33:34 +00:00
Howard Chu
0af440befe Cleanup prev commit 2009-03-13 07:50:45 +00:00
Howard Chu
eb3e92481b More for #6020 2009-03-13 06:44:49 +00:00
Howard Chu
bbe1285696 For #6020 log remote sid in syncprov_sendresp 2009-03-13 03:44:51 +00:00
Howard Chu
4775157666 More for prev commit 2009-03-13 01:07:45 +00:00
Howard Chu
553d6a9963 ITS#5973 hide this for now, it's broken 2009-03-13 00:28:09 +00:00
Howard Chu
d03e5ad14e More for prev commit 2009-03-13 00:26:24 +00:00
Howard Chu
011d1ca8bc Fix prev commit 2009-03-13 00:15:28 +00:00
Howard Chu
83870c03d2 ITS#6020 better tracking of where changes came from 2009-03-13 00:14:19 +00:00
Howard Chu
2c1de1866e Revert 1.447 ITS#5793, slap_queue_csn is mandatory 2009-03-12 13:50:51 +00:00
Howard Chu
f347798d48 ITS#6011 don't hang around during a shutdown... 2009-03-11 07:04:27 +00:00
Howard Chu
1336616065 Delete obsolete context entry stuff 2009-03-10 03:51:14 +00:00
Howard Chu
f2cc7e8a0a ITS#5836, add writetimeout keyword for timing out hung writers 2009-03-10 00:42:10 +00:00
Howard Chu
496937eb79 ITS#6005 use ber_memcalloc/free 2009-03-09 01:22:48 +00:00
Howard Chu
5152ea19a3 ITS#6005 realloc should be ch_realloc 2009-03-09 00:48:44 +00:00
Howard Chu
df64b0573c More for prev commit - fill in other opattrs when creating stub 2009-03-07 02:46:10 +00:00
Howard Chu
b88e792a7f Revert ITS#3616 patch, obsoleted by ITS#4916 / ITS#6006 2009-03-07 02:28:01 +00:00
Howard Chu
89cfbe3b6e ITS#6006 dummy entry needs objectclass attr. (Previous fix to ITS#4961
was incomplete. This patch obsoletes the patch for ITS#3616.)
2009-03-07 02:23:20 +00:00
Howard Chu
6f8323590e More explicit for prev commit 2009-03-06 04:00:38 +00:00
Howard Chu
4fc4cb7995 ITS#6003, #5916 fix ldap_back_entry_get_rw, no deref here 2009-03-06 03:57:35 +00:00
Howard Chu
c5cf4fca22 ITS#6002 fix attrset unparse 2009-03-05 23:44:18 +00:00
Howard Chu
5947a1692d Once more, mutex_lock -> trylock... 2009-03-05 22:46:03 +00:00
Howard Chu
e3e7a22b5d Must use txns everywhere, otherwise it will deadlock 2009-03-05 21:59:05 +00:00
Rein Tollevik
447f3f746e ITS#6001 SID of queued CSN must match the one in the op 2009-03-05 20:43:53 +00:00
Howard Chu
ce356b27b1 Fix modrdn / delOldRDN leaving empty mods 2009-03-05 19:43:55 +00:00
Pierangelo Masarati
eb6d01e393 more about previous commit 2009-03-05 18:25:43 +00:00
Pierangelo Masarati
30066c813b fix previous commit 2009-03-05 18:06:27 +00:00
Howard Chu
7c183775d0 Check rc in prev commit 2009-03-05 17:53:01 +00:00
Howard Chu
75943bcd3f ITS#5985 Only play one queued response at a time per psearch thread 2009-03-05 11:21:07 +00:00
Pierangelo Masarati
f3014a235d better diagnostics 2009-03-05 10:59:34 +00:00
Howard Chu
86e048aa33 Delete bogus code from 1.435 2009-03-05 09:17:36 +00:00
Pierangelo Masarati
715b03d5ab make sure sequence progresses correctly (ITS#5986) 2009-03-03 00:07:17 +00:00
Howard Chu
6d1aa51604 ITS#5860 - more for entry cache counts 2009-03-02 18:35:28 +00:00
Howard Chu
7198869342 More for prev - keep eifree at a reasonable number 2009-03-02 08:33:33 +00:00
Howard Chu
8ba8500ff1 ITS#5860 - free 10*minfree DN cache entries instead of just 1 per pass 2009-03-02 08:27:20 +00:00
Howard Chu
288e99cb08 ITS#5860 - NO_CACHE entries were not being counted when they were
converted to regular cached entries (so the entry cache grew beyond
the configured size)
2009-03-02 08:26:30 +00:00
Howard Chu
225aa9f526 More for prev 2009-03-02 07:57:18 +00:00
Howard Chu
03aa595908 ITS#5457 cleanup. If we ever go back to refcounting the entry cache,
this will matter.
2009-03-02 07:54:01 +00:00
Howard Chu
8597332057 ITS#5979 don't create reqOld attr if there was no previous value 2009-02-28 04:43:40 +00:00
Howard Chu
1f5937f993 More for prev 2009-02-27 06:57:09 +00:00
Howard Chu
bfdb727446 Fix potential double-free of filter on abandon 2009-02-27 06:39:43 +00:00
Howard Chu
e6eff03373 ITS#5977 fix typo 2009-02-27 01:58:09 +00:00
Pierangelo Masarati
7fe91339df fix ITS#5959 fix 2009-02-27 01:45:20 +00:00
Howard Chu
7549abb063 Better fix for prev 2009-02-27 01:31:31 +00:00
Howard Chu
6345812f49 More for prev commit 2009-02-27 01:28:22 +00:00
Howard Chu
755e645da3 ITS#5977 strip duplicates out of sorted attrs 2009-02-27 01:22:23 +00:00
Howard Chu
62eeafa1d9 ITS#5977 strip duplicates out of sorted attrs 2009-02-27 01:11:33 +00:00
Howard Chu
8e5ebf4dfb Fix prev commit 2009-02-26 23:16:41 +00:00
Howard Chu
72fb4246d6 Avoid reference past end of array 2009-02-26 04:13:20 +00:00
Pierangelo Masarati
0d6e859846 fix ldap namespace (part of ITS#5974) 2009-02-24 21:09:41 +00:00
Rein Tollevik
47011649f7 ITS#5973 use the modify op to pass csn updates from syncrepl to syncprov 2009-02-24 20:11:22 +00:00
Rein Tollevik
0157ae4744 ITS#5972 Added newCookie sync info messages. 2009-02-24 20:01:08 +00:00
Rein Tollevik
5909aa56ff ITS#5969 update consumers csn when providers change. 2009-02-23 00:37:12 +00:00
Pierangelo Masarati
34b34f6b63 do not allow naming attribute repetitions in RDNs (ITS#5968) 2009-02-23 00:04:48 +00:00
Pierangelo Masarati
e1fbf8b125 fix objectClass inheritance deletion (ITS#5517, ITS#5963) 2009-02-22 23:32:00 +00:00
Pierangelo Masarati
f2a4158e0d don't allow to add distinguished values when other values of naming attributes are already present (ITS#5965) 2009-02-21 11:31:53 +00:00
Howard Chu
2024d5af85 ITS#5959 drop illegal values, only drop attr if it's left empty 2009-02-20 02:02:17 +00:00
Howard Chu
384f23f59d ITS#5959, cleanup 2009-02-20 02:01:07 +00:00
Howard Chu
1e4060891f ITS#5959 just drop illegal values, keep remainder if any. fix a_numvals. 2009-02-20 01:48:19 +00:00
Howard Chu
219c97e4a8 ITS#5724 use bd_self->be_ctrls 2009-02-20 00:57:44 +00:00
Howard Chu
ca07957697 Revert 1.91, breaks #5346. (ITS#5724) 2009-02-20 00:56:50 +00:00
Howard Chu
4d1f13b332 ITS#5960 fix rwm_bva_rewrite handling 2009-02-20 00:47:04 +00:00
Howard Chu
0693557161 ITS#5961 fix prev commit 2009-02-19 22:12:23 +00:00
Howard Chu
4e09f864a9 ITS#5959 drop attrs with illegal values 2009-02-19 02:05:28 +00:00
Howard Chu
52e0581b7f More for prev commit 2009-02-19 01:22:04 +00:00
Howard Chu
55d77a7a95 Fix spurious sizelimit exceeded err 2009-02-19 01:15:15 +00:00
Howard Chu
a692e8ad74 Fix prev commit 2009-02-19 00:41:39 +00:00
Howard Chu
58f33cbd1e ITS#5927, don't cache queries with malformed entries in results 2009-02-18 23:11:28 +00:00
Howard Chu
168fa346cc Cleanup prev commit 2009-02-18 00:17:59 +00:00
Howard Chu
6f4b2cc66e ITS#5956 only retry attaching to SHM once 2009-02-18 00:14:16 +00:00
Howard Chu
c50729c4fd ITS#5954 from jclarke@linagora.com: fix be_syncinfo order 2009-02-17 22:08:00 +00:00
Howard Chu
e841247c90 Fix corrupted CSN issue 2009-02-16 00:12:38 +00:00
Howard Chu
99e47ef47a (Temporarily) define CHECK_CSN for all LDAP_DEVEL builds 2009-02-15 23:21:28 +00:00
Howard Chu
55cc203b52 More CHECK_CSN tests 2009-02-15 23:17:45 +00:00
Howard Chu
450f352ec1 Fix compare op 2009-02-15 23:14:25 +00:00
Pierangelo Masarati
d36099aa62 cleanup (related to ITS#5760) 2009-02-15 22:16:21 +00:00
Pierangelo Masarati
8fa2f07531 do not let entryDN,subschemaSubentry slip into results when mapped out (ITS#5760) 2009-02-14 14:13:46 +00:00
Pierangelo Masarati
203eaa6204 consistently map operational attrs as well (ITS#5760) 2009-02-14 13:58:09 +00:00
Pierangelo Masarati
37e8e5a237 consistently map operational attrs as well (ITS#5760); silence warning 2009-02-14 11:11:24 +00:00
Pierangelo Masarati
8f96e64605 let special attrnames slip through (ITS#5760) 2009-02-14 10:39:45 +00:00
Pierangelo Masarati
f83b4345dd more about ITS#5940 2009-02-13 01:12:56 +00:00
Pierangelo Masarati
a83d10e4ac more about ITS#5940 2009-02-13 00:02:11 +00:00
Pierangelo Masarati
d1b415e6be rewrite info should always be set (ITS#5940) 2009-02-12 23:00:47 +00:00
Pierangelo Masarati
e06771c10a fix recursion detection (ITS#5943) 2009-02-12 22:29:13 +00:00
Howard Chu
2a3076e597 Fix typo in prev commit 2009-02-12 17:07:21 +00:00
Howard Chu
b37c553c71 Ignore hangups on removed sockets 2009-02-12 17:05:00 +00:00
Howard Chu
686ceac31f Add some asserts on CSN validity 2009-02-11 22:00:00 +00:00
Howard Chu
3bcb88e363 Silence warning in prev commit 2009-02-11 01:48:09 +00:00
Howard Chu
868ea3568c ITS#5939 plug descriptor leak 2009-02-10 20:07:24 +00:00
Howard Chu
cca8c1953e ITS#5935 fix prev commit 2009-02-10 15:13:31 +00:00
Pierangelo Masarati
a5924e3092 more on ITS#5931: handle intermediate responses and support syncrepl also in back-ldap 2009-02-10 14:27:28 +00:00
Pierangelo Masarati
5d78ca3c6a fix previous commit (and ITS#5931: now back-meta allows to proxy syncrepl) 2009-02-10 14:08:16 +00:00
Pierangelo Masarati
899398b937 partially addresses an issue with ITS#5931: intermediate responses seem to be handled, as well as entries with controls; syncrepl does not work yet 2009-02-10 13:58:09 +00:00
Howard Chu
6a838df274 ITS#5392 use lutil_debug for Statslog if HAVE_DEBUG && !HAVE_SYSLOG 2009-02-10 11:16:31 +00:00
Howard Chu
a86653c3d9 ITS#5613 compare listener URLs verbatim with serverID URLs 2009-02-10 11:09:50 +00:00
Howard Chu
ab123880df ITS#5925 fix prev commit 2009-02-10 04:32:15 +00:00
Howard Chu
0f263632a1 ITS#5935 better check for active syncrepl sessions, avoid double-free 2009-02-10 00:34:47 +00:00
Pierangelo Masarati
911b5fd42e do not assert when receiving intermediate response (partial fix to ITS#5931) 2009-02-09 14:55:56 +00:00
Howard Chu
2ee43073e9 ITS#5927 MicrosoftAD compatibility hack (YUCK) - treat '=' as '-'
if defined in an attributeoption
2009-02-09 05:38:30 +00:00
Pierangelo Masarati
bdb121c967 discard attribute values if attribute name cannot be parsed (ITS#5927) 2009-02-07 15:09:18 +00:00
Pierangelo Masarati
1bab6404f5 consistently allow explicit add/delete of superior objectClasses (ITS#5517) 2009-02-07 11:54:53 +00:00
Howard Chu
044b646445 Fix prev commit, no recursion allowed in glue_sub_attach 2009-02-05 22:59:02 +00:00
Howard Chu
84374348e5 #5925, set LINKED flag so it's possible to detect non-linked subs.
(But we don't check for this flag yet. Not sure what to really do
about improper configs after they've gotten this far...)
2009-02-05 21:54:11 +00:00
Howard Chu
1861632db1 ITS#5925, allow online glue_sub_attach to be deferred 2009-02-05 21:44:21 +00:00
Pierangelo Masarati
e96230ee97 more about ITS#5792 2009-02-05 21:11:05 +00:00
Howard Chu
f719c364c5 ITS#5922 - disable meter for non-default debug settings 2009-02-05 20:57:17 +00:00
Pierangelo Masarati
8227ed9f71 fix use of dangling pointers (ITS#5924) 2009-02-05 19:54:51 +00:00
Pierangelo Masarati
0374a8341a initialize ndn (ITS#5923) 2009-02-05 18:46:03 +00:00
Pierangelo Masarati
7cd382d931 build entry's pretty DN from parent's (ITS#5326) 2009-02-05 18:44:52 +00:00
Howard Chu
72145a7183 More for prev commit, note when closing DB 2009-02-05 10:39:47 +00:00
Howard Chu
d0515c4017 ITS#5922 with namespace changes 2009-02-05 09:38:07 +00:00
Pierangelo Masarati
260fd357df fix structuralObjectClass modification (glue, ITS#5921; w/ relax, ITS#5792) 2009-02-04 22:36:49 +00:00
Pierangelo Masarati
92576d2bc0 olcDatabase needs X-SORTED 'SIBLINGS' index 2009-02-04 20:06:28 +00:00
Howard Chu
a5ed986694 Remove redundant isGrouporMember calls 2009-02-03 02:14:53 +00:00
Howard Chu
cd0f8dec94 Fix prev commit for modify/delete 2009-02-03 01:58:57 +00:00
Howard Chu
2b08e96b53 ITS#5916 - externally callable functions are ldap_pvt, not ldap_int. 2009-02-02 21:14:34 +00:00
Pierangelo Masarati
0ded1f16d5 Allow alias dereferencing in search C API; use new API in proxy backends (ITS#5916) 2009-01-31 10:27:07 +00:00
Pierangelo Masarati
97bd3479c4 muck with flags only when needed (ITS#5898) 2009-01-30 01:29:32 +00:00
Howard Chu
5f809c45eb check mutex in connection_write() 2009-01-29 22:43:18 +00:00
Pierangelo Masarati
4572e7d721 proxy RFC4525 increment; bail out in case of unsupported extension (ITS#5912) 2009-01-29 20:30:19 +00:00
Howard Chu
e80731bc19 revert epoll edge-triggered listening, just use it to silence hangup events 2009-01-29 15:15:16 +00:00
Howard Chu
ca2aa02f09 More for prev commit: Delete obsolete functions 2009-01-28 03:33:52 +00:00
Howard Chu
461ffd51f6 Reverse lock order when detaching op 2009-01-28 02:03:07 +00:00
Howard Chu
8c464dbedb ITS#5857 always combine frontend and backend: restrict, requires, ssf 2009-01-28 01:45:40 +00:00
Howard Chu
9b56116d0d ITS#5903 restructure callbacks 2009-01-28 00:29:34 +00:00
Rein Tollevik
e8ef7e631d ITS#5907 use overlay BackendInfo to read old entry. 2009-01-27 19:18:13 +00:00
Howard Chu
d3f1921cc9 Mostly revert prev commit 2009-01-27 18:18:39 +00:00
Howard Chu
1a1d226dad Revert prev commit, unnecessary 2009-01-27 18:16:28 +00:00
Howard Chu
fb6dfb852d ITS#5540 sean-burford-monitor-normalize-unified-080706.patch 2009-01-27 10:05:55 +00:00
Howard Chu
05ec9552a7 Use epoll in edge-triggered mode 2009-01-27 08:00:50 +00:00
Howard Chu
c0586f0f45 ITS#4359,#2615 add slapi_pw_find() 2009-01-26 22:36:36 +00:00
Howard Chu
a96538f36c ITS#5860 don't free entryinfo of entries that are validly in the cache 2009-01-26 20:59:10 +00:00
Howard Chu
09a369c4ea More for ITS#5860 2009-01-26 20:36:17 +00:00
Howard Chu
aa569ea04e ITS#5756 sort filters more completely 2009-01-26 11:07:45 +00:00
Howard Chu
64d0cb9cf6 ITS#5859 fix IDL cache for hdb DB with empty suffix 2009-01-26 10:20:51 +00:00
Howard Chu
a59bdb2d5d ITS#5860 more for prev commit 2009-01-25 22:43:31 +00:00
Howard Chu
673405bc2e More for prev commit 2009-01-25 22:06:24 +00:00
Howard Chu
01cf75383e Fix prev commit 2009-01-25 21:15:45 +00:00
Howard Chu
9c34d6c8c7 Dynamically added databases did not have controls init'd 2009-01-25 04:07:58 +00:00
Howard Chu
ef846c9105 More for prev commit 2009-01-25 03:04:43 +00:00
Howard Chu
b8db865c0a Cleanup, treat modifyTimestamp specially too 2009-01-25 02:18:41 +00:00
Howard Chu
b69b2d2f69 More for prev commit 2009-01-25 01:53:32 +00:00
Howard Chu
aedaaf6658 Blind fix to runqueue_remove assert. unable to reproduce the problem... 2009-01-24 21:56:15 +00:00
Pierangelo Masarati
bf261acda7 fix back-config handling of slapo-rwm 2009-01-24 15:41:48 +00:00
Howard Chu
532347bb3c ITS#5881 consumer must use ManageDSAiT control to retrieve referrals
as entries. provider must preserve incoming ManageDSAiT status.
2009-01-24 07:04:42 +00:00
Howard Chu
35d8e5d5a6 FIx prev commit, OID clash 2009-01-24 05:49:14 +00:00
Howard Chu
fe70cdf2ea ITS#5864 - require BDB >= 4.6 for trickle task 2009-01-24 03:43:08 +00:00
Howard Chu
cf1558659b ITS#5655 TLS_PROTOCOL_MIN from Philip Guenther 2009-01-24 03:34:49 +00:00
Howard Chu
ac037d3a13 ITS#5843, fallout from #5470. Just test against our newest CSN. 2009-01-24 03:23:31 +00:00
Howard Chu
417d105c29 ITS#5860 more ID_NOCACHE fallout 2009-01-24 00:55:44 +00:00
Kurt Zeilenga
4af9eb9715 Update copyright notices 2009-01-22 00:40:04 +00:00
Pierangelo Masarati
549455c6c6 fix alias deref in case of retry (ITS#5889) 2009-01-21 08:55:48 +00:00
Howard Chu
d495c16861 ITS#5897 fix bval length of serverID w/URL 2009-01-20 23:31:33 +00:00
Howard Chu
863754cb82 Fix prev commit, was hanging up on write events 2009-01-16 22:32:21 +00:00
Howard Chu
9b8dd2033f Revert prev commit, better fix - make sure client conns are closed
as expected
2009-01-16 21:49:00 +00:00
Howard Chu
a4167862c3 Client connection might get closed implicitly 2009-01-16 21:28:46 +00:00
Howard Chu
13ddc561d8 Fix prev commit - check for c_state == CLOSING first 2009-01-15 21:31:58 +00:00
Howard Chu
dd15627a5e Fix prev commit, c_writers check should be mutex'd 2009-01-15 21:22:35 +00:00
Howard Chu
1a171b07d3 ITS#5835 fix connection teradown when there are waiting writers 2009-01-15 20:41:40 +00:00
Howard Chu
96192064f3 ITS#5886 fix epoll hangup handling 2009-01-14 04:28:24 +00:00
Howard Chu
f54bb377df Revert prev commit 2009-01-13 00:08:36 +00:00
Howard Chu
43c1f42461 ITS#5835 tentative fix - remove bogus call to connection_close().
Note that with this change, all calls to connection_closing() and
connection_close() always occur in pairs - probably the two
functions should be collapsed into one.
2009-01-13 00:03:23 +00:00
Howard Chu
c6b18cd7c5 ITS#5855 fix Windows wake_sds close 2009-01-05 22:09:10 +00:00
Howard Chu
0b60ddd7ca Fix prev commit 2008-12-29 15:38:56 +00:00
Howard Chu
6d73c12403 ITS#5866 skip CSN check for glue entries 2008-12-24 12:21:36 +00:00
Pierangelo Masarati
3cafd7b1eb honor RFC4528 assertion control for LDAP add operations (ITS#5861; blind fix) 2008-12-20 22:56:03 +00:00
Pierangelo Masarati
e0ad0fbd8d honor RFC4528 assertion control for LDAP add operations (ITS#5861) 2008-12-20 22:49:53 +00:00
Pierangelo Masarati
b334844a70 return error codes (ITS#5867) 2008-12-20 22:45:02 +00:00
Pierangelo Masarati
fb9128cdc8 check validity of idassert-bind line (ITS#5863) 2008-12-20 22:34:00 +00:00
Pierangelo Masarati
0631c47576 do not allow slapo-ppolicy to be global by now (ITS#5858) 2008-12-20 22:02:06 +00:00
Pierangelo Masarati
5a50733e39 don't send error when going to retry (alternative fix to ITS#5854) 2008-12-12 09:29:51 +00:00
Pierangelo Masarati
7681642bcf fix LDAP deref control response; fix tool response handling; add lutil_memcopy() for API uniformity (more about ITS#5768) 2008-12-11 23:17:08 +00:00
Pierangelo Masarati
ed33fa5cc6 add shadow mask 2008-12-06 17:20:43 +00:00
Pierangelo Masarati
d8e4b48cee don't muck with shadow flags if database is already shadow (ITS#5850) 2008-12-06 17:16:03 +00:00
Pierangelo Masarati
bd49d6dc11 make sure the right control is being used (a little bit paranoid...) 2008-12-06 14:41:12 +00:00
Howard Chu
65530005ee More for prev commit - if doing both modrdn and modify at once, only
set the CSN on the modify op.
2008-12-03 04:49:53 +00:00
Howard Chu
89e13bff5f Refine prev commit 2008-11-29 11:06:28 +00:00
Howard Chu
2705cbd749 ITS#5809 - fixed again, based on 1.423 (reverted 1.424-1.425) 2008-11-29 03:41:33 +00:00
Howard Chu
b25c74777a Let the idletimeout check kill hung writers 2008-11-28 23:45:56 +00:00
Pierangelo Masarati
a7b4be5b33 fix ACI as a consequence of ITS#5804 (this is a hack; would need an API change) 2008-11-28 23:15:03 +00:00
Pierangelo Masarati
74636cfb51 more about ITS#5804 2008-11-28 22:50:18 +00:00
Howard Chu
e2ee5844e0 ITS#5835 change some DEBUG_TRACE messages to DEBUG_CONNS for easier debug 2008-11-28 21:09:34 +00:00
Pierangelo Masarati
1d9ff10ed7 add newRDN rewriting; fix rewriteContext names (ITS#5834) 2008-11-28 20:34:02 +00:00
Pierangelo Masarati
7c3e478f40 fix previous commit (related to ITS#5804) 2008-11-28 19:34:02 +00:00
Ralf Haferkamp
760660a4a2 Remove unneeded locking. Don't wait for memp_trickle to complete,
loosing an signal doesn't hurt in this case.
2008-11-28 16:09:40 +00:00
Pierangelo Masarati
4bbb033c6b retry every hour, but don't save it; on the contrary, complain every time syncrepl is configured without retry (ITS#5825) 2008-11-24 18:15:52 +00:00
Howard Chu
c71e7b399a ITS#5827, release syncop after mod op completes 2008-11-23 20:43:39 +00:00
Howard Chu
f6ae9c9c9f Fix typo in prev commit 2008-11-22 22:41:11 +00:00
Howard Chu
1d746e552a Initialize bli_flag 2008-11-22 21:08:38 +00:00
Pierangelo Masarati
970a60002f don't leak generated filters (ITS#5826) 2008-11-22 18:38:37 +00:00
Pierangelo Masarati
15236be495 fix previous commit 2008-11-22 18:35:19 +00:00
Pierangelo Masarati
ce045e153f make messages more esplicative; fix style 2008-11-22 17:53:14 +00:00
Pierangelo Masarati
31c61ad855 minimal fix for ITS#5825, pending discussion 2008-11-22 16:00:41 +00:00
Pierangelo Masarati
f0af51d639 don't alloc on slab (ITS#5820) 2008-11-20 17:22:33 +00:00
Pierangelo Masarati
55010d5e4e fix previous commit (ITS#5819) 2008-11-19 17:08:48 +00:00
Pierangelo Masarati
6f20049610 clear rc if value must be added (ITS#5819) 2008-11-19 16:02:22 +00:00
Pierangelo Masarati
2f32c29e4a don't bailout in case of insufficientAccess (ITS#5816) 2008-11-18 01:29:34 +00:00
Pierangelo Masarati
5cf95c5b30 fix length 2008-11-18 00:12:22 +00:00
Quanah Gibson-Mount
911376e543 Fix prev commit 2008-11-17 23:45:20 +00:00
Pierangelo Masarati
e5867e2f30 improve previous commit (ITS#5814) 2008-11-16 23:58:46 +00:00
Pierangelo Masarati
bbcc89ecd3 s/not|got/(non)present/ (more readable, isn't it?) 2008-11-16 20:33:03 +00:00
Pierangelo Masarati
b52c62e69f don't assert on unprotected data (ITS#5814) 2008-11-16 20:29:26 +00:00
Hallvard Furuseth
85e8b309d5 Silence gcc -Wformat: Put rev 1.343's debugmsg in Debug() so -Wformat can check 2008-11-16 03:22:27 +00:00
Hallvard Furuseth
753a6d0008 C89 rejects ITS#5784 non-constant array init (backend.c 1.402,-controls.c 1.201) 2008-11-16 03:10:15 +00:00
Howard Chu
011d14c136 cleanup prev commit, delete unused vars 2008-11-16 01:24:09 +00:00
Howard Chu
329741ff0b ITS#5809 fix prev commit - always turn modrdn into modrdn+modify, and
only propagate the Modify op.
2008-11-16 01:21:31 +00:00
Howard Chu
b7e8411dca ITS#5809 fix 1.421, avoid modrdn falling thru to modify unnecessarily 2008-11-15 23:54:23 +00:00
Pierangelo Masarati
03b0a71014 silence warnings 2008-11-15 15:08:00 +00:00
Emmanuel Dreyfus
3ac5b91a2f Fix warnings an a real bug hidden by the lack of warning... 2008-11-15 11:09:03 +00:00
Pierangelo Masarati
a86fae235b fix previous commit (related to ITS#5804) 2008-11-15 10:42:18 +00:00
Howard Chu
60450c7045 ITS#5709 make sure CSNs are generated and queued atomically 2008-11-15 08:49:44 +00:00
Emmanuel Dreyfus
4c60645bfb Add ACL <who> regex-substitution from attribute value submatches. Cf ITS#5804 2008-11-15 07:18:39 +00:00
Howard Chu
d1221975d6 ITS#5809 fewer false detections of renames 2008-11-14 23:48:38 +00:00
Hallvard Furuseth
587d928552 reformat 2008-11-14 18:19:19 +00:00
Hallvard Furuseth
355c94ddb7 ITS#5329: back-ldif deadlock with access controls 2008-11-14 18:15:35 +00:00
Howard Chu
51c87bb9c7 ITS#5809 renames are not exclusive from modifies 2008-11-13 22:46:49 +00:00
Hallvard Furuseth
d756699af6 ITS#5319 - support rename to same DN. 2008-11-12 00:20:48 +00:00
Hallvard Furuseth
9f55af00ce ITS#5408 part 11 - notice Abandon. 2008-11-12 00:11:53 +00:00
Hallvard Furuseth
2d1af3f2f7 ITS#5408 part 10 - errors from search and slapcat.
- Tweak error code/message for absent directory, including database directory.
- Catch closedir() error.
- ldif_tool_entry_close(): Free entries and reset entry list.
- Propagate any error to slapcat & co.
2008-11-12 00:10:01 +00:00
Hallvard Furuseth
c765070bf0 ITS#5408 part 9 - Sorted RDNs.
- Parse sorted attrs more carefully:
  Accept only attr={num}val.ldif and attr=val{num}.ldif and only base 10.
  Sort "attr=foo" before "attr=foo{n}".  Truncate at ".ldif" while sorting.
- Make the sort order independent of the LDIF files' order in the directory.
2008-11-12 00:03:55 +00:00
Hallvard Furuseth
32bc29d1af ITS#5408 part 8 - Rewrite search API, structs bvlist/enumCookie/ldif_tool.
r_enum_search() -> ldif_send_entry() + ldif_readdir() + ldif_search_entry().
enum_tree() -> search_tree().  fullpath() -> fullpath_alloc() + FILL_PATH().
No functionality change except catching malloc and opendir() errors.
2008-11-11 23:59:43 +00:00
Hallvard Furuseth
7c3cba840c ITS#5408 part 7 - Search operation bugs in r_enum_tree().
- Do not modify op->ors_scope, pass scope parameter instead.
- Save copies of dn/ndn before sending with REP_ENTRY_MODIFIABLE.
- Only the search baseDN may produce noSuchObject.
- More accurate result code.
2008-11-11 23:49:00 +00:00
Hallvard Furuseth
b1aed5b0ab ITS#5408 part 6 - referrals.
- Sending continuation references:
  Drop an unnecessary and wrong LDAP_SCOPE_BASE check.  The correct
  check would have been for DN == baseDN.
  Do not rewrite the scope, the caller already did.
- ldif_prepare_create(): Check that parent/newSuperior is not a referral.
- Rewrite ldif_back_rerferrals().  Better error handling.  Always pass
  refs through referral_rewrite().  As in back-bdb, apply manageDSAit
  only to the baseDN and do not use default_referral.
2008-11-11 23:42:32 +00:00
Hallvard Furuseth
5c41dfdabe ITS#5408 part 5 - handle modrdn file error. Move entry/subtree back if needed.
Add move_dir() macro, matching move_file().
2008-11-11 23:22:24 +00:00
Hallvard Furuseth
a9481e437c ITS#5408 part 4 - preparing for entry creation. More error handling.
- Move mkdir() into ldif_write_entry().  Modrdn lacked this.
- Factor tests for whether to create entry & dir out to ldif_prepare_create().
- Ensure an entry always exists if the corresponding subtree directory does.
- Move get_parent_path() up, accept NULL output param and malloc errors.
2008-11-11 23:16:22 +00:00
Hallvard Furuseth
ddc0613920 ITS#5408 part 3 - file path tweaks, sanity checks.
- Rename temporary filename patterns from "<rdn>.ldifXXXXX" to "<rdn>.XXXXX".
- Add and start using ldif2dir_len() & co.
2008-11-11 23:06:07 +00:00
Hallvard Furuseth
b00aa30d37 ITS#5408 part 2 - filesystem I/O, file error handling:
- Start moving file handling near the top - move_file(), ldif_tempname().
- Rename get_entry_for_fd() -> ldif_read_entry() and move open() into it.
  Rewrite slurp_file() as ldif_read_file(). Just stat() if output param==NULL.
- Rewrite ldif_write_entry(). Add LDAP_DEBUG_TRACE output.
2008-11-11 23:00:18 +00:00
Hallvard Furuseth
69a6d8ca2f ITS#5408 part 1 - error handling, debug output, add error texts (rs->sr_text).
- Reset rs->sr_text on success in apply_modify_to_entry(), not in its callers.
- Fix error test from ldif_write_entry() in ldif_move_entry().
- Start changing LDAP_UNWILLING_TO_PERFORM -> LDAP_OTHER for internal errors.
- Pass around LDAP result codes instead of errno.
- Rename spew_entry() -> ldif_write_entry(), move entry2str_mutex lock into it.
- Some other preparation for upcoming changes.
2008-11-11 22:53:41 +00:00
Howard Chu
cb8f0d5ad5 ITS#5572 retrieve main DB's ACL before relevant operations 2008-11-11 22:10:28 +00:00
Howard Chu
6932652551 ITS#5572 cleanup unneeded code 2008-11-11 21:40:39 +00:00
Quanah Gibson-Mount
e701d9b885 ITS#5572 from Rein 2008-11-11 21:09:28 +00:00
Pierangelo Masarati
21264e2cb8 eat all the substrings assertion if the attribute type does not support substrings matching (ITS#5803) 2008-11-11 18:01:35 +00:00
Quanah Gibson-Mount
1c8e1bfc74 Fix missing CVS revision header 2008-11-10 23:15:35 +00:00
Quanah Gibson-Mount
50402dca2b Fix missing CVS revision tag 2008-11-10 23:14:13 +00:00
Howard Chu
b613ab25b0 ITS#4556 allow Add content checking to be configured per-DB 2008-11-10 22:10:19 +00:00
Howard Chu
4d51be0c9b ITS#5798, don't use per-DB schema-check flag 2008-11-08 16:48:48 +00:00
Pierangelo Masarati
1dd88a8b11 exactly one ID can match (ITS#5791; further fix previous commit) 2008-11-08 10:39:45 +00:00
Howard Chu
5dc58028c1 ITS#5710 fix stupid updateCookie hack, use explicit o_dont_replicate flag 2008-11-06 21:10:25 +00:00
Howard Chu
bda294f5c1 ITS#5794 move prev fix 2008-11-06 16:58:03 +00:00
Howard Chu
8499581841 ITS#5794 NUL-terminate old pw before checking 2008-11-06 16:47:05 +00:00
Howard Chu
b28aa117ea ITS#5783 / 5795 fix undef_promote 2008-11-06 16:27:01 +00:00
Pierangelo Masarati
c41df6ed07 lookup entry id when equality on entryDN (ITS#5791; fixes previous commit) 2008-11-04 12:16:23 +00:00
Pierangelo Masarati
45aaaddb16 lookup entry id when equality on entryDN (proposed fix for ITS#5791; does not work for back-hdb, though) 2008-11-04 12:07:47 +00:00
Pierangelo Masarati
d4970fcb6f don't allow indexing of entryDN (ITS#5790) 2008-11-04 11:54:19 +00:00
Howard Chu
4e22081e02 ITS#5745 report errors in shutdown processing 2008-11-03 13:23:05 +00:00
Howard Chu
9d5de25b5b ITS#5745 long-lived TXNs must be closed before DBs 2008-11-03 13:00:00 +00:00
Howard Chu
f463be3b95 Add DBFLAG_CLEAN for a DB that was cleanly shut down; don't bother
scanning to verify contextCSN for clean shutdowns (ITS#5640)
2008-11-02 23:06:10 +00:00
Howard Chu
1214d24cc0 ITS#5709 forgot to commit this with syncprov.c 2008-11-02 22:16:20 +00:00
Pierangelo Masarati
52e28a9ece add dontUseCopy and proxiedAuthz "non_critical" disallow switches (ITS#5785) 2008-11-02 21:38:10 +00:00
Pierangelo Masarati
21ddf6193d controls can always have criticality set to FALSE (ITS#5785) 2008-11-02 21:06:50 +00:00
Howard Chu
d75a567708 Really fix ITS#5709 - more explicit check for un-replicatable ops, and
don't send ctxcsn update if current maxcsn doesn't match current csn
2008-11-02 15:26:25 +00:00
Howard Chu
a8658c742e be->be_pcl_mutexp superseded by be->bd_self 2008-11-02 07:58:50 +00:00
Howard Chu
ad8180b3b9 Fix ITS#5709, use original pending list 2008-11-02 07:46:46 +00:00
Pierangelo Masarati
7ad03166b6 add "What Failed?" LDAP control (ITS#5784) 2008-11-01 15:15:57 +00:00
Howard Chu
fa245f7491 ITS#5781 fix modification of MV attrs with no EQ rule 2008-10-30 18:22:11 +00:00
Pierangelo Masarati
00accc69c4 check the length of the value with the right index (blind fix to ITS#5779) 2008-10-30 14:03:47 +00:00
Howard Chu
66be548b58 ITS#5774 blind fix for Windows, please test 2008-10-29 13:14:10 +00:00
Hallvard Furuseth
93c75ea669 Cleanup: Move snprintf preformatting into unused Statslog() argument 2008-10-28 22:27:53 +00:00
Pierangelo Masarati
ffb66f41bb anticipate Statslog to avoid using dangling pointers (ITS#5775) - HEADS-UP: now 'ENTRY dn=' may appear also in case the PDU can't be sent 2008-10-28 22:02:01 +00:00
Rein Tollevik
7ec3743aa5 ITS#5776 prevent duplicate removal of qtask from runqueue. 2008-10-28 20:33:46 +00:00
Pierangelo Masarati
6ffe73f5df address ITS#5773 for slapo-rwm(); needs work 2008-10-26 20:47:11 +00:00
Pierangelo Masarati
9401bd3817 normalize rewritten DN-valued attrs (ITS#5772) 2008-10-26 19:29:36 +00:00
Pierangelo Masarati
f29d1b1455 fix dangling pointer issue; cleanup as early as possible 2008-10-26 19:24:10 +00:00
Pierangelo Masarati
2c60719a13 don't rely on attribute values in the returned entry: the control may act on attribute values not requested 2008-10-25 11:06:29 +00:00
Hallvard Furuseth
3b42e19253 ITS#4467: Fix a few wrong uses of snprintf. Also drop an unneeded array init. 2008-10-24 18:57:38 +00:00
Hallvard Furuseth
248dd83add Plug memory leak with dn.regex. Force error for "dn.=pattern". Cleanup. 2008-10-24 18:22:54 +00:00
Hallvard Furuseth
0f22e6bb04 More ITS#5734: Handle empty o_req_ndn. flags=>flags&LDAP_LIMITS_MASK in a test. 2008-10-24 18:16:43 +00:00
Hallvard Furuseth
dffe8d37fa ITS#5770: Fix unaligned BerElements: Use BerElementBuffer, not char[size]. 2008-10-24 17:52:05 +00:00
Hallvard Furuseth
db5943fbd6 ITS#4467: Fix snprintf/WHATSLEFT buffer overflow tests.
Also make WHATSLEFT unsigned.
2008-10-24 13:16:06 +00:00
Pierangelo Masarati
65a390546f forgot access control... 2008-10-24 10:34:04 +00:00
Pierangelo Masarati
e9fb10d2b7 fix examples 2008-10-23 00:14:34 +00:00
Pierangelo Masarati
6bedf74c41 tag optional stuff 2008-10-22 23:38:09 +00:00
Pierangelo Masarati
faddae3a0e check for overflows 2008-10-22 23:37:34 +00:00
Pierangelo Masarati
543a75355c slight fixes and improvements to previous commit 2008-10-22 23:01:20 +00:00
Pierangelo Masarati
91e14ca638 add support for (experimental) dereference control (ITS#5768); need to re-run autoconf (and autoheader?) 2008-10-22 22:19:49 +00:00
Pierangelo Masarati
382bb4de11 save one copy (please review) 2008-10-22 21:58:59 +00:00
Pierangelo Masarati
a4598d1df7 olcLogFile missing from olcGlobal (ITS#5765) 2008-10-22 11:54:46 +00:00
Hallvard Furuseth
ee6a9f238e ITS#4467: Fix buffer overflow tests with snprintf / 'unsigned WHATSLEFT'<=0.
Add ptr_APPEND_*. Rename limits_unparse:lm->style, make type/style unsigned.
2008-10-21 19:00:44 +00:00
Hallvard Furuseth
59c4d9fad9 Cleanup:
Add lmpats_out[] to simplify limits2str().  Wrap both in #ifdef LDAP_DEBUG.
Change char *lmpats[] to struct berval[].  Remove always-true compare.
Readability: Add STRSTART, rearrange limits_get, fix comments & long lines.
2008-10-21 18:57:16 +00:00
Pierangelo Masarati
09cb340f67 add optional URI to allow restricting the scope of application of a specific dynamic list expansion rule (ITS#5761) 2008-10-21 11:30:04 +00:00
Pierangelo Masarati
363f75ca5f preserve objectClasses not to be removed (ITS#5760) 2008-10-21 07:56:17 +00:00
Howard Chu
49ed07558b ITS#5755 values from slapd.conf aren't all strictly validated; detect and
report syntax errors when generating LDAP format.
2008-10-21 04:42:25 +00:00
Hallvard Furuseth
34e8048136 ITS#5734: Search limits by baseDN - limits dn.this="..." 2008-10-21 00:04:44 +00:00
Pierangelo Masarati
4edb6c96e7 deal with known controls that need special handling of response (ITS#5757) 2008-10-20 23:51:59 +00:00
Pierangelo Masarati
c1119ec9b3 backout ITS#5758 commit 2008-10-20 23:19:07 +00:00
Pierangelo Masarati
e233a8e9ee NO-OP must be critical and apply to selected operations (ITS#5758) 2008-10-20 23:16:40 +00:00
Pierangelo Masarati
18e3573c81 declare support for read controls (ITS#5757) 2008-10-20 21:15:13 +00:00
Pierangelo Masarati
c1c16618a4 return LDAP_OTHER if the filter cannot be parsed (ITS#5751) 2008-10-19 21:23:06 +00:00
Hallvard Furuseth
3fff0a7919 Warning cleanup: signed meets unsigned: SASL struct propval {unsigned nvalues}. 2008-10-18 23:59:53 +00:00
Hallvard Furuseth
7cd654253e ITS#4467: Fix snprintf buffer overflow test for olcDbQuarantine output.
Overrides previous patch which partly fixed it: it was a no-op test before.
2008-10-18 23:49:28 +00:00
Hallvard Furuseth
db2172c5c9 Warning cleanup to ITS#5695/rev 1.453: signed meets unsigned. 2008-10-18 20:25:57 +00:00
Hallvard Furuseth
4e616dced8 Fix Debug format (%d, size_t) => (%lu, (unsigned long)value).
Warning cleanup: signed meets unsigned.
2008-10-18 11:42:13 +00:00
Hallvard Furuseth
d68ba23ab8 ITS#5750: Fix nameUIDPretty() bitstring in Name and Optional UID syntax.
Also update a comment about parsing this syntax.
2008-10-18 11:09:55 +00:00
Pierangelo Masarati
5d90231d2a apply Luca Tamburo's patch for Attribute Certificate and X.509 PMI support (with modifications, ITS#5695) 2008-10-18 08:33:40 +00:00
Hallvard Furuseth
e0952945d0 Warning cleanup: signed meets unsigned. 2008-10-18 07:21:27 +00:00
Hallvard Furuseth
6fbd42a90a Warning cleanup: Signed meets unsigned:
Change insertion index bdb_attr_slot(,, unsigned *ins) to int *ins.  This
index is signed elsewhere, including the index returned by the same function.
2008-10-17 23:35:44 +00:00
Hallvard Furuseth
d55d5fadf9 ITS#5747: Simplify previous fix. Just use the struct hack. 2008-10-17 21:58:09 +00:00
Hallvard Furuseth
036e7dac59 ITS#5747: Only use C99 flexible array member when supported 2008-10-17 18:43:10 +00:00
Hallvard Furuseth
670ec4f938 Warning cleanup: signed meets unsigned. 2008-10-17 18:05:00 +00:00
Hallvard Furuseth
05bbe7833b Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.)
Warning cleanup: signed meets unsigned.
2008-10-17 18:02:09 +00:00
Hallvard Furuseth
e3bc5b64c6 Warning cleanup: Remove no-op bv_len < 0 and bv_len >= 0 tests 2008-10-17 17:40:48 +00:00
Pierangelo Masarati
23f78d1bba leave rs struct untouched (ITS#5742) 2008-10-17 00:06:12 +00:00
Pierangelo Masarati
bbe6e77876 fix indentation 2008-10-17 00:03:53 +00:00
Pierangelo Masarati
515733a656 make sure sr_entry is not used if unset (ITS#5742) 2008-10-17 00:03:17 +00:00
Pierangelo Masarati
4f26be5cf6 fix parsing of read entry control (ITS#5741) 2008-10-17 00:02:13 +00:00
Howard Chu
72a9d87fec BDB_PAGESIZE not used any more, use BDB/FS default instead 2008-10-15 10:45:31 +00:00
Howard Chu
3be39979ea Add checksum keyword to enable DB checksum validation 2008-10-15 08:13:56 +00:00
Howard Chu
81ed60c056 Add dbpagesize keyword for configuring DB file page sizes 2008-10-15 07:41:57 +00:00
Hallvard Furuseth
742f3a2a2c Warning cleanup: signed meets unsigned. 2008-10-13 14:54:27 +00:00
Hallvard Furuseth
7b3bdf2185 Warning cleanup: signed meets unsigned. ber_flatten2() returns -1 on
error, not LBER_ERROR.
2008-10-13 10:18:15 +00:00
Hallvard Furuseth
b6f83f1a25 Warning cleanup: signed meets unsigned. ber_flatten2() returns -1 on
error, not LBER_DEFAULT.
2008-10-13 09:17:36 +00:00
Hallvard Furuseth
6f39252bd0 Warning cleanup: signed meets unsigned. 2008-10-13 08:35:31 +00:00
Hallvard Furuseth
e8afbb70fc Warning cleanup: signed meets unsigned. 2008-10-13 08:29:21 +00:00
Hallvard Furuseth
182c2931c4 Warning cleanup: signed meets unsigned. 2008-10-13 08:19:13 +00:00
Hallvard Furuseth
3b90f84422 Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.)
Warning cleanup: Missing braces in initialization. signed meets unsigned.
2008-10-13 07:55:02 +00:00
Hallvard Furuseth
3c7d9415b4 Warning cleanup: Missing braces in initialization. 2008-10-13 06:20:12 +00:00
Hallvard Furuseth
27d6497c33 Warning cleanup: Missing braces in initialization. 2008-10-13 05:44:55 +00:00
Hallvard Furuseth
c2a317415c Fix r1.86 (LDAP_DEVEL:SLAP_CONFIG_DELETE): No declarations after code. 2008-10-13 05:31:52 +00:00
Pierangelo Masarati
1421d522ad fix overlays with private instances of databases (ITS#5736) 2008-10-12 20:20:46 +00:00
Pierangelo Masarati
4e276f882c allow private databases to be instantiated by global overlays (ITS#5735) 2008-10-12 20:20:01 +00:00
Pierangelo Masarati
6845c2510d don't free and reuse filter structure; don't rewrite undefined filter values (ITS#5731,ITS#5732) 2008-10-09 22:34:43 +00:00
Howard Chu
faadcf3908 ITS#5730, patch for #5728 broke referrals 2008-10-08 21:33:45 +00:00
Howard Chu
16710f4ed4 Fix dn2idl when suffix = "" 2008-10-07 22:52:59 +00:00
Howard Chu
95d472aa98 ITS#5729 check for NULL bei_parent 2008-10-07 22:16:15 +00:00
Howard Chu
5313745e77 More #5728 fallout 2008-10-07 01:59:52 +00:00
Howard Chu
3a41f2c5a2 Fix: use overlay_entry_release_ov in overlay environment 2008-10-07 01:45:42 +00:00
Howard Chu
599d83c7cd ITS#5728 release entries before send_ldap_ber() 2008-10-07 00:29:54 +00:00
Rein Tollevik
f1f9a6280a ITS#5726: Revert 1.392, the runqueue must always be inspected. 2008-10-05 22:35:44 +00:00
Pierangelo Masarati
bc09f6e8ad open database using the real structure (partial fix to ITS#5724) 2008-10-05 21:11:13 +00:00
Rein Tollevik
c5f584e62b Revert 1.410, i.e back to lock again. ITS#5725 fixes the lock situation. 2008-10-05 19:29:00 +00:00
Rein Tollevik
d2c08ebb4f ITS#5725: Don't enable connection for events twice. 2008-10-05 19:17:56 +00:00
Howard Chu
aa2fecc1fc More deadlock propagation fixes 2008-10-01 21:28:03 +00:00
Howard Chu
babf624b23 Missed a deadlock check 2008-10-01 21:07:26 +00:00
Emmanuel Dreyfus
7a5b406cf1 Make sur attribute ACL are evaluated on ADD operations (see ITS#4556) 2008-09-29 22:08:29 +00:00
Rein Tollevik
fd190659a7 ITS#5719 Reset interval after rescheduling a paused task. 2008-09-29 20:01:40 +00:00
Pierangelo Masarati
9be58de517 fix ITS#5717 2008-09-29 18:45:39 +00:00
Pierangelo Masarati
43d0d989ef allow intermixing of mapped/not mapped attrs (spotted while invstigating ITS#5717) 2008-09-29 17:38:12 +00:00
Pierangelo Masarati
71373cfdfe change olcDbMode syntax from integer to sirectory string, and allow any commonly accepted form to set its value, including -rwxrwxrwx (ITS#5713) 2008-09-27 14:04:57 +00:00
Pierangelo Masarati
3ccdb86edb allow definition of syntaxes via configuration, including X-SUBST (ITS#5663) 2008-09-27 13:30:43 +00:00
Pierangelo Masarati
13eb62e42f make sure o_csn is freed 2008-09-27 11:06:31 +00:00
Pierangelo Masarati
7cc2acd111 fix previous commit (ITS#5711) 2008-09-27 10:34:52 +00:00
Pierangelo Masarati
a0e3e68a02 allow controls deletion to be deferred; pass response controls back to frontend in extops (ITS#5711) 2008-09-27 10:06:43 +00:00
Howard Chu
9f808bd4b6 Propagate deadlock results for internal searches on write ops 2008-09-25 13:39:53 +00:00
Howard Chu
fda5733477 Wait for read locks in read txns 2008-09-25 13:17:17 +00:00
Howard Chu
a49d43ca27 Revert 1.394, see ITS#5454. It still locks up without a trylock. 2008-09-25 10:31:49 +00:00
Ralf Haferkamp
4788d897d2 Use ConfigReply to return error messages to the client 2008-09-23 15:30:48 +00:00
Pierangelo Masarati
b03ac2c2a5 fix typo 2008-09-20 18:43:30 +00:00
Pierangelo Masarati
8a900b8784 add support for local RFC 3062 password modification extended operation (ITS#5656) 2008-09-20 15:01:12 +00:00
Hallvard Furuseth
f3e85d44da Drop "if ( slap_known_controls )". That became an array in controls.c 1.117. 2008-09-19 20:37:11 +00:00
Pierangelo Masarati
68561435cc add support for back-config delete; fix minor issues 2008-09-19 00:50:17 +00:00
Pierangelo Masarati
3d876e0fcc add back-config support to slapo-retcode(5) 2008-09-19 00:09:56 +00:00
Pierangelo Masarati
d2c6714ebf honor relax by not applying constraints (ITS#5705) 2008-09-18 21:12:13 +00:00
Pierangelo Masarati
d02c861ada add support for constraining rename (ITS#5703) 2008-09-18 20:30:59 +00:00
Hallvard Furuseth
880a2888d8 Message waiting for N threads to terminate -> for N operations/tasks to finish 2008-09-18 19:50:32 +00:00
Pierangelo Masarati
a3176f5453 optional parameter that allows to restrict constraints to entries matching a LDAP URI (ITS#5704) 2008-09-17 20:59:58 +00:00
Pierangelo Masarati
151d5aec66 add "set" constraint type (ITS#5702) 2008-09-17 00:40:18 +00:00
Pierangelo Masarati
dc414747a7 silence warnings 2008-09-16 14:44:24 +00:00
Pierangelo Masarati
88055e8d54 don't hide standard track matching rules (more for ITS#5700) 2008-09-15 09:16:13 +00:00
Pierangelo Masarati
ff5b4d6c21 add support for certificateListExactMatch (RFC4523; ITS#5700) 2008-09-15 00:34:56 +00:00
Pierangelo Masarati
14bd1744b7 certificate handling cleanup 2008-09-15 00:24:40 +00:00
Ralf Haferkamp
7bec8b6b8b stop and remove checkpoint task in _db_destroy (ITS#5698) 2008-09-12 09:53:40 +00:00
Howard Chu
e2722b0c94 ITS#5659 "collect" overlay enhancements 2008-09-11 00:29:56 +00:00
Howard Chu
92d39f7376 Fix prev commit 2008-09-10 03:35:26 +00:00
Howard Chu
2547212e43 ITS#5694 update context's entryCSN during log purges 2008-09-10 02:29:26 +00:00
Pierangelo Masarati
4aa9edf03e cleanup round of memory handling (either check results or use ch_* calls; ITS#5691) 2008-09-09 19:58:47 +00:00
Pierangelo Masarati
661398337a allow trying local bind when remote fails (ITS#5656) 2008-09-09 10:50:51 +00:00
Hallvard Furuseth
ff90e2f8d0 unique_search(): Print key->bv_val rather than key. Broke in r1.32 (ITS#5526). 2008-09-08 16:33:40 +00:00
Pierangelo Masarati
3d68853de5 fix one-time leak 2008-09-08 15:21:51 +00:00
Pierangelo Masarati
45e980391c fix olcTranslucentLocal/Remote handling (ITS#5689) 2008-09-08 12:56:27 +00:00
Pierangelo Masarati
f7679377f9 always re-test filter after merging local and remote entries (ITS#5679) 2008-09-08 12:16:05 +00:00
Pierangelo Masarati
0009def716 implement X-SUBST substitute syntax extension (ITS#5663) 2008-09-08 00:10:18 +00:00
Pierangelo Masarati
1447d7fe17 don't risk using uninitialized vars 2008-09-08 00:05:15 +00:00
Pierangelo Masarati
7be50e74ec if objectClass is not present (e.g. schema check is off, like for partial replicas, slapo-translucent and so), consider ocflags computed (and 0) 2008-09-06 18:06:41 +00:00
Pierangelo Masarati
b904d08f56 cleanup in case of failure during search rewriting (partial fulfilment of ITS#5687) 2008-09-06 16:25:03 +00:00
Pierangelo Masarati
57f9c8c8e9 be careful when restoring rewritten DN (partial fulfilment of ITS#5687) 2008-09-06 16:24:27 +00:00
Howard Chu
fe6f3683fa ITS#5687 more cleanup fixes 2008-09-06 02:11:26 +00:00
Pierangelo Masarati
55cb219adc NULL out spurious text (ITS#5688) 2008-09-06 00:00:37 +00:00
Ralf Haferkamp
db4c89db00 allow databases to be deleted (hidden behind LDAP_DEVEL) 2008-09-04 17:12:07 +00:00
Ralf Haferkamp
fcedf5bf83 don't dereference NULL pointer 2008-09-04 16:05:55 +00:00
Ralf Haferkamp
86005f581e A new entry's index should not be larger than the number of its siblings (ITS#5684) 2008-09-04 13:56:31 +00:00
Pierangelo Masarati
1355e605d5 Don't leak syntax oid macro in case of duplicate attribute (ITS#5683) 2008-09-04 12:19:05 +00:00
Pierangelo Masarati
dae38c56cd let undefined objectClasses be used in proxy filters 2008-09-04 10:13:30 +00:00
Pierangelo Masarati
374d8f85ae NUL-terminate undefined objectClass soc_cname (ITS#5682) 2008-09-04 10:12:01 +00:00
Pierangelo Masarati
969a0aef0e canonicalize undef objectClass names (much like attributes; ITS#5681) 2008-09-04 08:05:17 +00:00
Pierangelo Masarati
8141cd4db7 make additional checking optional (more on ITS#5860) 2008-09-04 07:43:19 +00:00
Pierangelo Masarati
f01e184377 don't cache queries that would not be answered correctly because of schema issues (ITS#5680) 2008-09-04 00:05:26 +00:00
Pierangelo Masarati
549134d514 don't dereference NULL pointers (ITS#5676) 2008-09-02 20:58:34 +00:00
Pierangelo Masarati
f4b98b256c use the most recent contextCSN (ITS#5675) 2008-09-02 20:35:51 +00:00
Howard Chu
bfdb93f80b ITS#5578 signed/unsigned comparison 2008-08-31 00:38:07 +00:00
Pierangelo Masarati
605fa77265 no need to unescape/re-escape each line (more on ITS#5608) 2008-08-30 15:00:05 +00:00
Pierangelo Masarati
03793fd9f4 implement caseIgnoreListMatch (ITS#5608) 2008-08-30 14:30:31 +00:00
Howard Chu
e5b96f2c76 Avoid deadlocks on reader txns 2008-08-27 22:28:16 +00:00
Howard Chu
ece2a4daa6 Use read-only txn's instead of read lockers. Support BDB 4.4-4.7 2008-08-27 01:45:35 +00:00
Howard Chu
8385813a5a Fix dynamic module init 2008-08-26 22:25:35 +00:00
Howard Chu
f6edefa25d Add back-ndb 2008-08-26 21:48:17 +00:00
Pierangelo Masarati
c32cbed9ae fix attribute list swapping when NULL (ITS#5665) 2008-08-23 11:08:41 +00:00
Pierangelo Masarati
0e6054d861 [blind commit] better logging; check schema data before manipulation (related to ITS#5653) 2008-08-21 22:07:29 +00:00
Pierangelo Masarati
c97ef0a708 don't return entry if requested attr is not present (ITS#5650) 2008-08-09 16:04:55 +00:00
Pierangelo Masarati
03b105339a handle anonymous before doing mallocs 2008-08-09 15:41:55 +00:00
Pierangelo Masarati
46983312c3 fix log message 2008-08-09 15:41:22 +00:00
Howard Chu
d4216935d7 ITS#5618 log Search result errors, force Deref to Never 2008-08-09 13:15:54 +00:00
Pierangelo Masarati
a8dcb36efb don't strip set string (ITS#5627) 2008-08-09 12:50:18 +00:00
Pierangelo Masarati
ddb43b83d4 don't copy strings if not necessary 2008-08-09 12:49:44 +00:00
Pierangelo Masarati
c74a92fe50 fix continuation checking in dynacl (ITS#5637) 2008-08-09 12:27:57 +00:00
Pierangelo Masarati
7bef2ffdf6 optimize ACI check (ITS#5636) 2008-08-09 12:26:17 +00:00
Pierangelo Masarati
4d71b2f9c0 make sure objectClass is not filtered out by 'map attribute *' (ITS#5647) 2008-08-09 10:54:31 +00:00
Pierangelo Masarati
bb4268a646 make sure objectClass is not filtered out by 'rwm-map attribute *' (ITS#5647) 2008-08-09 10:49:20 +00:00
Pierangelo Masarati
69d8588ab4 suffix must be defined before overlay configuration (ITS#5641) 2008-08-09 10:29:31 +00:00
Pierangelo Masarati
191d8204a3 really check if filter is valid...(more on ITS#5581) 2008-08-09 10:20:46 +00:00
Howard Chu
f73ce85027 ITS#5649 fix overlay_register_control 2008-08-09 10:11:41 +00:00
Howard Chu
01686daa4d ITS#5642 don't inherit custom attributes 2008-08-06 01:11:13 +00:00
Pierangelo Masarati
80df2a2906 fix normalizable/non-normalizable attr mapping \& merging (ITS#5624) 2008-08-04 21:20:06 +00:00
Pierangelo Masarati
785fafa36e defer relayed database lookup (ITS#5643) 2008-08-04 21:17:25 +00:00
Pierangelo Masarati
afbef0b035 fix check for single-field firstComponentMatch normalization (ITS#5634) 2008-08-04 21:06:37 +00:00
Quanah Gibson-Mount
5d3e5ecbd9 Fix missing space 2008-07-24 22:41:22 +00:00
Pierangelo Masarati
d50ba575fe s/o_dn/o_ndn/ (ITS#5622) 2008-07-19 11:27:10 +00:00
Pierangelo Masarati
adc358f664 free filter before overlays' cleanup callback 2008-07-15 12:31:08 +00:00
Pierangelo Masarati
d0dd945882 fix potential leak in previous commit 2008-07-15 08:54:41 +00:00
Pierangelo Masarati
5c53e3ad72 improve previous commit (ITS#5614) 2008-07-14 22:44:01 +00:00
Pierangelo Masarati
30ffa33d7e do not propagate undefined or otherwise broken search filters (ITS#5614) 2008-07-14 22:14:49 +00:00
Pierangelo Masarati
ab3388aa93 improve diagnostics 2008-07-12 17:58:11 +00:00
Pierangelo Masarati
65cfb058cb don't close invalid sockets (blind fix to ITS#5606) 2008-07-12 16:31:34 +00:00
Pierangelo Masarati
9c5b22ceda remove data when freed (blind fix to ITS#5607) 2008-07-12 16:26:27 +00:00
Pierangelo Masarati
18a333bfcf trim extra brackets (ITS#5609); NULL-terminate string 2008-07-12 16:03:31 +00:00
Pierangelo Masarati
f48d99cb77 fix quarantine (ITS#5592) 2008-07-12 15:22:39 +00:00
Pierangelo Masarati
e6446d3113 make sure rwm_op_cleanup() is called also in case of bind (in partial fulfillment of ITS#5601) 2008-07-12 11:53:49 +00:00
Howard Chu
f911e0f5d1 ITS#5569 ignore internal ops when validating pwd modify 2008-07-08 19:02:38 +00:00
Rein Tollevik
a42c7f96f5 ITS#5600 Replace objectClass, delete/add can fail if superior is added. 2008-07-08 13:55:09 +00:00
Howard Chu
4af6e9c4c6 Fix 1.40, release entry with same backend that obtained it 2008-07-08 06:00:32 +00:00
Pierangelo Masarati
c6f12694fc allow proxies to filter out search references (ITS#5593) 2008-07-07 21:25:59 +00:00
Rein Tollevik
f94cd4b518 ITS#5597 fix CSN compare when provider has CSNs with other sids. 2008-07-06 14:15:42 +00:00
Howard Chu
9b25fa4c38 ITS#5578 fix binary search 2008-07-05 23:26:41 +00:00
Rein Tollevik
99d004189a ITS#5596 contextCSN updates are internal operations. 2008-07-04 23:44:39 +00:00
Pierangelo Masarati
103c7b48e2 allow olcSpReloadHint in olcSyncProvConfig (ITS#5591) 2008-07-02 22:37:34 +00:00
Howard Chu
731aad4c4d ITS#5589 delcsn / NULL cookie 2008-07-02 16:27:17 +00:00
Pierangelo Masarati
be9d79d2a7 fix serialNumber and issuer parsing (ITS#5588) 2008-07-01 23:06:01 +00:00
Howard Chu
34d074930c ITS#5584 - treat empty Replace like Delete 2008-07-01 11:48:10 +00:00
Howard Chu
4e21f65ec0 Fix prev commit 2008-06-30 23:16:02 +00:00
Pierangelo Masarati
292b96c4e1 extra needed by config (ITS#5355) 2008-06-30 10:01:41 +00:00
Howard Chu
a5d0e36798 ITS#5571 prevent Adds from displacing {0}config 2008-06-29 22:48:40 +00:00
Howard Chu
f25436af80 Fix entry insert order 2008-06-29 22:26:59 +00:00
Pierangelo Masarati
48855fcdef make sure the strfilter is in normal form (ITS#5581) 2008-06-29 22:19:14 +00:00
Howard Chu
17af50abf3 syntax oid macros added 2008-06-29 21:53:29 +00:00
Pierangelo Masarati
b4894ccd81 don't lookup dg* attrs more than needed (ITS#5583) 2008-06-29 21:50:05 +00:00
Howard Chu
010295e9e7 More symbols for ITS#5355 2008-06-29 21:13:03 +00:00
Howard Chu
27867de8ad ITS#5383 - forgot to change configContext OID 2008-06-29 03:56:15 +00:00
Howard Chu
b86714cfb2 ITS#5440 add eq rules for olcRootDN / olcSchemaDN 2008-06-29 03:42:46 +00:00
Howard Chu
417ab52d45 ITS#5540 check for structural_class() failures 2008-06-29 03:35:54 +00:00
Rein Tollevik
e5dfb18abc ITS#5564 ignore clients contextCSN when doing full reload. 2008-06-18 19:38:39 +00:00
Rein Tollevik
82cb2a1f05 ITS#5563 don't die if there are no listeners when matching serverID URL. 2008-06-16 14:45:30 +00:00
Pierangelo Masarati
a64b74b014 handle negative caching (ITS#5546) 2008-06-14 15:05:00 +00:00
Pierangelo Masarati
fa612acf41 if there is only one member_ad, and it's not mapped, consider it as old-style member listing 2008-06-14 12:39:47 +00:00
Howard Chu
04c841209d ITS#5558 fix buffer count 2008-06-14 02:50:59 +00:00
Howard Chu
cd5e10250a ITS#5557 plug leak from skipping over rset value 2008-06-13 23:06:50 +00:00
Rein Tollevik
06379f9cf9 ITS#5548 use syncrepl Connection when evaluating filter and acl. 2008-06-13 15:55:01 +00:00
Ralf Haferkamp
2688180f95 Allow unquoted DNs with whitespaces (ITS#5552) 2008-06-12 21:12:35 +00:00
Ralf Haferkamp
b3b2aa70f3 enable back-config delete support with LDAP_DEVEL 2008-06-12 11:51:05 +00:00
Ralf Haferkamp
3a0037cc53 Experimental code for delete support in back-config. Only overlays
supported currently.
2008-06-12 11:46:57 +00:00
Howard Chu
b13d108686 Config should presrve OID macros in attr syntax field as well 2008-06-05 18:41:14 +00:00
Pierangelo Masarati
f615fa44cf pass ConfigReply to slapi overlay initialization 2008-05-31 18:44:40 +00:00
Ralf Haferkamp
9d72509d05 pass ConfigReply into overlay_config() to allow progating error messages
back through back-config
2008-05-30 14:49:24 +00:00
Howard Chu
83c16b8fc7 ITS#5337 fix maxcsn search at startup 2008-05-29 23:48:35 +00:00
Howard Chu
4b2c003907 More for ITS#5536 2008-05-29 23:31:05 +00:00
Howard Chu
a709d8b69a Fix rev 1.220 - remove extra free_syncop() 2008-05-29 16:58:32 +00:00
Howard Chu
5a97371ef3 ITS#5536 send SID for glued DBs as well as multimaster 2008-05-29 01:46:19 +00:00
Howard Chu
684a213f0b ITS#5488 from Rein Tollevik: propagate syncrepl contextCSN to providers 2008-05-28 02:46:35 +00:00
Howard Chu
b92472c3e4 ITS#5487 from Rein Tollevik: syncprov_findbase searched wrong backend 2008-05-28 02:45:18 +00:00
Howard Chu
d14ebfc070 ITS#5461 initialize rs->sr_tag, sr_msgid for Abandons too 2008-05-28 01:48:41 +00:00
Howard Chu
61a70b4f96 ITS#5403 fix sasl_ssf retrieval on 64 bit Solaris 2008-05-28 01:43:05 +00:00
Howard Chu
3c24f1f884 More for #5511 2008-05-27 22:39:12 +00:00
Pierangelo Masarati
88bc524422 s/PATH_MAX/MAXPATHLEN/ (ITS#5531) 2008-05-26 20:53:16 +00:00
Ralf Haferkamp
c8fcb58fbb Allow updating (ADD/DEL within a single modify operation) the index
configuration of an attribute (ITS#5521)
2008-05-26 17:38:32 +00:00
Pierangelo Masarati
62904cf50d allow to customize the modifiersName of internal modifications (partially addresses ITS#5505) 2008-05-24 11:57:18 +00:00
Howard Chu
61198ee41c Fix prev commit 2008-05-23 16:48:46 +00:00
Howard Chu
cd7227b4c6 ITS#5511 make room for filter's terminating NUL character 2008-05-23 15:40:15 +00:00
Howard Chu
9d787d8d42 ITS#5489 move assert 2008-05-23 15:29:12 +00:00
Howard Chu
a572267f60 ITS#5526 cleanup config structs 2008-05-23 11:47:37 +00:00
Pierangelo Masarati
ffffa52470 revert test logic 2008-05-22 17:43:12 +00:00
Howard Chu
4c8efee4a6 Fix bei_state access
http://www.openldap.org/lists/openldap-devel/200805/msg00073.html
2008-05-19 16:19:59 +00:00
Howard Chu
b6b3461cf9 Do connections_init() sooner 2008-05-18 15:58:10 +00:00
Pierangelo Masarati
7db4c6dabc fix comment 2008-05-17 11:56:10 +00:00
Pierangelo Masarati
91d337fb29 fix handling of multiple attrs in URI (ITS#5516) 2008-05-17 11:55:50 +00:00
Pierangelo Masarati
20e8da9ba7 lookup entries as LDAP_REQ_SEARCH (ITS#5513) 2008-05-17 11:36:44 +00:00
Hallvard Furuseth
08e2ce2d1d parenthesize some macro args 2008-05-17 00:05:54 +00:00
Howard Chu
96d5ed5bc5 ITS#5465 ignore ops without queued CSNs 2008-05-13 21:57:19 +00:00
Howard Chu
c7a49fcfc5 ITS#5506 reset op2.o_extra 2008-05-12 18:33:05 +00:00
Howard Chu
8921793615 ITS#5503 integerFilter keys were not terminated 2008-05-10 00:28:03 +00:00
Emmanuel Dreyfus
a837855068 Fix an error in debug message, and correctly keep track of attribute count
after a mod_replace
2008-05-09 21:49:47 +00:00
Emmanuel Dreyfus
8768d99013 Add attribute size and count constraints to slapo-constaint
Approved by Ando

Usage example:
  overlay constraint
  constraint_attribute jpegPhoto size 131072
  constraint_attribute userPassword count 3
2008-05-09 12:59:16 +00:00
Howard Chu
9ce205818e ITS#5493 always send cookie with delta-sync entries 2008-05-09 01:51:26 +00:00
Howard Chu
db693093a1 Use network-timeout instead 2008-05-09 00:08:19 +00:00
Howard Chu
f488fa060a Use underscore in network_timeout 2008-05-08 13:15:40 +00:00
Howard Chu
198b14be90 ITS#5486, fix rev 1.219. Must never use s_op directly, must always use
a copy.
2008-05-06 03:03:47 +00:00
Howard Chu
b2a0eb7075 Fix prev commit 2008-05-01 23:56:01 +00:00
Howard Chu
26172674b5 Cleanup extra debug in prev commit 2008-05-01 23:02:52 +00:00
Howard Chu
f37962d042 Propagate o_extra too 2008-05-01 22:55:29 +00:00
Howard Chu
aeedb72e91 Fix prev commit 2008-05-01 13:25:15 +00:00
Howard Chu
c91704d811 Use o_extra instead of o_private 2008-05-01 12:49:35 +00:00
Howard Chu
b0ffd08504 ITS#5490 callback stack may be NULL 2008-04-30 23:50:08 +00:00
Howard Chu
b94eac4778 Fix prev commit (again) - set in wrong order 2008-04-30 18:35:02 +00:00
Howard Chu
bdd493380d Fix prev commit 2008-04-30 12:52:45 +00:00
Howard Chu
b16478a5ca Avoid queueing response on abandoned psearches 2008-04-29 22:09:12 +00:00
Howard Chu
9b516293b9 Fix prev cache.c commit 2008-04-29 21:44:47 +00:00
Howard Chu
4673c99e96 More for ITS#5470, add csns to presence search filter in MMR 2008-04-29 01:05:09 +00:00
Pierangelo Masarati
2fe411e337 avoid potential deadlock? 2008-04-28 23:26:45 +00:00
Howard Chu
64315e3087 ITS#5451 glue deadlock fix 2008-04-28 12:53:04 +00:00
Howard Chu
a5037b4c5b Fix comment typo 2008-04-28 11:20:34 +00:00
Howard Chu
a9d192df2b Fix delete deadlock 2008-04-28 11:17:52 +00:00
Pierangelo Masarati
74ad5210c0 cleanup 2008-04-26 15:47:06 +00:00
Pierangelo Masarati
c965d2c86d add mapping to dynamic attribute generation (patch by Emmanuel Dreyfus, with some rework; ITS#5466) 2008-04-26 15:42:01 +00:00
Howard Chu
90a45655c2 ITS#5484 remove syncop from runq before freeing it 2008-04-24 18:35:35 +00:00
Howard Chu
fd0699edf4 Fix typo in 1.389 2008-04-24 10:19:20 +00:00
Howard Chu
75eecdc539 ITS#5346 overlay_db_open needs to preserve the original *be. 2008-04-23 10:31:22 +00:00
Howard Chu
c0f5fad0f8 For ITS#5346 - reintroduce bd_self pointer (from 2008-03-13) 2008-04-23 10:23:00 +00:00
Pierangelo Masarati
a4d14fb2ef missing numvals (ITS#5481) 2008-04-21 16:43:50 +00:00
Howard Chu
1af2849f7c ITS#5470 also ignore presentlist if number of CSNs don't match 2008-04-19 23:27:49 +00:00
Pierangelo Masarati
49bb4d5633 fix typo in error message 2008-04-17 20:57:22 +00:00
Pierangelo Masarati
d198435c51 fix abstract class inheritance check (ITS#5474) 2008-04-17 20:49:59 +00:00
Howard Chu
26c3fd67b8 ITS#5470 ignore presentlist on partial multimaster refreshes 2008-04-17 01:42:40 +00:00
Howard Chu
f8a012cc83 Revert prev commit 2008-04-17 00:03:06 +00:00
Howard Chu
2abce97228 ITS#5470 don't return any data at all until we have a ctxcsn 2008-04-16 10:37:44 +00:00
Hallvard Furuseth
04a7b8bf70 For ITS#5408: Handle special chars in filenames, in particular on Windows.
When upgrading, may need to slapcat/slapadd the database if back-ldif
is used as a general backend with chars like ':' or Windows' special
chars in DNs.
2008-04-16 00:09:25 +00:00
Hallvard Furuseth
66bedd2962 For ITS#5408: Cleanup: No functionality change.
Change dn2path(), get_entry() and move_entry() prototypes/usage.
Remove unused statements/initializations.  get_entry() now returns
a result code, reducing result code handling a bit.
2008-04-15 22:30:40 +00:00