Commit Graph

10479 Commits

Author SHA1 Message Date
Howard Chu
a96538f36c ITS#5860 don't free entryinfo of entries that are validly in the cache 2009-01-26 20:59:10 +00:00
Howard Chu
09a369c4ea More for ITS#5860 2009-01-26 20:36:17 +00:00
Howard Chu
aa569ea04e ITS#5756 sort filters more completely 2009-01-26 11:07:45 +00:00
Howard Chu
64d0cb9cf6 ITS#5859 fix IDL cache for hdb DB with empty suffix 2009-01-26 10:20:51 +00:00
Howard Chu
a59bdb2d5d ITS#5860 more for prev commit 2009-01-25 22:43:31 +00:00
Howard Chu
673405bc2e More for prev commit 2009-01-25 22:06:24 +00:00
Howard Chu
01cf75383e Fix prev commit 2009-01-25 21:15:45 +00:00
Howard Chu
9c34d6c8c7 Dynamically added databases did not have controls init'd 2009-01-25 04:07:58 +00:00
Howard Chu
ef846c9105 More for prev commit 2009-01-25 03:04:43 +00:00
Howard Chu
b8db865c0a Cleanup, treat modifyTimestamp specially too 2009-01-25 02:18:41 +00:00
Howard Chu
b69b2d2f69 More for prev commit 2009-01-25 01:53:32 +00:00
Howard Chu
aedaaf6658 Blind fix to runqueue_remove assert. unable to reproduce the problem... 2009-01-24 21:56:15 +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
Howard Chu
35d8e5d5a6 FIx prev commit, OID clash 2009-01-24 05:49:14 +00:00
Howard Chu
fe70cdf2ea ITS#5864 - require BDB >= 4.6 for trickle task 2009-01-24 03:43:08 +00:00
Howard Chu
cf1558659b ITS#5655 TLS_PROTOCOL_MIN from Philip Guenther 2009-01-24 03:34:49 +00:00
Howard Chu
ac037d3a13 ITS#5843, fallout from #5470. Just test against our newest CSN. 2009-01-24 03:23:31 +00:00
Howard Chu
417d105c29 ITS#5860 more ID_NOCACHE fallout 2009-01-24 00:55:44 +00:00
Kurt Zeilenga
4af9eb9715 Update copyright notices 2009-01-22 00:40:04 +00:00
Pierangelo Masarati
549455c6c6 fix alias deref in case of retry (ITS#5889) 2009-01-21 08:55:48 +00:00
Howard Chu
d495c16861 ITS#5897 fix bval length of serverID w/URL 2009-01-20 23:31:33 +00:00
Howard Chu
863754cb82 Fix prev commit, was hanging up on write events 2009-01-16 22:32:21 +00:00
Howard Chu
9b8dd2033f Revert prev commit, better fix - make sure client conns are closed
as expected
2009-01-16 21:49:00 +00:00
Howard Chu
a4167862c3 Client connection might get closed implicitly 2009-01-16 21:28:46 +00:00
Howard Chu
13ddc561d8 Fix prev commit - check for c_state == CLOSING first 2009-01-15 21:31:58 +00:00
Howard Chu
dd15627a5e Fix prev commit, c_writers check should be mutex'd 2009-01-15 21:22:35 +00:00
Howard Chu
1a171b07d3 ITS#5835 fix connection teradown when there are waiting writers 2009-01-15 20:41:40 +00:00
Howard Chu
96192064f3 ITS#5886 fix epoll hangup handling 2009-01-14 04:28:24 +00:00
Howard Chu
f54bb377df Revert prev commit 2009-01-13 00:08:36 +00:00
Howard Chu
43c1f42461 ITS#5835 tentative fix - remove bogus call to connection_close().
Note that with this change, all calls to connection_closing() and
connection_close() always occur in pairs - probably the two
functions should be collapsed into one.
2009-01-13 00:03:23 +00:00
Howard Chu
c6b18cd7c5 ITS#5855 fix Windows wake_sds close 2009-01-05 22:09:10 +00:00
Howard Chu
0b60ddd7ca Fix prev commit 2008-12-29 15:38:56 +00:00
Howard Chu
6d73c12403 ITS#5866 skip CSN check for glue entries 2008-12-24 12:21:36 +00:00
Pierangelo Masarati
3cafd7b1eb honor RFC4528 assertion control for LDAP add operations (ITS#5861; blind fix) 2008-12-20 22:56:03 +00:00
Pierangelo Masarati
e0ad0fbd8d honor RFC4528 assertion control for LDAP add operations (ITS#5861) 2008-12-20 22:49:53 +00:00
Pierangelo Masarati
b334844a70 return error codes (ITS#5867) 2008-12-20 22:45:02 +00:00
Pierangelo Masarati
fb9128cdc8 check validity of idassert-bind line (ITS#5863) 2008-12-20 22:34:00 +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
5a50733e39 don't send error when going to retry (alternative fix to ITS#5854) 2008-12-12 09:29:51 +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
ed33fa5cc6 add shadow mask 2008-12-06 17:20:43 +00:00
Pierangelo Masarati
d8e4b48cee don't muck with shadow flags if database is already shadow (ITS#5850) 2008-12-06 17:16:03 +00:00
Pierangelo Masarati
bd49d6dc11 make sure the right control is being used (a little bit paranoid...) 2008-12-06 14:41:12 +00:00
Howard Chu
65530005ee More for prev commit - if doing both modrdn and modify at once, only
set the CSN on the modify op.
2008-12-03 04:49:53 +00:00
Howard Chu
89e13bff5f Refine prev commit 2008-11-29 11:06:28 +00:00
Howard Chu
2705cbd749 ITS#5809 - fixed again, based on 1.423 (reverted 1.424-1.425) 2008-11-29 03:41:33 +00:00
Howard Chu
b25c74777a Let the idletimeout check kill hung writers 2008-11-28 23:45:56 +00:00
Pierangelo Masarati
a7b4be5b33 fix ACI as a consequence of ITS#5804 (this is a hack; would need an API change) 2008-11-28 23:15:03 +00:00
Pierangelo Masarati
74636cfb51 more about ITS#5804 2008-11-28 22:50:18 +00:00
Howard Chu
e2ee5844e0 ITS#5835 change some DEBUG_TRACE messages to DEBUG_CONNS for easier debug 2008-11-28 21:09:34 +00:00
Pierangelo Masarati
1d9ff10ed7 add newRDN rewriting; fix rewriteContext names (ITS#5834) 2008-11-28 20:34:02 +00:00
Pierangelo Masarati
7c3e478f40 fix previous commit (related to ITS#5804) 2008-11-28 19:34:02 +00:00
Ralf Haferkamp
760660a4a2 Remove unneeded locking. Don't wait for memp_trickle to complete,
loosing an signal doesn't hurt in this case.
2008-11-28 16:09:40 +00:00
Pierangelo Masarati
4bbb033c6b retry every hour, but don't save it; on the contrary, complain every time syncrepl is configured without retry (ITS#5825) 2008-11-24 18:15:52 +00:00
Howard Chu
c71e7b399a ITS#5827, release syncop after mod op completes 2008-11-23 20:43:39 +00:00
Howard Chu
f6ae9c9c9f Fix typo in prev commit 2008-11-22 22:41:11 +00:00
Howard Chu
1d746e552a Initialize bli_flag 2008-11-22 21:08:38 +00:00
Pierangelo Masarati
970a60002f don't leak generated filters (ITS#5826) 2008-11-22 18:38:37 +00:00
Pierangelo Masarati
15236be495 fix previous commit 2008-11-22 18:35:19 +00:00
Pierangelo Masarati
ce045e153f make messages more esplicative; fix style 2008-11-22 17:53:14 +00:00
Pierangelo Masarati
31c61ad855 minimal fix for ITS#5825, pending discussion 2008-11-22 16:00:41 +00:00
Pierangelo Masarati
f0af51d639 don't alloc on slab (ITS#5820) 2008-11-20 17:22:33 +00:00
Pierangelo Masarati
55010d5e4e fix previous commit (ITS#5819) 2008-11-19 17:08:48 +00:00
Pierangelo Masarati
6f20049610 clear rc if value must be added (ITS#5819) 2008-11-19 16:02:22 +00:00
Pierangelo Masarati
2f32c29e4a don't bailout in case of insufficientAccess (ITS#5816) 2008-11-18 01:29:34 +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
Pierangelo Masarati
e5867e2f30 improve previous commit (ITS#5814) 2008-11-16 23:58:46 +00:00
Pierangelo Masarati
bbcc89ecd3 s/not|got/(non)present/ (more readable, isn't it?) 2008-11-16 20:33:03 +00:00
Pierangelo Masarati
b52c62e69f don't assert on unprotected data (ITS#5814) 2008-11-16 20:29:26 +00:00
Hallvard Furuseth
85e8b309d5 Silence gcc -Wformat: Put rev 1.343's debugmsg in Debug() so -Wformat can check 2008-11-16 03:22:27 +00:00
Hallvard Furuseth
753a6d0008 C89 rejects ITS#5784 non-constant array init (backend.c 1.402,-controls.c 1.201) 2008-11-16 03:10:15 +00:00
Howard Chu
011d14c136 cleanup prev commit, delete unused vars 2008-11-16 01:24:09 +00:00
Howard Chu
329741ff0b ITS#5809 fix prev commit - always turn modrdn into modrdn+modify, and
only propagate the Modify op.
2008-11-16 01:21:31 +00:00
Howard Chu
b7e8411dca ITS#5809 fix 1.421, avoid modrdn falling thru to modify unnecessarily 2008-11-15 23:54:23 +00:00
Pierangelo Masarati
03b0a71014 silence warnings 2008-11-15 15:08:00 +00:00
Emmanuel Dreyfus
3ac5b91a2f Fix warnings an a real bug hidden by the lack of warning... 2008-11-15 11:09:03 +00:00
Pierangelo Masarati
a86fae235b fix previous commit (related to ITS#5804) 2008-11-15 10:42:18 +00:00
Howard Chu
60450c7045 ITS#5709 make sure CSNs are generated and queued atomically 2008-11-15 08:49:44 +00:00
Emmanuel Dreyfus
4c60645bfb Add ACL <who> regex-substitution from attribute value submatches. Cf ITS#5804 2008-11-15 07:18:39 +00:00
Howard Chu
d1221975d6 ITS#5809 fewer false detections of renames 2008-11-14 23:48:38 +00:00
Hallvard Furuseth
587d928552 reformat 2008-11-14 18:19:19 +00:00
Hallvard Furuseth
355c94ddb7 ITS#5329: back-ldif deadlock with access controls 2008-11-14 18:15:35 +00:00
Howard Chu
51c87bb9c7 ITS#5809 renames are not exclusive from modifies 2008-11-13 22:46:49 +00:00
Hallvard Furuseth
d756699af6 ITS#5319 - support rename to same DN. 2008-11-12 00:20:48 +00:00
Hallvard Furuseth
9f55af00ce ITS#5408 part 11 - notice Abandon. 2008-11-12 00:11:53 +00:00
Hallvard Furuseth
2d1af3f2f7 ITS#5408 part 10 - errors from search and slapcat.
- Tweak error code/message for absent directory, including database directory.
- Catch closedir() error.
- ldif_tool_entry_close(): Free entries and reset entry list.
- Propagate any error to slapcat & co.
2008-11-12 00:10:01 +00:00
Hallvard Furuseth
c765070bf0 ITS#5408 part 9 - Sorted RDNs.
- Parse sorted attrs more carefully:
  Accept only attr={num}val.ldif and attr=val{num}.ldif and only base 10.
  Sort "attr=foo" before "attr=foo{n}".  Truncate at ".ldif" while sorting.
- Make the sort order independent of the LDIF files' order in the directory.
2008-11-12 00:03:55 +00:00
Hallvard Furuseth
32bc29d1af ITS#5408 part 8 - Rewrite search API, structs bvlist/enumCookie/ldif_tool.
r_enum_search() -> ldif_send_entry() + ldif_readdir() + ldif_search_entry().
enum_tree() -> search_tree().  fullpath() -> fullpath_alloc() + FILL_PATH().
No functionality change except catching malloc and opendir() errors.
2008-11-11 23:59:43 +00:00
Hallvard Furuseth
7c3cba840c ITS#5408 part 7 - Search operation bugs in r_enum_tree().
- Do not modify op->ors_scope, pass scope parameter instead.
- Save copies of dn/ndn before sending with REP_ENTRY_MODIFIABLE.
- Only the search baseDN may produce noSuchObject.
- More accurate result code.
2008-11-11 23:49:00 +00:00
Hallvard Furuseth
b1aed5b0ab ITS#5408 part 6 - referrals.
- Sending continuation references:
  Drop an unnecessary and wrong LDAP_SCOPE_BASE check.  The correct
  check would have been for DN == baseDN.
  Do not rewrite the scope, the caller already did.
- ldif_prepare_create(): Check that parent/newSuperior is not a referral.
- Rewrite ldif_back_rerferrals().  Better error handling.  Always pass
  refs through referral_rewrite().  As in back-bdb, apply manageDSAit
  only to the baseDN and do not use default_referral.
2008-11-11 23:42:32 +00:00
Hallvard Furuseth
5c41dfdabe ITS#5408 part 5 - handle modrdn file error. Move entry/subtree back if needed.
Add move_dir() macro, matching move_file().
2008-11-11 23:22:24 +00:00
Hallvard Furuseth
a9481e437c ITS#5408 part 4 - preparing for entry creation. More error handling.
- Move mkdir() into ldif_write_entry().  Modrdn lacked this.
- Factor tests for whether to create entry & dir out to ldif_prepare_create().
- Ensure an entry always exists if the corresponding subtree directory does.
- Move get_parent_path() up, accept NULL output param and malloc errors.
2008-11-11 23:16:22 +00:00
Hallvard Furuseth
ddc0613920 ITS#5408 part 3 - file path tweaks, sanity checks.
- Rename temporary filename patterns from "<rdn>.ldifXXXXX" to "<rdn>.XXXXX".
- Add and start using ldif2dir_len() & co.
2008-11-11 23:06:07 +00:00
Hallvard Furuseth
b00aa30d37 ITS#5408 part 2 - filesystem I/O, file error handling:
- Start moving file handling near the top - move_file(), ldif_tempname().
- Rename get_entry_for_fd() -> ldif_read_entry() and move open() into it.
  Rewrite slurp_file() as ldif_read_file(). Just stat() if output param==NULL.
- Rewrite ldif_write_entry(). Add LDAP_DEBUG_TRACE output.
2008-11-11 23:00:18 +00:00
Hallvard Furuseth
69a6d8ca2f ITS#5408 part 1 - error handling, debug output, add error texts (rs->sr_text).
- Reset rs->sr_text on success in apply_modify_to_entry(), not in its callers.
- Fix error test from ldif_write_entry() in ldif_move_entry().
- Start changing LDAP_UNWILLING_TO_PERFORM -> LDAP_OTHER for internal errors.
- Pass around LDAP result codes instead of errno.
- Rename spew_entry() -> ldif_write_entry(), move entry2str_mutex lock into it.
- Some other preparation for upcoming changes.
2008-11-11 22:53:41 +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
6932652551 ITS#5572 cleanup unneeded code 2008-11-11 21:40:39 +00:00
Quanah Gibson-Mount
e701d9b885 ITS#5572 from Rein 2008-11-11 21:09:28 +00:00
Pierangelo Masarati
21264e2cb8 eat all the substrings assertion if the attribute type does not support substrings matching (ITS#5803) 2008-11-11 18:01:35 +00:00
Quanah Gibson-Mount
1c8e1bfc74 Fix missing CVS revision header 2008-11-10 23:15:35 +00:00
Quanah Gibson-Mount
50402dca2b Fix missing CVS revision tag 2008-11-10 23:14:13 +00:00
Howard Chu
b613ab25b0 ITS#4556 allow Add content checking to be configured per-DB 2008-11-10 22:10:19 +00:00
Howard Chu
4d51be0c9b ITS#5798, don't use per-DB schema-check flag 2008-11-08 16:48:48 +00:00
Pierangelo Masarati
1dd88a8b11 exactly one ID can match (ITS#5791; further fix previous commit) 2008-11-08 10:39:45 +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
bda294f5c1 ITS#5794 move prev fix 2008-11-06 16:58:03 +00:00
Howard Chu
8499581841 ITS#5794 NUL-terminate old pw before checking 2008-11-06 16:47:05 +00:00
Howard Chu
b28aa117ea ITS#5783 / 5795 fix undef_promote 2008-11-06 16:27:01 +00:00
Pierangelo Masarati
c41df6ed07 lookup entry id when equality on entryDN (ITS#5791; fixes previous commit) 2008-11-04 12:16:23 +00:00
Pierangelo Masarati
45aaaddb16 lookup entry id when equality on entryDN (proposed fix for ITS#5791; does not work for back-hdb, though) 2008-11-04 12:07:47 +00:00
Pierangelo Masarati
d4970fcb6f don't allow indexing of entryDN (ITS#5790) 2008-11-04 11:54:19 +00:00
Howard Chu
4e22081e02 ITS#5745 report errors in shutdown processing 2008-11-03 13:23:05 +00:00
Howard Chu
9d5de25b5b ITS#5745 long-lived TXNs must be closed before DBs 2008-11-03 13:00:00 +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
1214d24cc0 ITS#5709 forgot to commit this with syncprov.c 2008-11-02 22:16:20 +00:00
Pierangelo Masarati
52e28a9ece add dontUseCopy and proxiedAuthz "non_critical" disallow switches (ITS#5785) 2008-11-02 21:38:10 +00:00
Pierangelo Masarati
21ddf6193d controls can always have criticality set to FALSE (ITS#5785) 2008-11-02 21:06:50 +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
Howard Chu
ad8180b3b9 Fix ITS#5709, use original pending list 2008-11-02 07:46:46 +00:00
Pierangelo Masarati
7ad03166b6 add "What Failed?" LDAP control (ITS#5784) 2008-11-01 15:15:57 +00:00
Howard Chu
fa245f7491 ITS#5781 fix modification of MV attrs with no EQ rule 2008-10-30 18:22:11 +00:00
Pierangelo Masarati
00accc69c4 check the length of the value with the right index (blind fix to ITS#5779) 2008-10-30 14:03:47 +00:00
Howard Chu
66be548b58 ITS#5774 blind fix for Windows, please test 2008-10-29 13:14:10 +00:00
Hallvard Furuseth
93c75ea669 Cleanup: Move snprintf preformatting into unused Statslog() argument 2008-10-28 22:27:53 +00:00
Pierangelo Masarati
ffb66f41bb anticipate Statslog to avoid using dangling pointers (ITS#5775) - HEADS-UP: now 'ENTRY dn=' may appear also in case the PDU can't be sent 2008-10-28 22:02:01 +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
248dd83add Plug memory leak with dn.regex. Force error for "dn.=pattern". Cleanup. 2008-10-24 18:22:54 +00:00
Hallvard Furuseth
0f22e6bb04 More ITS#5734: Handle empty o_req_ndn. flags=>flags&LDAP_LIMITS_MASK in a test. 2008-10-24 18:16:43 +00:00
Hallvard Furuseth
dffe8d37fa ITS#5770: Fix unaligned BerElements: Use BerElementBuffer, not char[size]. 2008-10-24 17:52:05 +00:00
Hallvard Furuseth
db5943fbd6 ITS#4467: Fix snprintf/WHATSLEFT buffer overflow tests.
Also make WHATSLEFT unsigned.
2008-10-24 13:16:06 +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
faddae3a0e check for overflows 2008-10-22 23:37:34 +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
a4598d1df7 olcLogFile missing from olcGlobal (ITS#5765) 2008-10-22 11:54:46 +00:00
Hallvard Furuseth
ee6a9f238e ITS#4467: Fix buffer overflow tests with snprintf / 'unsigned WHATSLEFT'<=0.
Add ptr_APPEND_*. Rename limits_unparse:lm->style, make type/style unsigned.
2008-10-21 19:00:44 +00:00
Hallvard Furuseth
59c4d9fad9 Cleanup:
Add lmpats_out[] to simplify limits2str().  Wrap both in #ifdef LDAP_DEBUG.
Change char *lmpats[] to struct berval[].  Remove always-true compare.
Readability: Add STRSTART, rearrange limits_get, fix comments & long lines.
2008-10-21 18:57:16 +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
Howard Chu
49ed07558b ITS#5755 values from slapd.conf aren't all strictly validated; detect and
report syntax errors when generating LDAP format.
2008-10-21 04:42:25 +00:00
Hallvard Furuseth
34e8048136 ITS#5734: Search limits by baseDN - limits dn.this="..." 2008-10-21 00:04:44 +00:00
Pierangelo Masarati
4edb6c96e7 deal with known controls that need special handling of response (ITS#5757) 2008-10-20 23:51:59 +00:00
Pierangelo Masarati
c1119ec9b3 backout ITS#5758 commit 2008-10-20 23:19:07 +00:00
Pierangelo Masarati
e233a8e9ee NO-OP must be critical and apply to selected operations (ITS#5758) 2008-10-20 23:16:40 +00:00
Pierangelo Masarati
18e3573c81 declare support for read controls (ITS#5757) 2008-10-20 21:15:13 +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
3fff0a7919 Warning cleanup: signed meets unsigned: SASL struct propval {unsigned nvalues}. 2008-10-18 23:59:53 +00:00
Hallvard Furuseth
7cd654253e ITS#4467: Fix snprintf buffer overflow test for olcDbQuarantine output.
Overrides previous patch which partly fixed it: it was a no-op test before.
2008-10-18 23:49:28 +00:00
Hallvard Furuseth
db2172c5c9 Warning cleanup to ITS#5695/rev 1.453: signed meets unsigned. 2008-10-18 20:25:57 +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
d68ba23ab8 ITS#5750: Fix nameUIDPretty() bitstring in Name and Optional UID syntax.
Also update a comment about parsing this syntax.
2008-10-18 11:09:55 +00:00
Pierangelo Masarati
5d90231d2a apply Luca Tamburo's patch for Attribute Certificate and X.509 PMI support (with modifications, ITS#5695) 2008-10-18 08:33:40 +00:00
Hallvard Furuseth
e0952945d0 Warning cleanup: signed meets unsigned. 2008-10-18 07:21:27 +00:00
Hallvard Furuseth
6fbd42a90a Warning cleanup: Signed meets unsigned:
Change insertion index bdb_attr_slot(,, unsigned *ins) to int *ins.  This
index is signed elsewhere, including the index returned by the same function.
2008-10-17 23:35:44 +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
670ec4f938 Warning cleanup: signed meets unsigned. 2008-10-17 18:05:00 +00:00
Hallvard Furuseth
05bbe7833b Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.)
Warning cleanup: signed meets unsigned.
2008-10-17 18:02:09 +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
Pierangelo Masarati
23f78d1bba leave rs struct untouched (ITS#5742) 2008-10-17 00:06:12 +00:00
Pierangelo Masarati
bbe6e77876 fix indentation 2008-10-17 00:03:53 +00:00
Pierangelo Masarati
515733a656 make sure sr_entry is not used if unset (ITS#5742) 2008-10-17 00:03:17 +00:00
Pierangelo Masarati
4f26be5cf6 fix parsing of read entry control (ITS#5741) 2008-10-17 00:02:13 +00:00
Howard Chu
72a9d87fec BDB_PAGESIZE not used any more, use BDB/FS default instead 2008-10-15 10:45:31 +00:00
Howard Chu
3be39979ea Add checksum keyword to enable DB checksum validation 2008-10-15 08:13:56 +00:00
Howard Chu
81ed60c056 Add dbpagesize keyword for configuring DB file page sizes 2008-10-15 07:41:57 +00:00
Hallvard Furuseth
742f3a2a2c Warning cleanup: signed meets unsigned. 2008-10-13 14:54:27 +00:00
Hallvard Furuseth
7b3bdf2185 Warning cleanup: signed meets unsigned. ber_flatten2() returns -1 on
error, not LBER_ERROR.
2008-10-13 10:18:15 +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
6f39252bd0 Warning cleanup: signed meets unsigned. 2008-10-13 08:35:31 +00:00
Hallvard Furuseth
e8afbb70fc Warning cleanup: signed meets unsigned. 2008-10-13 08:29:21 +00:00
Hallvard Furuseth
182c2931c4 Warning cleanup: signed meets unsigned. 2008-10-13 08:19:13 +00:00
Hallvard Furuseth
3b90f84422 Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.)
Warning cleanup: Missing braces in initialization. signed meets unsigned.
2008-10-13 07:55:02 +00:00
Hallvard Furuseth
3c7d9415b4 Warning cleanup: Missing braces in initialization. 2008-10-13 06:20:12 +00:00
Hallvard Furuseth
27d6497c33 Warning cleanup: Missing braces in initialization. 2008-10-13 05:44:55 +00:00
Hallvard Furuseth
c2a317415c Fix r1.86 (LDAP_DEVEL:SLAP_CONFIG_DELETE): No declarations after code. 2008-10-13 05:31:52 +00:00
Pierangelo Masarati
1421d522ad fix overlays with private instances of databases (ITS#5736) 2008-10-12 20:20:46 +00:00
Pierangelo Masarati
4e276f882c allow private databases to be instantiated by global overlays (ITS#5735) 2008-10-12 20:20:01 +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
faadcf3908 ITS#5730, patch for #5728 broke referrals 2008-10-08 21:33:45 +00:00
Howard Chu
16710f4ed4 Fix dn2idl when suffix = "" 2008-10-07 22:52:59 +00:00
Howard Chu
95d472aa98 ITS#5729 check for NULL bei_parent 2008-10-07 22:16:15 +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
Howard Chu
599d83c7cd ITS#5728 release entries before send_ldap_ber() 2008-10-07 00:29:54 +00:00
Rein Tollevik
f1f9a6280a ITS#5726: Revert 1.392, the runqueue must always be inspected. 2008-10-05 22:35:44 +00:00
Pierangelo Masarati
bc09f6e8ad open database using the real structure (partial fix to ITS#5724) 2008-10-05 21:11:13 +00:00
Rein Tollevik
c5f584e62b Revert 1.410, i.e back to lock again. ITS#5725 fixes the lock situation. 2008-10-05 19:29:00 +00:00
Rein Tollevik
d2c08ebb4f ITS#5725: Don't enable connection for events twice. 2008-10-05 19:17:56 +00:00