Commit Graph

166 Commits

Author SHA1 Message Date
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
Pierangelo Masarati
d36099aa62 cleanup (related to ITS#5760) 2009-02-15 22:16:21 +00:00
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