Commit Graph

10086 Commits

Author SHA1 Message Date
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