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
Gavin Henry
9b393c7040
(ITS#5806) slapo-syncprov man page and syncprov-sessionlog
2008-11-13 22:06:21 +00:00
Hallvard Furuseth
fda00af4c1
ITS#5408: Support back-ldif
2008-11-12 01:00:56 +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
aeec87eed4
Move LDAP_CONTROL_X_WHATFAILED and LDAP_CONTROL_X_DEREF from behind #devel
2008-11-11 01:05:22 +00:00
Quanah Gibson-Mount
1c0410cf5d
Regenerate for the deref overlay
2008-11-11 00:18:39 +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
Quanah Gibson-Mount
09438f3d30
Set add_content_acl to on
2008-11-10 22:58:23 +00:00
Howard Chu
dd809b26c6
ITS#4556 clarify Add requirements
2008-11-10 22:29:02 +00:00
Howard Chu
97c77e0d08
Fix typos
2008-11-10 22:21:02 +00:00
Howard Chu
f136de0a75
ITS#4556 add_content_acl keyword
2008-11-10 22:18:12 +00:00
Howard Chu
b613ab25b0
ITS#4556 allow Add content checking to be configured per-DB
2008-11-10 22:10:19 +00:00
Quanah Gibson-Mount
34d1b413a2
fix missing cvs revision header
2008-11-10 19:49:04 +00:00
Ralf Haferkamp
8e358f214c
corrected filter and search limits in uid2dn function (ITS#5802)
2008-11-10 15:45:01 +00:00
Ralf Haferkamp
def11e2fce
Fixed "nssov-map" handling when using slapd.conf (ITS#5801)
2008-11-10 14:48:06 +00:00
Ralf Haferkamp
1d468467e6
Don't crash on empty groups (ITS#5800)
2008-11-10 14:24:29 +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
Ralf Haferkamp
93f3ae50db
Adapt to recent changes in filter_free_x() interface
2008-11-07 13:38:30 +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
47a57bd6d4
more clarifications
2008-11-05 01:27:23 +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
36124c715a
ITS#5789 GNUtls - allow CN matches against IP addresses
2008-11-04 11:21:52 +00:00
Howard Chu
24078323e2
ITS#5739 fix for ITS#4879 was too eager about IPv6 detection
2008-11-03 15:44:49 +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
Pierangelo Masarati
4a1db6067f
fix response criticality
2008-11-03 10:41:05 +00:00