Commit Graph

1374 Commits

Author SHA1 Message Date
Rein Tollevik
ab0d7543df ITS#6045: Use copy of db when testing filter in matchops. 2009-04-03 17:55:47 +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
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
c5cf4fca22 ITS#6002 fix attrset unparse 2009-03-05 23:44:18 +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
Howard Chu
8597332057 ITS#5979 don't create reqOld attr if there was no previous value 2009-02-28 04:43:40 +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
Howard Chu
4d1f13b332 ITS#5960 fix rwm_bva_rewrite handling 2009-02-20 00:47:04 +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
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
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
Howard Chu
686ceac31f Add some asserts on CSN validity 2009-02-11 22:00:00 +00:00
Pierangelo Masarati
0374a8341a initialize ndn (ITS#5923) 2009-02-05 18:46:03 +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
Pierangelo Masarati
97bd3479c4 muck with flags only when needed (ITS#5898) 2009-01-30 01:29:32 +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
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
aa569ea04e ITS#5756 sort filters more completely 2009-01-26 11:07:45 +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
Kurt Zeilenga
4af9eb9715 Update copyright notices 2009-01-22 00:40:04 +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
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
1d9ff10ed7 add newRDN rewriting; fix rewriteContext names (ITS#5834) 2008-11-28 20:34:02 +00:00
Howard Chu
c71e7b399a ITS#5827, release syncop after mod op completes 2008-11-23 20:43:39 +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
Howard Chu
cb8f0d5ad5 ITS#5572 retrieve main DB's ACL before relevant operations 2008-11-11 22:10:28 +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
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
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
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
dffe8d37fa ITS#5770: Fix unaligned BerElements: Use BerElementBuffer, not char[size]. 2008-10-24 17:52:05 +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
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
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
Pierangelo Masarati
c1c16618a4 return LDAP_OTHER if the filter cannot be parsed (ITS#5751) 2008-10-19 21:23:06 +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
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
e3bc5b64c6 Warning cleanup: Remove no-op bv_len < 0 and bv_len >= 0 tests 2008-10-17 17:40:48 +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
3c7d9415b4 Warning cleanup: Missing braces in initialization. 2008-10-13 06:20:12 +00:00
Pierangelo Masarati
1421d522ad fix overlays with private instances of databases (ITS#5736) 2008-10-12 20:20:46 +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
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
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
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
Pierangelo Masarati
8a900b8784 add support for local RFC 3062 password modification extended operation (ITS#5656) 2008-09-20 15:01:12 +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
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
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
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
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
b904d08f56 cleanup in case of failure during search rewriting (partial fulfilment of ITS#5687) 2008-09-06 16:25:03 +00:00
Howard Chu
fe6f3683fa ITS#5687 more cleanup fixes 2008-09-06 02:11:26 +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
c32cbed9ae fix attribute list swapping when NULL (ITS#5665) 2008-08-23 11:08:41 +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
Pierangelo Masarati
80df2a2906 fix normalizable/non-normalizable attr mapping \& merging (ITS#5624) 2008-08-04 21:20:06 +00:00
Pierangelo Masarati
d50ba575fe s/o_dn/o_ndn/ (ITS#5622) 2008-07-19 11:27:10 +00:00
Pierangelo Masarati
ab3388aa93 improve diagnostics 2008-07-12 17:58:11 +00:00
Pierangelo Masarati
18a333bfcf trim extra brackets (ITS#5609); NULL-terminate string 2008-07-12 16:03:31 +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
Howard Chu
4af6e9c4c6 Fix 1.40, release entry with same backend that obtained it 2008-07-08 06:00:32 +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
Howard Chu
34d074930c ITS#5584 - treat empty Replace like Delete 2008-07-01 11:48:10 +00:00
Pierangelo Masarati
48855fcdef make sure the strfilter is in normal form (ITS#5581) 2008-06-29 22:19:14 +00:00
Pierangelo Masarati
b4894ccd81 don't lookup dg* attrs more than needed (ITS#5583) 2008-06-29 21:50:05 +00:00
Rein Tollevik
e5dfb18abc ITS#5564 ignore clients contextCSN when doing full reload. 2008-06-18 19:38:39 +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
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
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
a709d8b69a Fix rev 1.220 - remove extra free_syncop() 2008-05-29 16:58:32 +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
3c24f1f884 More for #5511 2008-05-27 22:39:12 +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
a572267f60 ITS#5526 cleanup config structs 2008-05-23 11:47:37 +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
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
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
b0ffd08504 ITS#5490 callback stack may be NULL 2008-04-30 23:50:08 +00:00
Howard Chu
b16478a5ca Avoid queueing response on abandoned psearches 2008-04-29 22:09:12 +00:00
Howard Chu
64315e3087 ITS#5451 glue deadlock fix 2008-04-28 12:53:04 +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
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
Howard Chu
626608f5f2 ITS#5437, #5444 if numcsns don't match, set changed flag 2008-04-03 08:43:48 +00:00
Howard Chu
f2de258e3d ITS#5442 slapd_rq mutexes must always be used 2008-04-02 03:08:06 +00:00
Pierangelo Masarati
8cb162ef44 fix bitwise test (ITS#5445) 2008-03-31 16:58:03 +00:00
Pierangelo Masarati
f32f99211e make stamp a long no matter what time_t is, to print it accordingly (ITS#5441) 2008-03-29 16:22:50 +00:00
Pierangelo Masarati
f049fbb206 avoid system call when not needed (ITS#5441) 2008-03-29 12:11:44 +00:00
Howard Chu
50a26bec0a ITS#5434 again 2008-03-25 05:08:21 +00:00
Howard Chu
fc69e61be6 ITS#5432 don't send cookie with delete set if there's no true delete CSN 2008-03-21 00:09:24 +00:00
Howard Chu
294da7ed11 ITS#5435 ConfigReply arg must be non-NULL 2008-03-20 01:24:33 +00:00
Howard Chu
261d2420f4 ITS#5434 search thru other overlays when present 2008-03-20 00:31:42 +00:00
Howard Chu
0abf40063f ITS#5433 checkpoint must write to master DB 2008-03-20 00:26:14 +00:00
Pierangelo Masarati
956b50645c allow slapo-refint(5) to implement global referential integrity (ITS#5428) 2008-03-15 18:27:24 +00:00
Pierangelo Masarati
27a61d9411 use OID for dnSubtreeMatch (ITS#5427) 2008-03-15 18:22:25 +00:00
Howard Chu
4097d261bb Use <ldap_queue.h> macros for prev commit 2008-03-14 16:49:53 +00:00
Howard Chu
0cb9cb04ea ITS#5401 make sure connection is still alive before detaching op 2008-03-13 10:49:32 +00:00
Pierangelo Masarati
5417aa895a use the replication persistent search identity to check whether a modification must be replicated (ITS#5418) 2008-03-12 22:31:28 +00:00
Howard Chu
a287573d2d ITS#5407 more checks for pool pausing 2008-03-08 23:51:07 +00:00
Howard Chu
26c08cb64a Fix prev commit (thanks Ando) 2008-03-08 22:12:57 +00:00
Howard Chu
44b1af6e65 ITS#5405 fix race condition 2008-03-08 02:00:36 +00:00
Pierangelo Masarati
2df4675ac3 don't set sm_nvalues unless required (ITS#5375) 2008-02-14 15:15:53 +00:00
Howard Chu
8bfbbf6901 ITS#5373 allow delete/replace of userpassword without supplying new one 2008-02-12 22:53:25 +00:00
Howard Chu
df1aa2fa89 Fix prev commit 2008-02-12 21:18:30 +00:00
Howard Chu
09e624ce6a ITS#5374 don't perform mod_cleanup after a successful response 2008-02-12 20:57:05 +00:00
Howard Chu
525f266d10 ITS#5367 revert prev commit 2008-02-11 00:19:43 +00:00
Howard Chu
32a082c24b Cleanup 2008-02-10 02:10:28 +00:00
Howard Chu
6693f72402 Clean up config.h 2008-01-22 13:26:16 +00:00
Pierangelo Masarati
807df724c1 fix ITS#5327 crasher 2008-01-15 20:32:35 +00:00
Hallvard Furuseth
cd63a0c43b Warning cleanup: function ptr <=> void* at ldap_pvt_thread_pool_<set/get>key() 2008-01-11 06:07:43 +00:00
Hallvard Furuseth
e1e0370e8c Remove unused variable 2008-01-08 16:49:13 +00:00
Kurt Zeilenga
c890c96d13 Happy New Year (belated) 2008-01-08 00:19:56 +00:00
Pierangelo Masarati
30f401c628 rename ldap_pvt_thread_pool_setkey_x() to ldap_pvt_thread_pool_setkey() (as part of ITS#5309) 2008-01-07 21:35:03 +00:00
Hallvard Furuseth
e9c2a7dcb3 ITS#5309: Use ldap_pvt_thread_pool_setkey_x() more. Fix void** arguments. 2008-01-07 20:10:22 +00:00
Hallvard Furuseth
8a1f904ed9 Avoid use of uninitialized variable 'e' after failed overlay_entry_get_ov().
(It was harmless unless the value was a trap representation.)
2008-01-07 18:50:54 +00:00
Pierangelo Masarati
2969c69747 fix modlist cleanup during rename 2008-01-02 22:49:45 +00:00
Pierangelo Masarati
622c4d3884 new ldap_pvt_thread_pool_setkey API 2007-12-29 18:14:54 +00:00
Pierangelo Masarati
ac689156bc plug leak (ITS#5302) 2007-12-29 17:59:28 +00:00
Pierangelo Masarati
22f0fa7eb8 allow slapo-memberof to be used as global overlay, and thus provide cross-database integrity (ITS#5301) 2007-12-29 16:07:07 +00:00
Pierangelo Masarati
18b2885f69 allow to customize the error code in case of constraint violation 2007-12-28 00:38:27 +00:00
Pierangelo Masarati
ce43877f6f if referential integrity is broken, things could go wrong; don't assert 2007-12-27 20:57:42 +00:00
Pierangelo Masarati
63e0046eab fix previous commit 2007-12-27 19:57:51 +00:00
Pierangelo Masarati
8a529a1f72 check objectClass inheritance on add (consistent with modify; ITS#5299) 2007-12-27 19:50:12 +00:00
Howard Chu
d38ff5403f ITS#5261 quick fix, don't checkpoint on first write to DB 2007-12-22 05:00:38 +00:00
Howard Chu
13491b3905 ITS#5285 don't check for password reuse if history is not enabled 2007-12-15 19:35:11 +00:00
Pierangelo Masarati
20f2548c82 fix declarations of buffers for numeric strings; other related cleanup 2007-12-15 15:23:23 +00:00
Howard Chu
8a622361d1 ITS#4987 extensions from Emmanuel Dreyfus manu @ netbsd.org with major
cleanups
2007-12-15 11:12:56 +00:00
Howard Chu
3a7830ff01 More cleanup 2007-12-15 00:50:37 +00:00
Howard Chu
b96a96c598 Fix prev commit, must test filter on cleanup 2007-12-14 20:24:31 +00:00
Howard Chu
f84a67ef34 Don't test filter before saving, need the copy for local lookup 2007-12-14 20:04:40 +00:00
Howard Chu
a58ea1efdd More cleanup 2007-12-14 19:50:06 +00:00
Howard Chu
be32a57637 Add missing cleanup 2007-12-14 19:15:06 +00:00
Howard Chu
75b7f19ae3 ITS#5283 add remote/local attribute lists, search both local and remote 2007-12-14 19:02:44 +00:00
Pierangelo Masarati
bd64ab8d17 don't try to count non-expired entries if database does not exist (ITS#5267) 2007-12-08 21:57:22 +00:00
Howard Chu
6c0b815b6f ITS#5268 omit contextCSN when replicating 2007-12-08 17:45:10 +00:00
Howard Chu
562b88a3cf Omit auditContext when sync control is present 2007-12-08 17:03:47 +00:00
Pierangelo Masarati
bfd50b6ec5 don't try to delete expired entries if database does not exist (ITS#5267) 2007-12-08 17:00:34 +00:00
Howard Chu
54a3ef323b ITS#5161 make sure accesslog_response is called for abandoned writes
This probably needs to be cleaned up more. There should be a log
schema flag that indicates that an op was abandoned.
2007-12-07 11:27:57 +00:00
Pierangelo Masarati
8958bcd60f save old values when deleting (ITS#5258; not optimal) 2007-12-06 12:29:04 +00:00
Howard Chu
0189fcc32a Pop local callback for modify 2007-11-29 23:03:44 +00:00
Howard Chu
dba1b54b47 Fix prev commit, leave callback stack alone in compare() 2007-11-29 22:56:54 +00:00
Ralf Haferkamp
67ec05ef18 Allow initialization when using custom "memberof-group-oc" and
"memberof-member-ad" and "groupOfNames" and "member" are undefined
2007-11-28 12:09:55 +00:00
Quanah Gibson-Mount
cb286fa4b1 cleanup 2007-11-27 20:58:19 +00:00
Pierangelo Masarati
7aeac21440 silence warnings 2007-11-23 12:47:53 +00:00
Pierangelo Masarati
3c6714051e let c_conn_idx be -1 (ITS#5235?) 2007-11-17 13:39:19 +00:00
Howard Chu
d3531c6d79 Eliminate unnecessary Op copies 2007-11-13 01:35:58 +00:00
Howard Chu
0e3db5ac3e ITS#4889 fix search. remainder of code needs similar work. 2007-11-13 01:22:45 +00:00
Ralf Haferkamp
488af9daa2 Fix op->o_abandon handling. Use fake connection to add results to the cache (ITS#5187) 2007-11-08 15:43:42 +00:00
Howard Chu
18db111c6b Fix prev commit 2007-11-07 04:59:03 +00:00
Howard Chu
8f56be2ce8 ITS#5146 better check for single val in modify 2007-11-07 04:58:07 +00:00
Howard Chu
005209bfe1 ITS#5211 spec says we must ignore invalid cookies 2007-11-04 12:34:41 +00:00
Howard Chu
528a30fe87 More for prev commit, ITS#5120. 2007-11-02 16:40:42 +00:00
Howard Chu
b6570cf867 Don't send cookie at end of refresh if nothing changed in refreshAndPersist 2007-11-02 00:25:11 +00:00
Howard Chu
38953e2f2c Fix depend dependency for parallel make 2007-10-20 04:29:11 +00:00
Howard Chu
539109e4f0 Fix prev commit, only defer open for online Add 2007-10-16 16:25:56 +00:00
Howard Chu
a79bc9195d ITS#5177 pass new entries in search_response for Persist mode 2007-10-08 18:13:29 +00:00
Howard Chu
8bb39495c7 Fix unprotected checks for psearches 2007-10-08 13:59:33 +00:00
Howard Chu
d2f75ebaa5 Plug leak 2007-10-08 13:28:25 +00:00
Howard Chu
ade1fcff20 ITS#5173 simplify defer open behavior 2007-10-08 07:37:53 +00:00
Howard Chu
2659caf322 ITS#5173 fix for dynamic add in cn=config 2007-10-08 07:13:58 +00:00
Howard Chu
dbcf98b4d9 Refuse to operate on cacheDB if it hasn't been started yet 2007-10-08 06:34:57 +00:00
Howard Chu
e60536c04a Fix for dynamic adds 2007-10-08 06:21:13 +00:00
Pierangelo Masarati
617bd11452 de-normalize simple filter values consistently 2007-10-05 09:49:19 +00:00
Pierangelo Masarati
4cf03ca277 fix ITS#5168 (a better fix would probably be a generic handler to de-normalize values) 2007-10-04 21:53:49 +00:00
Howard Chu
9dc35b8997 Don't queue zero-length CSNs 2007-10-02 23:51:40 +00:00
Pierangelo Masarati
14bcd332ce log cookie (until we find what's going on...) 2007-10-02 18:09:15 +00:00
Pierangelo Masarati
2de9d97ad2 first round of s/sprintf/snprintf/; the rationale is: truncate error messages rather than buffer overflow; otherwise, assert that no buffer overflow occurred. In some cases, error handling could be added. Please note: no real error in the code was found so far, apart from that in syncprov.c and from some config-time error logging; however, errors could slip thru again if things don't change consistently 2007-09-29 17:55:33 +00:00
Ralf Haferkamp
3d1df12527 set mod->sm_numvals 2007-09-26 01:59:24 +00:00
Howard Chu
0f2b1d551b More for Mod.sm_numvals 2007-09-24 05:30:53 +00:00
Howard Chu
dcaa5a27f5 Partially revert prev commit, unintended. 2007-09-24 05:30:36 +00:00
Howard Chu
d2179d885f Use attr_valfind instead of value_find_ex to optimize lookups 2007-09-24 05:02:31 +00:00
Howard Chu
e8c2414831 Preliminary sorted value support 2007-09-24 01:31:23 +00:00
Howard Chu
ebb9e029a7 Make slap_passwd_parse non-destructive 2007-09-23 04:40:51 +00:00
Howard Chu
a3547e2758 More for a_numvals 2007-09-23 04:40:16 +00:00
Hallvard Furuseth
cea5e5664d assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL). 2007-09-21 13:02:36 +00:00
Hallvard Furuseth
8b7fd262b8 Cast away const 2007-09-21 12:58:34 +00:00
Howard Chu
8c6d828a1f More for Modification value counter 2007-09-21 09:34:31 +00:00
Howard Chu
c4dbe1a274 Attribute/Modification value counters 2007-09-21 08:43:56 +00:00
Ralf Haferkamp
b99749aba4 Use rwlock for CachedQuery to avoid returning incomplete results (ITS#5113) 2007-09-20 17:23:56 +00:00
Ralf Haferkamp
af7f86a2cd Fixed memory leak in pcache. Cache is now populated in cleanup handler.
ITS#5112
2007-09-20 16:15:23 +00:00
Pierangelo Masarati
d92e8ad1f7 add helper for internal searchs for objectClass=* 2007-09-15 17:38:53 +00:00
Pierangelo Masarati
76974d412a add support for dgAuthz --- see discussion on -devel 2007-09-14 22:42:16 +00:00
Pierangelo Masarati
f7bda3be0a release entry (ITS#5135) 2007-09-14 22:39:49 +00:00
Pierangelo Masarati
1157b6dc6a handle sizelimit in caching (in partial fulfilment of ITS#5114) 2007-09-12 21:09:04 +00:00
Howard Chu
aec54643c2 Don't populate member list unless it was requested 2007-09-11 14:10:50 +00:00
Pierangelo Masarati
00ad93ac70 also copy modifications we don't deal with, as they will be freed altogether (ITS#5124) 2007-09-07 09:38:38 +00:00
Pierangelo Masarati
9beb9f9f51 fix one-time leak (coverity) 2007-09-03 16:27:01 +00:00
Pierangelo Masarati
55e908dca2 fix helper pointer inizialization (coverity) 2007-09-03 16:22:53 +00:00
Howard Chu
dbac914e33 Hide log schema 2007-09-01 22:28:06 +00:00
Pierangelo Masarati
bcf9bce5f4 hide (experimental) schema 2007-09-01 16:09:06 +00:00
Pierangelo Masarati
f89f552d2a fix previous commit 2007-09-01 15:47:23 +00:00
Pierangelo Masarati
4edd5cca23 hide (experimental) schema 2007-09-01 15:38:03 +00:00
Pierangelo Masarati
63a7a69b89 hide schema 2007-09-01 15:32:47 +00:00
Howard Chu
c06ed65f2a Protect Debug messages from NULL pointers 2007-09-01 13:35:34 +00:00
Ralf Haferkamp
cd103f9010 Additional fix for ITS#4991. _cleanup callback was always executed when
needed.
2007-08-29 14:29:37 +00:00
Pierangelo Masarati
7ceaad7eb2 plug yet another leak 2007-08-29 00:27:47 +00:00
Pierangelo Masarati
5ed5bc5803 first round of CSN normalization consequences 2007-08-28 18:38:27 +00:00
Howard Chu
4ccb430c8c Convert collect to dynamic config. Even though it's only a demo... 2007-08-28 09:19:07 +00:00
Pierangelo Masarati
e33abd467c needs work: memberOf should not be replicated 2007-08-25 16:02:43 +00:00
Howard Chu
da5c3285d2 Fix config delete 2007-08-24 23:56:55 +00:00
Howard Chu
ecf59634e9 Fix prev commit 2007-08-24 23:28:43 +00:00
Pierangelo Masarati
6f9519543e - fix logging of controls;
- add support for Control syntax;
- use Control syntax and objectIdentifierFirstComponentMatch
  with reqControls/reqRespControls
2007-08-24 23:13:41 +00:00
Pierangelo Masarati
511a71067f add logging of request/response controls 2007-08-24 12:50:01 +00:00
Pierangelo Masarati
ee8431b22d add memberOf overlay 2007-08-24 02:46:55 +00:00
Howard Chu
2d4f198662 Add dgIdentity support 2007-08-23 23:33:37 +00:00
Howard Chu
43463852f6 Add cn=config support 2007-08-23 01:40:09 +00:00
Pierangelo Masarati
7c9f63a60d fix subtree rename integrity; curiously enough, tes023 only failed on 64 bit arch; probably because we'd need to double the stack of the slab on 64 bit archs... 2007-08-22 17:46:55 +00:00
Pierangelo Masarati
b25eab8a7b set authorizing backend 2007-08-21 11:37:33 +00:00
Pierangelo Masarati
2c13f86cec support subtree rename (ITS#5097) 2007-08-20 19:06:18 +00:00
Pierangelo Masarati
8e66538dc1 cleanup previous commit; make sure what's queryid and what's entryUUID 2007-08-17 16:37:29 +00:00
Pierangelo Masarati
970471d49c fix queryDelete by queryID 2007-08-17 16:24:27 +00:00
Pierangelo Masarati
8be1b48263 set the number of cached entries after reload... 2007-08-17 15:46:44 +00:00
Pierangelo Masarati
ca1aed557b make lutil_uuidstr_from_normalized() return the length of the string 2007-08-17 15:08:47 +00:00
Pierangelo Masarati
0c90b9ece2 revert previous commit: let queryId be an octet string, and modify queryDelete parsing accordingly 2007-08-17 15:04:28 +00:00
Pierangelo Masarati
86c67bd491 use UUID syntax for queryId 2007-08-17 14:43:50 +00:00
Pierangelo Masarati
1b0c4f5af5 fix UUID parsing (it's in normalized form) 2007-08-17 12:43:16 +00:00
Pierangelo Masarati
2245aff52c further fix specification 2007-08-17 11:36:34 +00:00
Pierangelo Masarati
a2badc7c3c cleanup error messages; complete privateDB control and queryDelete exop specifications 2007-08-17 11:25:35 +00:00
Pierangelo Masarati
7c0a7571fb add:
- support for the privateDB control, which allows regular LDAP operations
  to address the private database instead of the proxied one.
  This is essentially intended for cache monitoring and maintenance
- support for the queryDelete extended operation, which allows to delete
  from the cache database either a cached query, specified by queryId,
  or all queries related to a specific cached entry, specified by entryDN
2007-08-17 10:26:56 +00:00
Pierangelo Masarati
68ab6c87bd rework previous commit: consistently remove queries, better memory handling and more 2007-08-17 09:57:46 +00:00
Pierangelo Masarati
995359548b more consistent parsing checks 2007-08-17 09:53:47 +00:00
Howard Chu
a16eea9d8e Paranoia for prev commit 2007-08-16 20:03:27 +00:00
Howard Chu
8133e7005e Fix double-free closing multiple ppolicy overlay instances 2007-08-16 19:59:02 +00:00
Hallvard Furuseth
6a02dd9d92 Fix typo in previous commit: spurious space in UUID syntax OID.
Also make remove_query_and_data() return void (it returned nothing) and
remove an unused variable.
2007-08-16 13:44:15 +00:00
Pierangelo Masarati
9c4d147747 fix error checking when parsing UUID (detected by Coverity); added check/prettification of UUID, just in case... 2007-08-16 11:52:10 +00:00
Pierangelo Masarati
2f5bfba296 let req_modify_s and req_modrdn_s have a common portion to interoperate within slap_mods_opattrs() (ITS#5093) 2007-08-16 09:48:53 +00:00
Pierangelo Masarati
27428ac00e uniformly exploit rootdn bind; add support for rootdn bind to backends that didn't have it (ITS#4962) 2007-08-16 09:38:15 +00:00
Pierangelo Masarati
f4844889fd s/orb_tmp_mech/orb_mech/ 2007-08-16 09:29:45 +00:00
Pierangelo Masarati
5ec09e2f0a merge attributes as required after mapping; avoid objectClass duplicates (ITS#5091) 2007-08-14 11:46:29 +00:00
Pierangelo Masarati
c114cb8eb7 provide an interface to remove a set of entries from the cache 2007-08-13 16:50:18 +00:00
Pierangelo Masarati
4a249bbe0d plug leak 2007-08-13 16:29:04 +00:00
Pierangelo Masarati
ccff813df0 stop pcache task at close 2007-08-13 16:28:33 +00:00
Pierangelo Masarati
32c2dee3f8 fix hot startup commit (read of uninitialized memory; ITS#5081) 2007-08-13 16:27:56 +00:00
Pierangelo Masarati
d354844cf9 fix previous commit (crash if no rewrite but just mapping is present) 2007-08-11 09:28:33 +00:00
Gavin Henry
60cde2f3c3 ITS#5085 2007-08-10 16:55:50 +00:00
Pierangelo Masarati
ae9776a580 fixed few leaks in previous commit (ITS#5081) 2007-08-09 16:33:50 +00:00
Pierangelo Masarati
da44ccbf18 experimental code for hot restart of proxy cache (ITS#5081) 2007-08-09 16:15:57 +00:00
Pierangelo Masarati
5f386d3e31 fix previous commit 2007-08-06 12:48:35 +00:00
Pierangelo Masarati
add25c2f45 honor 1.1, * and + (ITS#5074 and more) 2007-08-06 12:31:30 +00:00
Ralf Haferkamp
3a9310431e Reworked recent backend API changes, now using a separate struct,
(ConfigReply) for the error messages.
2007-08-03 12:02:07 +00:00
Howard Chu
4961b95508 Revert 1.101, not appropriate 2007-07-27 09:17:56 +00:00
Ralf Haferkamp
5ae46c195e Added a new parameter (ConfigArgs*) to the _db_init, _db_open, _db_close and
_db_destroy functions.
2007-07-25 17:21:05 +00:00
Hallvard Furuseth
767293dd3a Cosmetic change: spaces->tab in last patch. Thus readable with tab-width=4. 2007-07-23 21:50:26 +00:00
Howard Chu
b0113c38cd ITS#5040 don't touch modifyTimestamp and other opattrs when updating
ppolicy opattrs
2007-07-22 16:42:01 +00:00
Ralf Haferkamp
5b897eef52 Fixed return value of _cleanup function 2007-07-20 17:13:22 +00:00
Howard Chu
b7d38c15ff ITS#5048 fully initialize fc_limits 2007-07-20 15:16:36 +00:00
Hallvard Furuseth
9bd4a298ef ITS#5049: Initialize conn in syncprov_db_close() before connection_fake_init(). 2007-07-18 21:02:14 +00:00
Pierangelo Masarati
3aefa9434d major improvement: baseline support for back-config; minor improvement: trim code to handle absence of librewrite (enable forced when slapo-rwm is configured...) 2007-07-14 16:18:44 +00:00
Howard Chu
88cbe052e0 Fallout from ITS#4986 - remove unused param of select_backend() 2007-07-13 03:18:20 +00:00
Pierangelo Masarati
ca7ad7f2e3 fix searchFilter double free (ITS#5043) 2007-07-12 22:22:31 +00:00
Ralf Haferkamp
19b4aba5a1 added config option "normalize-mapped-attrs" to enable normalization of
undefined mapped attribute types.
2007-07-09 16:22:54 +00:00
Howard Chu
087a662f9e Better fix for rev 1.97 2007-06-14 14:51:15 +00:00
Howard Chu
8cafa0b117 ITS#4970 ignore pwdMinAge if pwdReset is TRUE 2007-06-08 09:23:49 +00:00
Howard Chu
9227293e8d ITS#4977 check for cookie parse failure 2007-06-08 09:05:35 +00:00
Pierangelo Masarati
4148c4e3f9 make searches expand all matching sets of group/url[/member] configurations; relax configuration test as per ITS#4989 2007-06-02 11:27:43 +00:00
Ralf Haferkamp
11e8c186bf ITS#4991 restore save_attrs when a request is finished to let do_search()
cleanup correctly
2007-05-31 15:49:45 +00:00
Ralf Haferkamp
7203276785 ITS#4991 restore mapped AttributeNames before processing a response 2007-05-31 15:46:46 +00:00
Howard Chu
6186117f97 ITS#4966 valsort_modify: ignore Delete modops with no values 2007-05-25 00:58:59 +00:00
Pierangelo Masarati
74ca4680db more ITS#4973 initialization 2007-05-19 14:12:24 +00:00
Hallvard Furuseth
93fbb87545 Give OperationBuffer normal struct members instead of using
LBER_ALIGNED_BUFFER(OPERATION_BUFFER_SIZE), as discussed in ITS#4078.
Add a corresponding SyncOperationBuffer in overlays/syncprov.c.
2007-05-18 23:54:26 +00:00
Howard Chu
093f52e44d ITS#4961 disable schema checking on contextCSN update 2007-05-14 21:25:48 +00:00
Hallvard Furuseth
7720844624 Reapply part of rev 1.2 warning cleanup, it was lost in next revision 2007-05-13 22:32:33 +00:00
Hallvard Furuseth
5a6362c453 assert(pointer) -> assert(pointer != NULL) 2007-05-09 19:10:36 +00:00
Hallvard Furuseth
bbc719ca56 ITS#4948: '#if <undefined macro>' -> '#ifdef' warning cleanup 2007-05-09 18:17:10 +00:00
Ralf Haferkamp
f8c94e3155 fix comparison with string literal 2007-05-07 14:55:45 +00:00
Kurt Zeilenga
f810e6ed41 Distinguish absent control value from empty control value. 2007-04-20 22:32:58 +00:00
Howard Chu
bfa0d15834 Fix prev commit, filter construction with URI filters 2007-04-10 02:38:54 +00:00
Howard Chu
a2405e0a7e Axe slurpd / replog support 2007-04-06 00:21:02 +00:00
Hallvard Furuseth
4667f18253 Do not end a potentially last line of a Makefile statement with '\'. 2007-03-26 22:16:45 +00:00
Pierangelo Masarati
18fc3548cd fix test in case of bailout (ITS#4891) 2007-03-22 22:30:53 +00:00
Howard Chu
d9958cbdbe Enhanced unique configuration 2007-03-22 08:22:53 +00:00
Pierangelo Masarati
639d678592 cleanup struct declarations 2007-03-20 01:07:10 +00:00
Pierangelo Masarati
93f338eb79 cleanup 2007-03-19 15:50:51 +00:00
Pierangelo Masarati
98fe6a81a0 handle r_dn == r_ndn 2007-03-19 15:44:58 +00:00