]>
git.sur5r.net Git - openldap/log
Hallvard Furuseth [Wed, 12 Nov 2008 00:03:55 +0000 (00:03 +0000)]
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.
Hallvard Furuseth [Tue, 11 Nov 2008 23:59:43 +0000 (23:59 +0000)]
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.
Hallvard Furuseth [Tue, 11 Nov 2008 23:49:00 +0000 (23:49 +0000)]
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.
Hallvard Furuseth [Tue, 11 Nov 2008 23:42:32 +0000 (23:42 +0000)]
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.
Hallvard Furuseth [Tue, 11 Nov 2008 23:22:24 +0000 (23:22 +0000)]
ITS#5408 part 5 - handle modrdn file error. Move entry/subtree back if needed.
Add move_dir() macro, matching move_file().
Hallvard Furuseth [Tue, 11 Nov 2008 23:16:22 +0000 (23:16 +0000)]
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.
Hallvard Furuseth [Tue, 11 Nov 2008 23:06:07 +0000 (23:06 +0000)]
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.
Hallvard Furuseth [Tue, 11 Nov 2008 23:00:18 +0000 (23:00 +0000)]
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.
Hallvard Furuseth [Tue, 11 Nov 2008 22:53:41 +0000 (22:53 +0000)]
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.
Howard Chu [Tue, 11 Nov 2008 22:10:28 +0000 (22:10 +0000)]
ITS#5572 retrieve main DB's ACL before relevant operations
Howard Chu [Tue, 11 Nov 2008 21:40:39 +0000 (21:40 +0000)]
ITS#5572 cleanup unneeded code
Quanah Gibson-Mount [Tue, 11 Nov 2008 21:09:28 +0000 (21:09 +0000)]
ITS#5572 from Rein
Pierangelo Masarati [Tue, 11 Nov 2008 18:01:35 +0000 (18:01 +0000)]
eat all the substrings assertion if the attribute type does not support substrings matching (ITS#5803)
Quanah Gibson-Mount [Tue, 11 Nov 2008 01:05:22 +0000 (01:05 +0000)]
Move LDAP_CONTROL_X_WHATFAILED and LDAP_CONTROL_X_DEREF from behind #devel
Quanah Gibson-Mount [Tue, 11 Nov 2008 00:18:39 +0000 (00:18 +0000)]
Regenerate for the deref overlay
Quanah Gibson-Mount [Mon, 10 Nov 2008 23:15:35 +0000 (23:15 +0000)]
Fix missing CVS revision header
Quanah Gibson-Mount [Mon, 10 Nov 2008 23:14:13 +0000 (23:14 +0000)]
Fix missing CVS revision tag
Quanah Gibson-Mount [Mon, 10 Nov 2008 22:58:23 +0000 (22:58 +0000)]
Set add_content_acl to on
Howard Chu [Mon, 10 Nov 2008 22:29:02 +0000 (22:29 +0000)]
ITS#4556 clarify Add requirements
Howard Chu [Mon, 10 Nov 2008 22:21:02 +0000 (22:21 +0000)]
Fix typos
Howard Chu [Mon, 10 Nov 2008 22:18:12 +0000 (22:18 +0000)]
ITS#4556 add_content_acl keyword
Howard Chu [Mon, 10 Nov 2008 22:10:19 +0000 (22:10 +0000)]
ITS#4556 allow Add content checking to be configured per-DB
Quanah Gibson-Mount [Mon, 10 Nov 2008 19:49:04 +0000 (19:49 +0000)]
fix missing cvs revision header
Ralf Haferkamp [Mon, 10 Nov 2008 15:45:01 +0000 (15:45 +0000)]
corrected filter and search limits in uid2dn function (ITS#5802)
Ralf Haferkamp [Mon, 10 Nov 2008 14:48:06 +0000 (14:48 +0000)]
Fixed "nssov-map" handling when using slapd.conf (ITS#5801)
Ralf Haferkamp [Mon, 10 Nov 2008 14:24:29 +0000 (14:24 +0000)]
Don't crash on empty groups (ITS#5800)
Howard Chu [Sat, 8 Nov 2008 16:48:48 +0000 (16:48 +0000)]
ITS#5798, don't use per-DB schema-check flag
Pierangelo Masarati [Sat, 8 Nov 2008 10:39:45 +0000 (10:39 +0000)]
exactly one ID can match (ITS#5791; further fix previous commit)
Ralf Haferkamp [Fri, 7 Nov 2008 13:38:30 +0000 (13:38 +0000)]
Adapt to recent changes in filter_free_x() interface
Howard Chu [Thu, 6 Nov 2008 21:10:25 +0000 (21:10 +0000)]
ITS#5710 fix stupid updateCookie hack, use explicit o_dont_replicate flag
Howard Chu [Thu, 6 Nov 2008 16:58:03 +0000 (16:58 +0000)]
ITS#5794 move prev fix
Howard Chu [Thu, 6 Nov 2008 16:47:05 +0000 (16:47 +0000)]
ITS#5794 NUL-terminate old pw before checking
Howard Chu [Thu, 6 Nov 2008 16:27:01 +0000 (16:27 +0000)]
ITS#5783 / 5795 fix undef_promote
Pierangelo Masarati [Wed, 5 Nov 2008 01:27:23 +0000 (01:27 +0000)]
more clarifications
Pierangelo Masarati [Tue, 4 Nov 2008 12:16:23 +0000 (12:16 +0000)]
lookup entry id when equality on entryDN (ITS#5791; fixes previous commit)
Pierangelo Masarati [Tue, 4 Nov 2008 12:07:47 +0000 (12:07 +0000)]
lookup entry id when equality on entryDN (proposed fix for ITS#5791; does not work for back-hdb, though)
Pierangelo Masarati [Tue, 4 Nov 2008 11:54:19 +0000 (11:54 +0000)]
don't allow indexing of entryDN (ITS#5790)
Howard Chu [Tue, 4 Nov 2008 11:21:52 +0000 (11:21 +0000)]
ITS#5789 GNUtls - allow CN matches against IP addresses
Howard Chu [Mon, 3 Nov 2008 15:44:49 +0000 (15:44 +0000)]
ITS#5739 fix for ITS#4879 was too eager about IPv6 detection
Howard Chu [Mon, 3 Nov 2008 13:23:05 +0000 (13:23 +0000)]
ITS#5745 report errors in shutdown processing
Howard Chu [Mon, 3 Nov 2008 13:00:00 +0000 (13:00 +0000)]
ITS#5745 long-lived TXNs must be closed before DBs
Pierangelo Masarati [Mon, 3 Nov 2008 10:41:05 +0000 (10:41 +0000)]
fix response criticality
Howard Chu [Mon, 3 Nov 2008 04:39:36 +0000 (04:39 +0000)]
Another typo
Howard Chu [Mon, 3 Nov 2008 04:37:59 +0000 (04:37 +0000)]
Fix typo in prev commit
Pierangelo Masarati [Sun, 2 Nov 2008 23:48:16 +0000 (23:48 +0000)]
parallel load test (ITS#5709)
Howard Chu [Sun, 2 Nov 2008 23:06:10 +0000 (23:06 +0000)]
Add DBFLAG_CLEAN for a DB that was cleanly shut down; don't bother
scanning to verify contextCSN for clean shutdowns (ITS#5640)
Howard Chu [Sun, 2 Nov 2008 22:16:20 +0000 (22:16 +0000)]
ITS#5709 forgot to commit this with syncprov.c
Pierangelo Masarati [Sun, 2 Nov 2008 21:57:17 +0000 (21:57 +0000)]
add dontUseCopy and proxiedAuthz "non_critical" disallow switches (ITS#5785)
Pierangelo Masarati [Sun, 2 Nov 2008 21:38:10 +0000 (21:38 +0000)]
add dontUseCopy and proxiedAuthz "non_critical" disallow switches (ITS#5785)
Pierangelo Masarati [Sun, 2 Nov 2008 21:06:50 +0000 (21:06 +0000)]
controls can always have criticality set to FALSE (ITS#5785)
Howard Chu [Sun, 2 Nov 2008 15:26:25 +0000 (15:26 +0000)]
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
Howard Chu [Sun, 2 Nov 2008 07:58:50 +0000 (07:58 +0000)]
be->be_pcl_mutexp superseded by be->bd_self
Howard Chu [Sun, 2 Nov 2008 07:46:46 +0000 (07:46 +0000)]
Fix ITS#5709, use original pending list
Pierangelo Masarati [Sat, 1 Nov 2008 17:20:38 +0000 (17:20 +0000)]
belongs more to informative refs
Pierangelo Masarati [Sat, 1 Nov 2008 16:55:45 +0000 (16:55 +0000)]
allow to override (more than one \!) specs requirements on control criticality (for testing purposes; do not advertise)
Pierangelo Masarati [Sat, 1 Nov 2008 15:15:57 +0000 (15:15 +0000)]
add "What Failed?" LDAP control (ITS#5784)
Pierangelo Masarati [Sat, 1 Nov 2008 14:42:39 +0000 (14:42 +0000)]
add "What Failed?" LDAP control (ITS#5784)
Pierangelo Masarati [Sat, 1 Nov 2008 14:38:23 +0000 (14:38 +0000)]
use example.com (RFC2606); mention OpenLDAP-assigned work-in-progress OID
Pierangelo Masarati [Sat, 1 Nov 2008 14:30:14 +0000 (14:30 +0000)]
more about ITS#5732
Howard Chu [Thu, 30 Oct 2008 18:22:11 +0000 (18:22 +0000)]
ITS#5781 fix modification of MV attrs with no EQ rule
Howard Chu [Thu, 30 Oct 2008 15:56:48 +0000 (15:56 +0000)]
ITS#5766 honor principal expiration
Pierangelo Masarati [Thu, 30 Oct 2008 14:16:22 +0000 (14:16 +0000)]
s/manageDIT/relax/ (ITS#5780)
Pierangelo Masarati [Thu, 30 Oct 2008 14:03:47 +0000 (14:03 +0000)]
check the length of the value with the right index (blind fix to ITS#5779)
Gavin Henry [Thu, 30 Oct 2008 13:49:11 +0000 (13:49 +0000)]
ITS#5759 whitespace vs white space - we now use whitespace.
Howard Chu [Wed, 29 Oct 2008 13:14:10 +0000 (13:14 +0000)]
ITS#5774 blind fix for Windows, please test
Hallvard Furuseth [Tue, 28 Oct 2008 22:27:53 +0000 (22:27 +0000)]
Cleanup: Move snprintf preformatting into unused Statslog() argument
Pierangelo Masarati [Tue, 28 Oct 2008 22:02:01 +0000 (22:02 +0000)]
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
Rein Tollevik [Tue, 28 Oct 2008 20:33:46 +0000 (20:33 +0000)]
ITS#5776 prevent duplicate removal of qtask from runqueue.
Pierangelo Masarati [Tue, 28 Oct 2008 16:56:20 +0000 (16:56 +0000)]
remove unnecessary restrictions; minor improvements
Pierangelo Masarati [Mon, 27 Oct 2008 20:21:40 +0000 (20:21 +0000)]
add Dereference Control I.D. (needs xml2rfc)
Pierangelo Masarati [Sun, 26 Oct 2008 20:47:11 +0000 (20:47 +0000)]
address ITS#5773 for slapo-rwm(); needs work
Pierangelo Masarati [Sun, 26 Oct 2008 19:29:36 +0000 (19:29 +0000)]
normalize rewritten DN-valued attrs (ITS#5772)
Pierangelo Masarati [Sun, 26 Oct 2008 19:24:10 +0000 (19:24 +0000)]
fix dangling pointer issue; cleanup as early as possible
Pierangelo Masarati [Sat, 25 Oct 2008 11:06:29 +0000 (11:06 +0000)]
don't rely on attribute values in the returned entry: the control may act on attribute values not requested
Hallvard Furuseth [Fri, 24 Oct 2008 18:57:38 +0000 (18:57 +0000)]
ITS#4467: Fix a few wrong uses of snprintf. Also drop an unneeded array init.
Hallvard Furuseth [Fri, 24 Oct 2008 18:22:54 +0000 (18:22 +0000)]
Plug memory leak with dn.regex. Force error for "dn.=pattern". Cleanup.
Hallvard Furuseth [Fri, 24 Oct 2008 18:16:43 +0000 (18:16 +0000)]
More ITS#5734: Handle empty o_req_ndn. flags=>flags&LDAP_LIMITS_MASK in a test.
Hallvard Furuseth [Fri, 24 Oct 2008 17:52:05 +0000 (17:52 +0000)]
ITS#5770: Fix unaligned BerElements: Use BerElementBuffer, not char[size].
Hallvard Furuseth [Fri, 24 Oct 2008 13:16:06 +0000 (13:16 +0000)]
ITS#4467: Fix snprintf/WHATSLEFT buffer overflow tests.
Also make WHATSLEFT unsigned.
Hallvard Furuseth [Fri, 24 Oct 2008 13:11:10 +0000 (13:11 +0000)]
ITS#4467: Fix ptr += snprintf buffer overflow tests (made out-of-range ptr).
Also avoid a buf[BUFSIZ] initialization.
Pierangelo Masarati [Fri, 24 Oct 2008 10:34:04 +0000 (10:34 +0000)]
forgot access control...
Pierangelo Masarati [Thu, 23 Oct 2008 00:14:34 +0000 (00:14 +0000)]
fix examples
Pierangelo Masarati [Wed, 22 Oct 2008 23:38:09 +0000 (23:38 +0000)]
tag optional stuff
Pierangelo Masarati [Wed, 22 Oct 2008 23:37:34 +0000 (23:37 +0000)]
check for overflows
Pierangelo Masarati [Wed, 22 Oct 2008 23:01:20 +0000 (23:01 +0000)]
slight fixes and improvements to previous commit
Pierangelo Masarati [Wed, 22 Oct 2008 22:19:49 +0000 (22:19 +0000)]
add support for (experimental) dereference control (ITS#5768); need to re-run autoconf (and autoheader?)
Pierangelo Masarati [Wed, 22 Oct 2008 21:58:59 +0000 (21:58 +0000)]
save one copy (please review)
Pierangelo Masarati [Wed, 22 Oct 2008 21:57:28 +0000 (21:57 +0000)]
missing $OpenLDAP$ header
Hallvard Furuseth [Wed, 22 Oct 2008 19:39:42 +0000 (19:39 +0000)]
ITS#5748: tavl_find3(NULL,,,) returned undefined data
Pierangelo Masarati [Wed, 22 Oct 2008 11:54:46 +0000 (11:54 +0000)]
olcLogFile missing from olcGlobal (ITS#5765)
Hallvard Furuseth [Tue, 21 Oct 2008 19:00:44 +0000 (19:00 +0000)]
ITS#4467: Fix buffer overflow tests with snprintf / 'unsigned WHATSLEFT'<=0.
Add ptr_APPEND_*. Rename limits_unparse:lm->style, make type/style unsigned.
Hallvard Furuseth [Tue, 21 Oct 2008 18:57:16 +0000 (18:57 +0000)]
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.
Ralf Haferkamp [Tue, 21 Oct 2008 16:17:41 +0000 (16:17 +0000)]
reset ld->ld_errno to avoid returning error codes of previously API calls (ITS#5762)
Pierangelo Masarati [Tue, 21 Oct 2008 11:30:04 +0000 (11:30 +0000)]
add optional URI to allow restricting the scope of application of a specific dynamic list expansion rule (ITS#5761)
Pierangelo Masarati [Tue, 21 Oct 2008 07:56:17 +0000 (07:56 +0000)]
preserve objectClasses not to be removed (ITS#5760)
Howard Chu [Tue, 21 Oct 2008 04:42:25 +0000 (04:42 +0000)]
ITS#5755 values from slapd.conf aren't all strictly validated; detect and
report syntax errors when generating LDAP format.
Hallvard Furuseth [Tue, 21 Oct 2008 00:04:44 +0000 (00:04 +0000)]
ITS#5734: Search limits by baseDN - limits dn.this="..."
Pierangelo Masarati [Mon, 20 Oct 2008 23:51:59 +0000 (23:51 +0000)]
deal with known controls that need special handling of response (ITS#5757)
Pierangelo Masarati [Mon, 20 Oct 2008 23:19:07 +0000 (23:19 +0000)]
backout ITS#5758 commit
Pierangelo Masarati [Mon, 20 Oct 2008 23:16:40 +0000 (23:16 +0000)]
NO-OP must be critical and apply to selected operations (ITS#5758)