Commit Graph

1353 Commits

Author SHA1 Message Date
Hallvard Furuseth
720aa4b77e Plug mutex/rwlock leaks (destroy them) 2010-12-20 10:57:06 +00:00
Hallvard Furuseth
78a0be6a42 Plug memory leaks 2010-12-20 10:51:14 +00:00
Hallvard Furuseth
9e6331f14f ITS#6752 Remove OpenLDAP 2.[23] dynlist code 2010-12-20 10:25:11 +00:00
Hallvard Furuseth
e7df2ef95f ITS#6752 Handle REP_ENTRY_* flags correctly 2010-12-20 10:22:19 +00:00
Hallvard Furuseth
42a0f5efc2 ITS#6752 Fix dynlist Compare callback
Replace dynlist_sc_save_entry() with dynlist_sc_compare_entry() which
compares instead of saves the entry.  Check rs->sr_type == REP_SEARCH.
2010-12-20 10:20:38 +00:00
Hallvard Furuseth
abbf57fd79 ITS#6752 dynlist: Do less work, simplify a bit.
Rearrange dynlist_compare(), tweak dynlist_response().
2010-12-20 10:19:21 +00:00
Hallvard Furuseth
2a9c5154ef ITS#6748 Drop possibly-broken memberof log message 2010-12-14 15:26:42 +00:00
Hallvard Furuseth
0aa8c028b3 ITS#6746: Preserve error code, plug entry leak 2010-12-14 13:35:42 +00:00
Rein Tollevik
b4aa8dc68c ITS#6716: Keep sessionlog sorted by csn, compare mincsn with head. 2010-12-12 18:12:05 +00:00
Hallvard Furuseth
6be3671985 Fix rev 1.132 (ITS#6632): Initialize all of roc in rwm_callback_get() 2010-12-03 10:08:59 +00:00
Hallvard Furuseth
50b1c4e1b1 ITS#6620: Don't delete absent pwdChangedTime.
Based on patch by Martin Evans.
2010-12-02 12:19:31 +00:00
Hallvard Furuseth
3d48d5a360 ITS#6730: Only update modifiersName once per entry 2010-12-01 11:21:29 +00:00
Hallvard Furuseth
a36512660f ITS#6730: Fix missing refint updates with subtrees/subordinates 2010-12-01 11:19:17 +00:00
Hallvard Furuseth
9a9302a2f5 ITS#6663: Fix refint_nothing.
Also move callback trace output out of inner loop in callback.
2010-12-01 10:48:43 +00:00
Pierangelo Masarati
fa4dbb871b fix double free related to ITS#6720 2010-11-29 16:03:43 +00:00
Hallvard Furuseth
0ab060091e Silence gcc -Wsign-compare (no real change) 2010-11-22 13:45:11 +00:00
Hallvard Furuseth
b39e9d151d For ITS#5421: Remove ldap-int.h dependencies.
LDAP_FREE() -> ber_memfree(), msg->lm_ber -> ldap_get_message_ber(msg).
2010-11-22 12:51:44 +00:00
Rein Tollevik
d3cddce244 ITS#6718: Send NEW_COOKIE messages to all consumers. 2010-11-21 19:00:38 +00:00
Rein Tollevik
990d8f562f ITS#6710: Force clients to refresh if context is dirty. 2010-11-21 17:56:09 +00:00
Rein Tollevik
877fc0ab37 ITS#6709: Wait for active mods to finish before initiating new consumers. 2010-11-21 15:31:38 +00:00
Rein Tollevik
ba86259aa0 ITS#6708: Mutex protect fixing the filter. 2010-11-15 15:42:06 +00:00
Ralf Haferkamp
e1c2a67517 Unregister VLV control as well when last overlay instance
is removed (additional fix for ITS#6647)
2010-11-04 12:13:26 +00:00
Howard Chu
de6dbc981e ITS#6685 fix result code tag 2010-10-26 00:59:10 +00:00
Ralf Haferkamp
76c611ad42 Removed unused variables 2010-10-19 10:48:21 +00:00
Ralf Haferkamp
02753d1555 ITS#6677 moved one more #endif, addtional fix for previous commit 2010-10-19 10:47:41 +00:00
Howard Chu
2cd0b96158 ITS#6677 move #endif 2010-10-17 01:36:47 +00:00
Pierangelo Masarati
85369497aa do not expose control until sssvlv overlay is actually instantiated at least once (ITS#6647) 2010-10-06 08:24:45 +00:00
Pierangelo Masarati
dc78654c0b make sure so is correctly initialized (spotted by valgrind, possibly related to ITS#6649) 2010-09-18 18:27:28 +00:00
Pierangelo Masarati
79d4e4cf6a add support for ADD_IF_NOT_PRESENT and SOFTDEL internal modification types (ITS#6561) 2010-09-07 13:21:20 +00:00
Pierangelo Masarati
c405143a0a ignore undefined attrs (ITS#6600, based on patch by Jonathan CLARKE) 2010-09-07 02:03:23 +00:00
Pierangelo Masarati
c78014bc5d make sure callback is freed (ITS#6640) 2010-09-07 02:01:35 +00:00
Pierangelo Masarati
df2573b4a9 hacks ITS#6632 2010-08-29 08:08:42 +00:00
Howard Chu
a8ffb63331 Better fix - avoid allocating callback for non-logged mod ops 2010-08-04 08:50:29 +00:00
Howard Chu
21d299e370 More for ITS#6608 - don't replicate ppolicy state changes on replicas 2010-08-04 08:14:59 +00:00
Howard Chu
9434a7d676 ITS#6608 don't update mod opattrs on single-master slaves 2010-07-28 02:43:21 +00:00
Howard Chu
7e7f24f13f ITS#6606 send error if consumer is newer than provider 2010-07-28 02:21:27 +00:00
Howard Chu
c7305c4133 Check for SLAP_SYNTAX_DN flag instead of distinguishedName syntax 2010-07-12 03:20:57 +00:00
Ralf Haferkamp
c4f0c2cc2b unregister controls when removing syncprov, ppolicy, valsort, chain or
sssvlv overlay
2010-07-01 11:51:43 +00:00
Ralf Haferkamp
7b2dc4c059 Send error to active psearches upon overlay removal 2010-06-23 16:34:25 +00:00
Howard Chu
9a0e94b4dc More for ITS#6572, fix copy/paste error 2010-06-17 22:05:33 +00:00
Howard Chu
28072167c7 ITS#6572 zero out freed DN vals. from mbackes@symas.com 2010-06-13 18:47:21 +00:00
Howard Chu
c8c3847103 ITS#6566 use Debug, not fprintf(stderr) 2010-06-02 00:18:32 +00:00
Howard Chu
a07d3630cb Quit send loops if slapd is shutting down 2010-05-21 17:47:17 +00:00
Ralf Haferkamp
a06696a1ef During the refresh phase the sync filter needs to be adjusted (skipping
the "(entrycsn>=cookie)" part that was inserted) when checking whether a
change needs to be replicated, otherwise we lose DELETES that happen during
the refresh phase (ITS#6555).
2010-05-20 17:08:28 +00:00
Howard Chu
c45fca65fc Init uninit'd vlv flag 2010-05-18 07:35:12 +00:00
Ralf Haferkamp
5743591419 Reset BackendInfo to original value after checkpoint. Plugs a memory leak
when deleting the syncprov overlay from a database (when compiled with
-DSLAP_CONFIG_DELETE)
2010-04-29 15:47:27 +00:00
Pierangelo Masarati
71a11b44e8 fix memory handling in rewrite parsing (ITS#6526) 2010-04-17 16:29:34 +00:00
Pierangelo Masarati
9d2e03f052 allow to specify a per-database list of attributes that need to be always collected, even if not explicitly requested by clients (addresses ITS#6513) 2010-04-15 05:26:21 +00:00
Pierangelo Masarati
a3a603eca6 malloc as much as possible on slab 2010-04-15 05:11:23 +00:00
Howard Chu
68ce33cd77 ITS#6519 don't replicate purge deletes 2010-04-13 23:28:35 +00:00
Kurt Zeilenga
3dadeb3efe happy belated New Year 2010-04-13 22:17:29 +00:00
Pierangelo Masarati
5564ee0173 don't free before use 2010-04-12 16:24:01 +00:00
Pierangelo Masarati
a6298f97fc keep attrs count consistent (ITS#6508) 2010-04-08 17:24:44 +00:00
Pierangelo Masarati
063c844b2a increment counter (ITS#6497) 2010-03-23 20:33:06 +00:00
Pierangelo Masarati
7ca6247395 check for NULL backend (ITS#6490) 2010-03-22 21:48:25 +00:00
Howard Chu
7cec659d74 Fix prev commit 2010-03-13 21:41:51 +00:00
Howard Chu
968663d6e4 Fix for CB_TAIL with cached results 2010-03-10 22:25:42 +00:00
Howard Chu
e85ca5d49a ITS#6484 don't bypass other overlays' entry_release handler 2010-03-03 23:36:29 +00:00
Howard Chu
f992b66f05 ITS#6484 - cache DB needs to release its own entries 2010-03-02 21:29:32 +00:00
Pierangelo Masarati
3cd65c0a5d reduce code duplication 2010-02-12 08:55:34 +00:00
Ralf Haferkamp
837320eaac plugged one time memory leak (found with valgrind) 2010-01-22 18:01:25 +00:00
Ralf Haferkamp
9e3517595d Plugged memory leak. Syncentry wasn't free'd when sending
LDAP_SYNC_NEW_COOKIE intermediate results. (ITS#6459)
2010-01-21 13:33:21 +00:00
Howard Chu
0c195fc013 ITS#6438 check for redundant syncops_free() ? 2010-01-05 03:50:10 +00:00
Pierangelo Masarati
ade09a57da allow direct insert/delete of olcRwmMap (ITS#6436) 2009-12-21 18:58:21 +00:00
Pierangelo Masarati
0329d982a2 better fix to ITS#6434 (olcRwmMap needs work to allow atomic mods) 2009-12-21 17:32:05 +00:00
Pierangelo Masarati
8ddb160ae8 fix in-database configuration of olcRwmMap (no ITS# yet) 2009-12-20 18:31:08 +00:00
Pierangelo Masarati
85621c882a guard against simultaneous REP_ENTRY_MUSTRELEASE and REP_ENTRY_MODIFIABLE (related to ITS#6423) 2009-12-08 20:53:39 +00:00
Pierangelo Masarati
173873172c guard against simultaneous REP_ENTRY_MUSTRELEASE and REP_ENTRY_MODIFIABLE (ITS#6423) 2009-12-08 19:36:10 +00:00
Pierangelo Masarati
40065adb4d remove REP_ENTRY_MUSTRELEASE when copying (ITS#6423) 2009-12-08 18:47:17 +00:00
Pierangelo Masarati
2c1c200662 log about invalid URI (more about ITS#6421) 2009-12-08 01:34:22 +00:00
Pierangelo Masarati
db852e4378 handle simple filters with no brackets (ITS#6421) 2009-12-08 00:17:25 +00:00
Howard Chu
111b27cfd4 ITS#6270, refix patch from ITS#5511 2009-11-30 06:07:22 +00:00
Hallvard Furuseth
492b2cda2b ITS#6403: reset 'entry' output argument to overlay_entry_get_ov() 2009-11-29 19:53:01 +00:00
Howard Chu
3b2380254a ITS#6400 clarify... 2009-11-24 03:41:24 +00:00
Howard Chu
fae4df1ed6 more for #6397 2009-11-23 22:17:25 +00:00
Howard Chu
e72e0507f8 ITS#6397 cleanup psearch if cookie is stale 2009-11-23 22:13:42 +00:00
Hallvard Furuseth
da747ed63a Fix rev 1.200 commit: C90 forbids mixed declarations and code 2009-11-23 16:04:00 +00:00
Howard Chu
faddd86f54 Revert prev commit, simpler fix... 2009-11-22 17:43:48 +00:00
Pierangelo Masarati
1970251bb7 check result of str2filter; syncrepl: can be broken; retcode: can't; pcache: shouldn't (ITS#6391) 2009-11-22 11:57:17 +00:00
Howard Chu
993fbf4514 Short-circuit backend_operational; sent entry's e_private doesn't belong
to the backend any more
2009-11-22 04:43:34 +00:00
Howard Chu
c365ac359e ITS#6368 use dup'd entries in response queue 2009-11-22 04:42:00 +00:00
Howard Chu
650ebba22b Fix prev commit 2009-11-21 11:54:59 +00:00
Howard Chu
4bdc6fcbc9 in op_response, rearrange contextCSN update checks 2009-11-21 11:43:01 +00:00
Howard Chu
af0d762c1c Mostly revert prev commit, broke test054 2009-11-21 03:38:13 +00:00
Howard Chu
ae5af832db Always log outgoing cookie, just use op->o_csn instead of commit_csn since
all responses are now serialized.
2009-11-21 02:37:53 +00:00
Howard Chu
198cbd6ea8 ITS#6368 partially revert 1.273, always check for skips, not just on
first matchops call
2009-11-19 11:17:53 +00:00
Howard Chu
ddfe3cde10 ITS#6387 plug leaks 2009-11-18 23:58:39 +00:00
Pierangelo Masarati
1ec443df53 trim unnecessary test 2009-11-16 10:02:47 +00:00
Howard Chu
ff98f4abc5 Use fake_init2 in db_open/db_close since they can execute from a
back-config operation (and could wipe out the state otherwise)
2009-11-15 10:38:13 +00:00
Howard Chu
67edd75e48 Cleanup for #6373 2009-11-14 21:53:06 +00:00
Howard Chu
dd2f158b52 Fix prev commit 2009-11-14 09:35:23 +00:00
Howard Chu
fe911c5960 ITS#6376 plug potential leak 2009-11-14 09:34:29 +00:00
Howard Chu
3f9e8eeeec ITS#6373 more for subentry creation 2009-11-11 04:03:27 +00:00
Howard Chu
9ad558b78c ITS#6373 create subentry if missing 2009-11-11 03:36:46 +00:00
Howard Chu
46a97b9204 ITS#6373 sync_use_subentry support 2009-11-11 03:19:01 +00:00
Pierangelo Masarati
17a185b32a unparse checkpoint time in minutes (ITS#6370) 2009-11-10 19:02:33 +00:00
Howard Chu
a3f38ed932 ITS#6346 serialize all responses 2009-10-29 23:46:10 +00:00
Howard Chu
3d189671bd ITS#6310 dup entry before adding to cache 2009-10-24 05:59:39 +00:00
Rein Tollevik
739f8d0753 ITS#6335 Don't reuse a modtarget someone is about to remove 2009-10-16 17:27:18 +00:00
Howard Chu
eefe62b597 Implement policy checks on compare op 2009-10-15 07:11:39 +00:00
Pierangelo Masarati
716eaf0e8b update entryCSN (and operational attrs in general) when changing memberOf (ITS#6329) 2009-10-14 20:35:42 +00:00
Pierangelo Masarati
8bdf89ac6a make sure members are not used uninitialized 2009-10-07 22:44:14 +00:00
Howard Chu
e0cad0e988 ITS#6308 lock leak: must release entry using same op that acquired it 2009-09-29 06:21:32 +00:00
Howard Chu
2e601e8291 ITS#6288 don't deref sort control if it wasn't set 2009-09-29 03:10:03 +00:00
Howard Chu
2d2fca51d2 ITS#6242 need managedsait to replace glue entries with their real values 2009-09-27 22:42:04 +00:00
Pierangelo Masarati
07b7491249 fix LDIF comment when modifying (ITS#6286) 2009-09-08 04:40:24 +00:00
Pierangelo Masarati
e45c20cf92 fix uninitialized var (ITS#6266; actually, the problem was a bit more severe...) 2009-08-24 01:22:55 +00:00
Pierangelo Masarati
9f2360e2a9 fix uninitialized and off-by-one (thanks to valgrind) 2009-08-21 16:01:33 +00:00
Howard Chu
27c39c56c4 ITS#6152 add tests for cache refresh and Bind caching 2009-08-21 13:25:38 +00:00
Howard Chu
6d50de8526 ITS#6152 pwdModify support 2009-08-20 09:47:34 +00:00
Howard Chu
17d31e523f Fix prev commit 2009-08-20 09:46:40 +00:00
Howard Chu
2d28fe4d4c ITS#6265 must set orm_no_opattrs 2009-08-20 00:32:28 +00:00
Howard Chu
acd888b9de child DB should have ordering prefix 2009-08-19 23:46:37 +00:00
Pierangelo Masarati
9f13a2ae02 more cleanup of attr renaming 2009-08-19 23:13:13 +00:00
Pierangelo Masarati
afec8d12ad more cache monitoring (ITS#5178) 2009-08-19 23:09:52 +00:00
Pierangelo Masarati
a688867cae more about previous commit 2009-08-19 22:41:06 +00:00
Hallvard Furuseth
4b6f2de8ab Silence warning (bv_len >= 0 is always true) 2009-08-19 18:59:33 +00:00
Howard Chu
924fdaaf84 Bind caching works 2009-08-19 08:14:07 +00:00
Howard Chu
3de89b4201 Bind caching, work in progress 2009-08-19 03:00:33 +00:00
Pierangelo Masarati
f3cdcadf89 wrap gmtime for reentrancy (ITS#6262) 2009-08-18 23:48:15 +00:00
Pierangelo Masarati
87321c3fae update cachedQueryURL only when requested 2009-08-18 08:38:42 +00:00
Pierangelo Masarati
ef7569fdc0 expose cachedQueryURL in overlay's monitor entry (partial fulfilment of ITS#5178; needs new register_overlay() code in back-monitor) 2009-08-17 23:23:21 +00:00
Howard Chu
c670264951 For refresh_purge, only delete entry if ours is the last queryid on it.
Otherwise just remove our queryid.
2009-08-17 22:24:26 +00:00
Howard Chu
8cd909db3f Plug leaks in prev commit 2009-08-17 14:38:28 +00:00
Howard Chu
cd0681c4e1 ITS#6152 restart consistency checker when going back online
reset refcnt when refreshing a query
2009-08-17 13:24:33 +00:00
Howard Chu
deb1fb6eb6 Fix refresh_merge, using mods from wrong entry 2009-08-17 13:11:05 +00:00
Howard Chu
73c46fa598 Cleanup prev commit 2009-08-17 12:51:44 +00:00
Howard Chu
a5cfab44d7 ITS#6152 preliminary refresh support, untested 2009-08-17 12:02:48 +00:00
Howard Chu
31084affa6 ITS#6251 framework for TTR. refresh not yet implemented. 2009-08-17 03:03:50 +00:00
Howard Chu
7ad21d7dfd Fix typo in prev commit 2009-08-17 02:22:28 +00:00
Howard Chu
88c6cfa814 Deprecate previous config keywords. Add ttr parsing (no functionality yet) 2009-08-16 23:26:34 +00:00
Pierangelo Masarati
bb3e14ddba honor requested attrs (ITS#6254), including operational 2009-08-14 01:18:23 +00:00
Pierangelo Masarati
f283f7ad47 improve previous commit; make sure returned entries match filter (ITS#6255); defer sizelimit exceeded detection 2009-08-14 00:49:48 +00:00
Pierangelo Masarati
b6cf5ca896 make sure filter is applied to final entry (ITS#6255) 2009-08-14 00:14:35 +00:00
Pierangelo Masarati
bea861dda5 honor sizelimit when filter needs to be split between local and remote (ITS#6253) 2009-08-14 00:03:10 +00:00
Pierangelo Masarati
60627ddf93 eliminate code duplication 2009-08-13 21:24:32 +00:00
Pierangelo Masarati
9ebc168a8a log in case of failure (FIXME: should those logs be at ANY level?) 2009-08-04 23:45:42 +00:00
Pierangelo Masarati
1f33edc08e use back-config if supported 2009-08-04 23:27:52 +00:00
Pierangelo Masarati
f2e1b78391 silence warnings; misc cleanup; test refresh as non-allowed user 2009-08-03 22:49:30 +00:00
Pierangelo Masarati
a1ed732822 count query answerability; allow configuration of private database 2009-08-02 22:00:01 +00:00
Howard Chu
dd88fdbcc3 ITS#6152 add olcProxyCacheOffline for manually toggling cache expiration,
assume some external process will tell us when network is on/offline
2009-08-02 01:20:03 +00:00
Hallvard Furuseth
ef0163c198 Fix last commit: C90 rejects declaration after code 2009-07-30 15:34:42 +00:00
Howard Chu
82e95f8091 Change AttributeName.an_oc_exclude to an_oc_flags, avoid multiple
futile searches for OC matches.
2009-07-26 00:14:15 +00:00
Howard Chu
addb1320a4 More cleanup 2009-07-25 00:09:56 +00:00
Howard Chu
48ffbcce3c Minor cleanup 2009-07-25 00:06:46 +00:00
Pierangelo Masarati
e9f1452624 test whether the current entry matches the current uri filter (ITS#6077); also, don't leak DN when adding a base fails 2009-07-24 22:00:53 +00:00
Howard Chu
5f211a7dcc Fix handling for empty results 2009-07-13 15:22:46 +00:00
Howard Chu
eab5b9570a Fix result when no VLV match 2009-07-13 15:15:27 +00:00
Howard Chu
783dc77df7 Minor cleanup 2009-07-13 15:00:19 +00:00
Howard Chu
aa316f10fe Add sssvlv config 2009-07-13 14:20:31 +00:00