Pierangelo Masarati
92576d2bc0
olcDatabase needs X-SORTED 'SIBLINGS' index
2009-02-04 20:06:28 +00:00
Howard Chu
aa569ea04e
ITS#5756 sort filters more completely
2009-01-26 11:07:45 +00:00
Kurt Zeilenga
4af9eb9715
Update copyright notices
2009-01-22 00:40:04 +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
a8658c742e
be->be_pcl_mutexp superseded by be->bd_self
2008-11-02 07:58:50 +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
e3bc5b64c6
Warning cleanup: Remove no-op bv_len < 0 and bv_len >= 0 tests
2008-10-17 17:40:48 +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
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
a64b74b014
handle negative caching (ITS#5546)
2008-06-14 15:05:00 +00:00
Howard Chu
294da7ed11
ITS#5435 ConfigReply arg must be non-NULL
2008-03-20 01:24:33 +00:00
Howard Chu
6693f72402
Clean up config.h
2008-01-22 13:26:16 +00:00
Kurt Zeilenga
c890c96d13
Happy New Year (belated)
2008-01-08 00:19:56 +00:00
Pierangelo Masarati
7aeac21440
silence warnings
2007-11-23 12:47:53 +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
539109e4f0
Fix prev commit, only defer open for online Add
2007-10-16 16:25:56 +00:00
Howard Chu
ade1fcff20
ITS#5173 simplify defer open behavior
2007-10-08 07:37:53 +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
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
a3547e2758
More for a_numvals
2007-09-23 04:40:16 +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
1157b6dc6a
handle sizelimit in caching (in partial fulfilment of ITS#5114)
2007-09-12 21:09:04 +00:00
Pierangelo Masarati
bcf9bce5f4
hide (experimental) schema
2007-09-01 16:09:06 +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
b25eab8a7b
set authorizing backend
2007-08-21 11:37:33 +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
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
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
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
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
Ralf Haferkamp
5b897eef52
Fixed return value of _cleanup function
2007-07-20 17:13:22 +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
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
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Howard Chu
6020a6d81d
ITS#4337 implement modrdn for back-config
2006-12-24 00:56:37 +00:00
Howard Chu
69c4495bc2
ITS#4768 more be_add fallout
2006-12-12 21:00:12 +00:00
Pierangelo Masarati
2b242dee14
private database inherits monitoring from underlying one
2006-09-15 00:23:14 +00:00
Pierangelo Masarati
4add034d5d
destroy exactly what needs to
2006-09-14 23:53:23 +00:00
Howard Chu
e04275ca04
Use register_at / register_oc
2006-09-13 13:26:56 +00:00
Hallvard Furuseth
8c1210cb78
Format fixes: %p takes void*, not struct* whose representation may differ.
...
Warning cleanup.
2006-05-25 16:14:41 +00:00
Howard Chu
6f08468e2f
Fix concurrency issues
2006-05-25 05:08:04 +00:00
Howard Chu
5e50d2e2e4
Fix prev commit, LE/GE searches advanced in wrong direction.
...
Terminate EQ/SUBSTR query searches sooner.
2006-05-23 02:53:54 +00:00
Howard Chu
fa2425005a
More cleanup
2006-05-20 05:05:13 +00:00
Howard Chu
b83ef38c51
cleanup debug msg
2006-05-20 05:03:35 +00:00
Howard Chu
fde6482629
Cleanup (revert ITS#4472, etc.)
2006-05-19 15:51:09 +00:00
Howard Chu
e6475734fa
ITS#4549, rewritten query_containment etc...
2006-05-19 15:25:33 +00:00
Howard Chu
f0adb769ad
Cleanup query attrs
2006-05-19 09:15:42 +00:00
Howard Chu
8eace69ddb
Cleanup template searching
2006-05-19 08:07:59 +00:00
Hallvard Furuseth
eca5f7bf2d
ITS#4472: Make t_rwlock a lock pointer instead of a lock, and malloc/free it.
...
That way, realloc(qm->templates...) won't move the ldap_pvt_thread_rdwr_t data.
2006-04-04 23:12:58 +00:00
Howard Chu
abb01fa437
cleanup
2006-04-04 10:47:42 +00:00
Hallvard Furuseth
da0c0360e4
Warnings: Unused vars. funcptr=0, not =NULL. if(b=...) -> if((b=...) != NULL).
2006-04-02 19:54:24 +00:00
Howard Chu
e18a6ab7f9
ITS#4406 don't cache attrsonly results
2006-02-16 08:16:49 +00:00
Howard Chu
71d439aba7
Use "pcache" dynamic debug level
2006-02-02 08:31:15 +00:00
Howard Chu
57c25cbd68
Fix negative caching again, be sure it's really from zero entries returned
2006-02-02 02:52:54 +00:00
Howard Chu
f50316f141
Use LDAP_DEBUG_CACHE instead of TRACE. Delete remove_mutex.
2006-02-01 19:31:35 +00:00
Howard Chu
bedac8bd60
Fix negative caching, only do it on Success
2006-01-27 22:55:28 +00:00
Howard Chu
51c5916149
ITS#4364 add filter_dup, don't use str2filter to dup filters.
2006-01-23 20:53:52 +00:00
Howard Chu
4361a942ab
Add ability to cache negative results and specify negative TTL on templates
2006-01-18 02:59:06 +00:00
Howard Chu
03f28de8bb
ITS#4225 added proxyCacheQueries parameter for configuring max_queries
2006-01-17 19:51:50 +00:00
Howard Chu
13fdab9509
Optimizations for containment checks
2006-01-09 19:35:03 +00:00
Howard Chu
a393b68656
Plug memleak when query isn't added to cache
2006-01-09 18:00:11 +00:00
Howard Chu
7ce9e7b7c6
Tone down debug messages
2006-01-09 17:27:57 +00:00
Howard Chu
42ec7b40b1
Streamline answerability test
2006-01-09 16:22:55 +00:00
Howard Chu
2be7cf6114
ITS#4316 fix to make attrset subsets work as documented.
2006-01-09 13:56:25 +00:00
Kurt Zeilenga
acbb5cf689
Happy new year!
2006-01-03 23:11:52 +00:00
Pierangelo Masarati
22f05c6785
add support for backend/overlay obsolete names...
2005-11-28 14:13:54 +00:00
Pierangelo Masarati
98936ee3c4
streamline overlay configuration
2005-11-25 12:43:43 +00:00
Pierangelo Masarati
8d19d52467
use time_t for time-related vars
2005-11-24 01:49:06 +00:00
Pierangelo Masarati
9a47e3c81a
use lutil_ato*() whenever appropriate
2005-11-24 01:44:29 +00:00
Pierangelo Masarati
990b435ce0
fix return attributes (ITS#4203)
2005-11-23 10:04:33 +00:00
Pierangelo Masarati
59c4fb1fcd
"relax" previous commit; don't leave locks 'round (ITS#4204)
2005-11-23 09:35:44 +00:00
Pierangelo Masarati
de31e7aa91
quick fix to ITS#4204
2005-11-23 08:47:48 +00:00
Pierangelo Masarati
c580a4182e
make controls as strict as possible
2005-11-23 02:01:51 +00:00
Pierangelo Masarati
478360925b
add some integrity checks on input, without changing syntax nor semantics (ITS#4199)
2005-11-23 01:15:01 +00:00