Commit Graph

9445 Commits

Author SHA1 Message Date
Pierangelo Masarati
5fb99e0a23 consistently dispose of limbo 2007-08-27 07:12:12 +00:00
Pierangelo Masarati
62504d7ef0 add anlist_free 2007-08-27 07:11:32 +00:00
Pierangelo Masarati
2082935657 so SIDs are hex 2007-08-27 07:09:57 +00:00
Pierangelo Masarati
7dc7c60c4b improve previous commit; fix ITS#5108 by letting both SID and RID be 0..4095, input/output in decimal, but consistently handled in hexadecimals within CSN 2007-08-26 17:03:22 +00:00
Pierangelo Masarati
2132aa3b16 add support for CSNSIDMatch; use it to set contextCSN as appropriate when slapadd'ing -w 2007-08-26 15:39:45 +00:00
Pierangelo Masarati
7c66952714 check for shutdown (need to add to other backends?) 2007-08-26 15:38:51 +00:00
Pierangelo Masarati
b95e40f56f cleanup 2007-08-26 15:38:20 +00:00
Pierangelo Masarati
af9233b9df use LDAP_RES_UNSOLICITED for the response message id 2007-08-26 15:06:52 +00:00
Howard Chu
8367f0cfe4 revert prev commit, no gain 2007-08-26 14:37:12 +00:00
Howard Chu
ddc5c9f735 Just use read locks on the entry_db_lock 2007-08-26 13:49:35 +00:00
Pierangelo Masarati
e33abd467c needs work: memberOf should not be replicated 2007-08-25 16:02:43 +00:00
Howard Chu
6d9e2cac21 Fix prev commit 2007-08-25 16:00:15 +00:00
Howard Chu
a1c088ed02 ITS#5077 again 2007-08-25 15:40:39 +00:00
Pierangelo Masarati
96611ac703 getting an abnormal number of empty syncUUID... 2007-08-25 15:15:05 +00:00
Pierangelo Masarati
071b77cf9d better fix 2007-08-25 15:01:27 +00:00
Pierangelo Masarati
84143631ee fix potential concurrency issue (not so potential, if we could regularly trigger it :) 2007-08-25 14:58:43 +00:00
Pierangelo Masarati
abca6f16a6 also improve massaged DN containment check 2007-08-25 10:57:08 +00:00
Pierangelo Masarati
2be301db66 improve URI DN containment check 2007-08-25 10:13:51 +00:00
Pierangelo Masarati
097420bfc4 fix typo 2007-08-25 09:37:59 +00:00
Howard Chu
528b3bc601 Fix aux/structural comment 2007-08-25 00:42:37 +00:00
Pierangelo Masarati
8f95ff260c consistently use "tag=" instead of "op=" in debug messages 2007-08-25 00:10:52 +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
72f009ac52 behave when a value of an ordered attr starts with '{' and either contains or not '}', but the prefix '{X}' does not contain a numericString 2007-08-24 23:05:10 +00:00
Howard Chu
7aaddee5bf test_filter() should use ordered_value_match() 2007-08-24 22:34:04 +00:00
Pierangelo Masarati
30fbf95de1 allow to register further syntax/mr compatibility 2007-08-24 20:05:30 +00:00
Ralf Haferkamp
a57a24dab8 tcpd.h is already include in slap.h 2007-08-24 16:09:50 +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
ece1c226a1 Add dgIdentity from draft-haripriya-dynamicgroup-02 2007-08-23 02:09:17 +00:00
Howard Chu
7ef61c0ec0 Register dyngroup OID 2007-08-23 01:52:04 +00:00
Howard Chu
43463852f6 Add cn=config support 2007-08-23 01:40:09 +00:00
Pierangelo Masarati
25d46e7578 rework controls API 2007-08-22 22:35:14 +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
9a00bbb35f add support for session tracking (draft-wahl-ldap-sessio) to proxy backends requests 2007-08-22 15:49:35 +00:00
Pierangelo Masarati
63b6bfd1a4 don't Statslog before getting controls 2007-08-22 14:41:42 +00:00
Pierangelo Masarati
99c92b74c9 handle response controls in exops 2007-08-22 12:07:27 +00:00
Pierangelo Masarati
05b9123a03 consistently use o_log_prefix 2007-08-22 09:17:09 +00:00
Pierangelo Masarati
8ef19246dc fix previous commit (need to finish breakfast before committing...) 2007-08-22 08:57:23 +00:00
Pierangelo Masarati
00368b128a log formatOID, possibly mapped to friendly name if known 2007-08-22 08:44:21 +00:00
Pierangelo Masarati
83eec9f96b add session tracking support to essential exops 2007-08-22 00:41:47 +00:00
Pierangelo Masarati
1bdc186ea2 fix API change 2007-08-22 00:08:38 +00:00
Pierangelo Masarati
1a59d091bc minimal implementation of draft-wahl-ldap-session-03 2007-08-21 22:47:54 +00:00
Pierangelo Masarati
6270bd9e82 cleanup experimental controls: rename macros, ifdef code 2007-08-21 21:42:09 +00:00
Pierangelo Masarati
70ed7d58a6 re-fix previous commit 2007-08-21 15:36:21 +00:00
Pierangelo Masarati
7bea240767 fix tree delete error handling 2007-08-21 15:19:01 +00:00
Pierangelo Masarati
9066d14290 add support for tree delete along with minor fixes (portions ITS#3497) 2007-08-21 14:52:43 +00:00
Pierangelo Masarati
cb05b0e935 fix control value presence 2007-08-21 14:50:32 +00:00
Pierangelo Masarati
b25eab8a7b set authorizing backend 2007-08-21 11:37:33 +00:00
Pierangelo Masarati
145e6fc1f8 fix or comment Calysto findings 2007-08-21 10:52:16 +00:00
Pierangelo Masarati
f95fe8c756 fix yet another potential dereference of NULL op (caught by Coverity) 2007-08-20 22:09:19 +00:00
Howard Chu
df2dcbcbe6 More for ITS#5077 2007-08-20 20:00:15 +00:00
Pierangelo Masarati
2c13f86cec support subtree rename (ITS#5097) 2007-08-20 19:06:18 +00:00
Pierangelo Masarati
af92ee5e65 check for SOFTADD as well 2007-08-20 19:05:07 +00:00
Pierangelo Masarati
4242ce20d6 rework connections so that they get cached on a per-thread basis (ITS#5095) 2007-08-20 00:27:47 +00:00
Howard Chu
4c7d288eb7 More for BDB 4.6 compatibility 2007-08-17 20:33:46 +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
403704b7bc move uuid normalized to string to liblutil 2007-08-17 12:42:52 +00:00
Pierangelo Masarati
553d83c3c1 fix previous commit 2007-08-17 12:38:50 +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
Pierangelo Masarati
ce6b685caf rework previous commit 2007-08-17 09:52:31 +00:00
Pierangelo Masarati
36111934a3 allow "traditional" behavior (more for ITS#4962; please debate) 2007-08-17 09:51:29 +00:00
Pierangelo Masarati
ba9baf154e give the db a chance if rootpw is unset (more for ITS#4962) 2007-08-17 09:50:20 +00:00
Pierangelo Masarati
5acbf5997c re-sort funcs (and enums) in "logical" order 2007-08-17 09:49:17 +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
f5d1a15fec Remove lint 2007-08-16 14:41:48 +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
51152d83a3 consistently use SLAP_* malloc macros; alloc sizeof(Syntax *) instead of sizeof(Syntax) for areray of superiors; free resources also in case of failure of syn_insert() 2007-08-16 12:08:47 +00:00
Pierangelo Masarati
3771d2ed49 fox to ITS#5070 fix: error out if serialNumber requires size > sizeof(long long) (detected by Coverity) 2007-08-16 11:57:34 +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
9029c0902f don't trick coverity... 2007-08-16 11:32:10 +00:00
Pierangelo Masarati
f7a6c4360c defer thread key retrieve as it might not be needed 2007-08-16 10:05:21 +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
15545731bc fix previous commit 2007-08-16 09:32:04 +00:00
Pierangelo Masarati
f4844889fd s/orb_tmp_mech/orb_mech/ 2007-08-16 09:29:45 +00:00
Pierangelo Masarati
87f918ebc0 don't dereference save_errnop if NULL; create temporary file in right dir; revert to strtol(3) (ITS#4627) 2007-08-16 09:23:48 +00:00
Howard Chu
c727d5caf7 ITS#4627 fix tool_entry_next 2007-08-15 20:09:06 +00:00
Hallvard Furuseth
8e30e008c6 Fix rev 1.68 spew_entry() for ITS#4627: Do not dereference NULL save_errnop.
Add missing unlink().  Update debug messages, move one from spew_file().
Also check the close() return code.
2007-08-15 19:43:13 +00:00
Howard Chu
b45c15fdc9 TS#4627 fix tool_entry_first() 2007-08-14 18:54:28 +00:00
Pierangelo Masarati
d8f964fb7a fix most of the issues of ITS#4627 2007-08-14 15:54:56 +00:00
Pierangelo Masarati
9a55fe709c add '-Q' switch (used by slaptest only; ITS#4930) 2007-08-14 13:42:40 +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
1f3d88f32b recent check for syncrepl searchbase broke test048; fixing... 2007-08-13 20:51:42 +00:00
Pierangelo Masarati
a73826b834 don't allow NULL values (because of parsing errors; ITS#5090) 2007-08-13 19:33:01 +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
Howard Chu
8b27523e4c Add config keyword for DN cache size (aka EntryInfoSize)
default is 2x entry cache size
2007-08-11 19:29:14 +00:00
Pierangelo Masarati
5eef8c7f40 fix objectClass inheritance (ITS#5088) 2007-08-11 09:37:55 +00:00
Pierangelo Masarati
147f1c157f use RFC4523 objectClasses 2007-08-11 09:32:24 +00:00
Pierangelo Masarati
3119bba337 more on ITS#4868 2007-08-11 09:31:48 +00:00
Pierangelo Masarati
d8636d8e60 fix previous commit: op is not a bind if error 2007-08-11 09:30:52 +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
Howard Chu
a87b4592a4 Remove tool_id2entry_get 2007-08-11 04:19:53 +00:00
Howard Chu
ed4b5d1bd7 ITS#5087 fix tool_id2entry_get for hdb
TODO: rip this all out and just use tool_entry_get
2007-08-11 02:11:27 +00:00
Howard Chu
a49ff7878e Fix prev commit 2007-08-10 23:26:25 +00:00
Howard Chu
cd47824bbb ITS#5077 fix attr_cmp loop termination 2007-08-10 23:10:59 +00:00
Howard Chu
856bf9bd48 ITS#5065 don't crash if old cookieCSN is sent 2007-08-10 22:52:04 +00:00
Howard Chu
e4a7d8ad77 ITS#5082 must remove olcPasswordHash from global config... 2007-08-10 22:32:03 +00:00
Howard Chu
faf9339cc8 ITS#5082 allow olcPassdwordHash in frontendDB config 2007-08-10 22:28:24 +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
caf89557ab syncrepl searchbase must be within the database naming context (ITS#5073) 2007-08-08 18:23:22 +00:00
Pierangelo Masarati
97d2c51980 improve previous commit: now each missing index has a specific counter 2007-08-08 18:22:19 +00:00
Pierangelo Masarati
b713eb5102 add monitor support for unindexed attributes (need to manually #define BDB_MONITOR_IDX) 2007-08-07 22:36:04 +00:00
Pierangelo Masarati
61787df79b add back-config support to back-relay 2007-08-06 23:22:19 +00:00
Pierangelo Masarati
a8ecd63a6d fix typo 2007-08-06 14:51:47 +00:00
Pierangelo Masarati
89c84fe8a9 rework ITS#4322 check 2007-08-06 14:46:51 +00:00
Pierangelo Masarati
dbad13ead2 workaround open() being a macro in glibc 2.6 (ITS#5075) 2007-08-06 12:57:24 +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
Pierangelo Masarati
f4e12e11d6 trim unused vars 2007-08-03 20:26:48 +00:00
Pierangelo Masarati
d334ec71a0 cleanup 2007-08-03 19:21:07 +00:00
Pierangelo Masarati
32a9d5c7ed require ';binary' when appropriate (ITS#5071) 2007-08-03 19:19:36 +00:00
Pierangelo Masarati
d0baca7a62 add certificateListValidate (#ifdef LDAP_DEVEL) 2007-08-03 13:12:36 +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
Pierangelo Masarati
34921e07ad allow parsing of long long serials when long long is defined (ITS#5070) 2007-08-03 10:50:18 +00:00
Ralf Haferkamp
92d9771503 removed bogus cast 2007-08-01 15:42:18 +00:00
Ralf Haferkamp
bc1aa3afa7 initialize msg[] Array, fixed typo 2007-07-31 15:49:16 +00:00
Pierangelo Masarati
55bd34079c return entry controls (partially fixes ITS#4591) 2007-07-30 16:32:59 +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
Pierangelo Masarati
6a4dd27158 allow validation/normalization of x509 v1 (default) certs 2007-07-25 00:56:51 +00:00
Howard Chu
b514b25795 Quick and dirty BDB 4.6.18 support. Expect this to change again soon. 2007-07-24 14:02:37 +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
Hallvard Furuseth
259c1baf23 Revert integer type change from rev 1.281 (ITS#5035) for now. It just
replaced one inttype bug with another, the proper fix is to change the API.
2007-07-23 20:18:30 +00:00
Hallvard Furuseth
0de176e874 Add bi->bi_entry_get_rw. 2007-07-23 20:13:36 +00:00
Howard Chu
b236aba403 More for #5057 - reject duplicate AVAs 2007-07-23 05:49:49 +00:00
Howard Chu
c6b1e35598 ITS#5057 replace AVA_Sort with insertion sort 2007-07-23 05:23:31 +00:00
Howard Chu
69be5fd675 ITS#5057 fix AVA_Sort 2007-07-23 04:22:39 +00:00
Howard Chu
d918bc9983 ITS#4375 rework statslog, debug log info 2007-07-23 03:51:42 +00:00
Howard Chu
b06a5b8498 ITS#4937, consolidate statslog 2007-07-23 00:47:31 +00:00
Howard Chu
3b837d4fca More for ITS#5050 2007-07-23 00:33:21 +00:00
Howard Chu
1e8350ad3f Silence warnings in prev commit 2007-07-23 00:02:31 +00:00