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
Howard Chu
aa2fecc1fc
More deadlock propagation fixes
2008-10-01 21:28:03 +00:00
Howard Chu
babf624b23
Missed a deadlock check
2008-10-01 21:07:26 +00:00
Emmanuel Dreyfus
7a5b406cf1
Make sur attribute ACL are evaluated on ADD operations (see ITS#4556)
2008-09-29 22:08:29 +00:00
Rein Tollevik
fd190659a7
ITS#5719 Reset interval after rescheduling a paused task.
2008-09-29 20:01:40 +00:00
Pierangelo Masarati
9be58de517
fix ITS#5717
2008-09-29 18:45:39 +00:00
Pierangelo Masarati
43d0d989ef
allow intermixing of mapped/not mapped attrs (spotted while invstigating ITS#5717)
2008-09-29 17:38:12 +00:00
Pierangelo Masarati
71373cfdfe
change olcDbMode syntax from integer to sirectory string, and allow any commonly accepted form to set its value, including -rwxrwxrwx (ITS#5713)
2008-09-27 14:04:57 +00:00
Pierangelo Masarati
3ccdb86edb
allow definition of syntaxes via configuration, including X-SUBST (ITS#5663)
2008-09-27 13:30:43 +00:00
Pierangelo Masarati
13eb62e42f
make sure o_csn is freed
2008-09-27 11:06:31 +00:00
Pierangelo Masarati
7cc2acd111
fix previous commit (ITS#5711)
2008-09-27 10:34:52 +00:00
Pierangelo Masarati
a0e3e68a02
allow controls deletion to be deferred; pass response controls back to frontend in extops (ITS#5711)
2008-09-27 10:06:43 +00:00
Howard Chu
9f808bd4b6
Propagate deadlock results for internal searches on write ops
2008-09-25 13:39:53 +00:00
Howard Chu
fda5733477
Wait for read locks in read txns
2008-09-25 13:17:17 +00:00
Howard Chu
a49d43ca27
Revert 1.394, see ITS#5454. It still locks up without a trylock.
2008-09-25 10:31:49 +00:00
Ralf Haferkamp
4788d897d2
Use ConfigReply to return error messages to the client
2008-09-23 15:30:48 +00:00
Pierangelo Masarati
b03ac2c2a5
fix typo
2008-09-20 18:43:30 +00:00
Pierangelo Masarati
8a900b8784
add support for local RFC 3062 password modification extended operation (ITS#5656)
2008-09-20 15:01:12 +00:00
Hallvard Furuseth
f3e85d44da
Drop "if ( slap_known_controls )". That became an array in controls.c 1.117.
2008-09-19 20:37:11 +00:00
Pierangelo Masarati
68561435cc
add support for back-config delete; fix minor issues
2008-09-19 00:50:17 +00:00
Pierangelo Masarati
3d876e0fcc
add back-config support to slapo-retcode(5)
2008-09-19 00:09:56 +00:00
Pierangelo Masarati
d2c6714ebf
honor relax by not applying constraints (ITS#5705)
2008-09-18 21:12:13 +00:00
Pierangelo Masarati
d02c861ada
add support for constraining rename (ITS#5703)
2008-09-18 20:30:59 +00:00
Hallvard Furuseth
880a2888d8
Message waiting for N threads to terminate -> for N operations/tasks to finish
2008-09-18 19:50:32 +00:00
Pierangelo Masarati
a3176f5453
optional parameter that allows to restrict constraints to entries matching a LDAP URI (ITS#5704)
2008-09-17 20:59:58 +00:00
Pierangelo Masarati
151d5aec66
add "set" constraint type (ITS#5702)
2008-09-17 00:40:18 +00:00
Pierangelo Masarati
dc414747a7
silence warnings
2008-09-16 14:44:24 +00:00
Pierangelo Masarati
88055e8d54
don't hide standard track matching rules (more for ITS#5700)
2008-09-15 09:16:13 +00:00
Pierangelo Masarati
ff5b4d6c21
add support for certificateListExactMatch (RFC4523; ITS#5700)
2008-09-15 00:34:56 +00:00
Pierangelo Masarati
14bd1744b7
certificate handling cleanup
2008-09-15 00:24:40 +00:00
Ralf Haferkamp
7bec8b6b8b
stop and remove checkpoint task in _db_destroy (ITS#5698)
2008-09-12 09:53:40 +00:00
Howard Chu
e2722b0c94
ITS#5659 "collect" overlay enhancements
2008-09-11 00:29:56 +00:00
Howard Chu
92d39f7376
Fix prev commit
2008-09-10 03:35:26 +00:00
Howard Chu
2547212e43
ITS#5694 update context's entryCSN during log purges
2008-09-10 02:29:26 +00:00
Pierangelo Masarati
4aa9edf03e
cleanup round of memory handling (either check results or use ch_* calls; ITS#5691)
2008-09-09 19:58:47 +00:00
Pierangelo Masarati
661398337a
allow trying local bind when remote fails (ITS#5656)
2008-09-09 10:50:51 +00:00
Hallvard Furuseth
ff90e2f8d0
unique_search(): Print key->bv_val rather than key. Broke in r1.32 (ITS#5526).
2008-09-08 16:33:40 +00:00
Pierangelo Masarati
3d68853de5
fix one-time leak
2008-09-08 15:21:51 +00:00
Pierangelo Masarati
45e980391c
fix olcTranslucentLocal/Remote handling (ITS#5689)
2008-09-08 12:56:27 +00:00
Pierangelo Masarati
f7679377f9
always re-test filter after merging local and remote entries (ITS#5679)
2008-09-08 12:16:05 +00:00
Pierangelo Masarati
0009def716
implement X-SUBST substitute syntax extension (ITS#5663)
2008-09-08 00:10:18 +00:00
Pierangelo Masarati
1447d7fe17
don't risk using uninitialized vars
2008-09-08 00:05:15 +00:00
Pierangelo Masarati
7be50e74ec
if objectClass is not present (e.g. schema check is off, like for partial replicas, slapo-translucent and so), consider ocflags computed (and 0)
2008-09-06 18:06:41 +00:00
Pierangelo Masarati
b904d08f56
cleanup in case of failure during search rewriting (partial fulfilment of ITS#5687)
2008-09-06 16:25:03 +00:00
Pierangelo Masarati
57f9c8c8e9
be careful when restoring rewritten DN (partial fulfilment of ITS#5687)
2008-09-06 16:24:27 +00:00
Howard Chu
fe6f3683fa
ITS#5687 more cleanup fixes
2008-09-06 02:11:26 +00:00
Pierangelo Masarati
55cb219adc
NULL out spurious text (ITS#5688)
2008-09-06 00:00:37 +00:00
Ralf Haferkamp
db4c89db00
allow databases to be deleted (hidden behind LDAP_DEVEL)
2008-09-04 17:12:07 +00:00
Ralf Haferkamp
fcedf5bf83
don't dereference NULL pointer
2008-09-04 16:05:55 +00:00
Ralf Haferkamp
86005f581e
A new entry's index should not be larger than the number of its siblings (ITS#5684)
2008-09-04 13:56:31 +00:00
Pierangelo Masarati
1355e605d5
Don't leak syntax oid macro in case of duplicate attribute (ITS#5683)
2008-09-04 12:19:05 +00:00
Pierangelo Masarati
dae38c56cd
let undefined objectClasses be used in proxy filters
2008-09-04 10:13:30 +00:00
Pierangelo Masarati
374d8f85ae
NUL-terminate undefined objectClass soc_cname (ITS#5682)
2008-09-04 10:12:01 +00:00
Pierangelo Masarati
969a0aef0e
canonicalize undef objectClass names (much like attributes; ITS#5681)
2008-09-04 08:05:17 +00:00
Pierangelo Masarati
8141cd4db7
make additional checking optional (more on ITS#5860)
2008-09-04 07:43:19 +00:00
Pierangelo Masarati
f01e184377
don't cache queries that would not be answered correctly because of schema issues (ITS#5680)
2008-09-04 00:05:26 +00:00
Pierangelo Masarati
549134d514
don't dereference NULL pointers (ITS#5676)
2008-09-02 20:58:34 +00:00
Pierangelo Masarati
f4b98b256c
use the most recent contextCSN (ITS#5675)
2008-09-02 20:35:51 +00:00
Howard Chu
bfdb93f80b
ITS#5578 signed/unsigned comparison
2008-08-31 00:38:07 +00:00
Pierangelo Masarati
605fa77265
no need to unescape/re-escape each line (more on ITS#5608)
2008-08-30 15:00:05 +00:00
Pierangelo Masarati
03793fd9f4
implement caseIgnoreListMatch (ITS#5608)
2008-08-30 14:30:31 +00:00
Howard Chu
e5b96f2c76
Avoid deadlocks on reader txns
2008-08-27 22:28:16 +00:00
Howard Chu
ece2a4daa6
Use read-only txn's instead of read lockers. Support BDB 4.4-4.7
2008-08-27 01:45:35 +00:00
Howard Chu
8385813a5a
Fix dynamic module init
2008-08-26 22:25:35 +00:00
Howard Chu
f6edefa25d
Add back-ndb
2008-08-26 21:48:17 +00:00
Pierangelo Masarati
c32cbed9ae
fix attribute list swapping when NULL (ITS#5665)
2008-08-23 11:08:41 +00:00
Pierangelo Masarati
0e6054d861
[blind commit] better logging; check schema data before manipulation (related to ITS#5653)
2008-08-21 22:07:29 +00:00
Pierangelo Masarati
c97ef0a708
don't return entry if requested attr is not present (ITS#5650)
2008-08-09 16:04:55 +00:00
Pierangelo Masarati
03b105339a
handle anonymous before doing mallocs
2008-08-09 15:41:55 +00:00
Pierangelo Masarati
46983312c3
fix log message
2008-08-09 15:41:22 +00:00
Howard Chu
d4216935d7
ITS#5618 log Search result errors, force Deref to Never
2008-08-09 13:15:54 +00:00
Pierangelo Masarati
a8dcb36efb
don't strip set string (ITS#5627)
2008-08-09 12:50:18 +00:00
Pierangelo Masarati
ddb43b83d4
don't copy strings if not necessary
2008-08-09 12:49:44 +00:00
Pierangelo Masarati
c74a92fe50
fix continuation checking in dynacl (ITS#5637)
2008-08-09 12:27:57 +00:00
Pierangelo Masarati
7bef2ffdf6
optimize ACI check (ITS#5636)
2008-08-09 12:26:17 +00:00
Pierangelo Masarati
4d71b2f9c0
make sure objectClass is not filtered out by 'map attribute *' (ITS#5647)
2008-08-09 10:54:31 +00:00
Pierangelo Masarati
bb4268a646
make sure objectClass is not filtered out by 'rwm-map attribute *' (ITS#5647)
2008-08-09 10:49:20 +00:00
Pierangelo Masarati
69d8588ab4
suffix must be defined before overlay configuration (ITS#5641)
2008-08-09 10:29:31 +00:00
Pierangelo Masarati
191d8204a3
really check if filter is valid...(more on ITS#5581)
2008-08-09 10:20:46 +00:00
Howard Chu
f73ce85027
ITS#5649 fix overlay_register_control
2008-08-09 10:11:41 +00:00
Howard Chu
01686daa4d
ITS#5642 don't inherit custom attributes
2008-08-06 01:11:13 +00:00
Pierangelo Masarati
80df2a2906
fix normalizable/non-normalizable attr mapping \& merging (ITS#5624)
2008-08-04 21:20:06 +00:00
Pierangelo Masarati
785fafa36e
defer relayed database lookup (ITS#5643)
2008-08-04 21:17:25 +00:00
Pierangelo Masarati
afbef0b035
fix check for single-field firstComponentMatch normalization (ITS#5634)
2008-08-04 21:06:37 +00:00
Quanah Gibson-Mount
5d3e5ecbd9
Fix missing space
2008-07-24 22:41:22 +00:00
Pierangelo Masarati
d50ba575fe
s/o_dn/o_ndn/ (ITS#5622)
2008-07-19 11:27:10 +00:00
Pierangelo Masarati
adc358f664
free filter before overlays' cleanup callback
2008-07-15 12:31:08 +00:00
Pierangelo Masarati
d0dd945882
fix potential leak in previous commit
2008-07-15 08:54:41 +00:00
Pierangelo Masarati
5c53e3ad72
improve previous commit (ITS#5614)
2008-07-14 22:44:01 +00:00
Pierangelo Masarati
30ffa33d7e
do not propagate undefined or otherwise broken search filters (ITS#5614)
2008-07-14 22:14:49 +00:00
Pierangelo Masarati
ab3388aa93
improve diagnostics
2008-07-12 17:58:11 +00:00
Pierangelo Masarati
65cfb058cb
don't close invalid sockets (blind fix to ITS#5606)
2008-07-12 16:31:34 +00:00
Pierangelo Masarati
9c5b22ceda
remove data when freed (blind fix to ITS#5607)
2008-07-12 16:26:27 +00:00
Pierangelo Masarati
18a333bfcf
trim extra brackets (ITS#5609); NULL-terminate string
2008-07-12 16:03:31 +00:00
Pierangelo Masarati
f48d99cb77
fix quarantine (ITS#5592)
2008-07-12 15:22:39 +00:00
Pierangelo Masarati
e6446d3113
make sure rwm_op_cleanup() is called also in case of bind (in partial fulfillment of ITS#5601)
2008-07-12 11:53:49 +00:00
Howard Chu
f911e0f5d1
ITS#5569 ignore internal ops when validating pwd modify
2008-07-08 19:02:38 +00:00
Rein Tollevik
a42c7f96f5
ITS#5600 Replace objectClass, delete/add can fail if superior is added.
2008-07-08 13:55:09 +00:00
Howard Chu
4af6e9c4c6
Fix 1.40, release entry with same backend that obtained it
2008-07-08 06:00:32 +00:00
Pierangelo Masarati
c6f12694fc
allow proxies to filter out search references (ITS#5593)
2008-07-07 21:25:59 +00:00
Rein Tollevik
f94cd4b518
ITS#5597 fix CSN compare when provider has CSNs with other sids.
2008-07-06 14:15:42 +00:00
Howard Chu
9b25fa4c38
ITS#5578 fix binary search
2008-07-05 23:26:41 +00:00
Rein Tollevik
99d004189a
ITS#5596 contextCSN updates are internal operations.
2008-07-04 23:44:39 +00:00
Pierangelo Masarati
103c7b48e2
allow olcSpReloadHint in olcSyncProvConfig (ITS#5591)
2008-07-02 22:37:34 +00:00
Howard Chu
731aad4c4d
ITS#5589 delcsn / NULL cookie
2008-07-02 16:27:17 +00:00
Pierangelo Masarati
be9d79d2a7
fix serialNumber and issuer parsing (ITS#5588)
2008-07-01 23:06:01 +00:00
Howard Chu
34d074930c
ITS#5584 - treat empty Replace like Delete
2008-07-01 11:48:10 +00:00
Howard Chu
4e21f65ec0
Fix prev commit
2008-06-30 23:16:02 +00:00
Pierangelo Masarati
292b96c4e1
extra needed by config (ITS#5355)
2008-06-30 10:01:41 +00:00
Howard Chu
a5d0e36798
ITS#5571 prevent Adds from displacing {0}config
2008-06-29 22:48:40 +00:00
Howard Chu
f25436af80
Fix entry insert order
2008-06-29 22:26:59 +00:00
Pierangelo Masarati
48855fcdef
make sure the strfilter is in normal form (ITS#5581)
2008-06-29 22:19:14 +00:00
Howard Chu
17af50abf3
syntax oid macros added
2008-06-29 21:53:29 +00:00
Pierangelo Masarati
b4894ccd81
don't lookup dg* attrs more than needed (ITS#5583)
2008-06-29 21:50:05 +00:00
Howard Chu
010295e9e7
More symbols for ITS#5355
2008-06-29 21:13:03 +00:00
Howard Chu
27867de8ad
ITS#5383 - forgot to change configContext OID
2008-06-29 03:56:15 +00:00
Howard Chu
b86714cfb2
ITS#5440 add eq rules for olcRootDN / olcSchemaDN
2008-06-29 03:42:46 +00:00
Howard Chu
417ab52d45
ITS#5540 check for structural_class() failures
2008-06-29 03:35:54 +00:00
Rein Tollevik
e5dfb18abc
ITS#5564 ignore clients contextCSN when doing full reload.
2008-06-18 19:38:39 +00:00
Rein Tollevik
82cb2a1f05
ITS#5563 don't die if there are no listeners when matching serverID URL.
2008-06-16 14:45:30 +00:00
Pierangelo Masarati
a64b74b014
handle negative caching (ITS#5546)
2008-06-14 15:05:00 +00:00
Pierangelo Masarati
fa612acf41
if there is only one member_ad, and it's not mapped, consider it as old-style member listing
2008-06-14 12:39:47 +00:00
Howard Chu
04c841209d
ITS#5558 fix buffer count
2008-06-14 02:50:59 +00:00
Howard Chu
cd5e10250a
ITS#5557 plug leak from skipping over rset value
2008-06-13 23:06:50 +00:00
Rein Tollevik
06379f9cf9
ITS#5548 use syncrepl Connection when evaluating filter and acl.
2008-06-13 15:55:01 +00:00
Ralf Haferkamp
2688180f95
Allow unquoted DNs with whitespaces (ITS#5552)
2008-06-12 21:12:35 +00:00
Ralf Haferkamp
b3b2aa70f3
enable back-config delete support with LDAP_DEVEL
2008-06-12 11:51:05 +00:00
Ralf Haferkamp
3a0037cc53
Experimental code for delete support in back-config. Only overlays
...
supported currently.
2008-06-12 11:46:57 +00:00
Howard Chu
b13d108686
Config should presrve OID macros in attr syntax field as well
2008-06-05 18:41:14 +00:00
Pierangelo Masarati
f615fa44cf
pass ConfigReply to slapi overlay initialization
2008-05-31 18:44:40 +00:00
Ralf Haferkamp
9d72509d05
pass ConfigReply into overlay_config() to allow progating error messages
...
back through back-config
2008-05-30 14:49:24 +00:00
Howard Chu
83c16b8fc7
ITS#5337 fix maxcsn search at startup
2008-05-29 23:48:35 +00:00
Howard Chu
4b2c003907
More for ITS#5536
2008-05-29 23:31:05 +00:00
Howard Chu
a709d8b69a
Fix rev 1.220 - remove extra free_syncop()
2008-05-29 16:58:32 +00:00
Howard Chu
5a97371ef3
ITS#5536 send SID for glued DBs as well as multimaster
2008-05-29 01:46:19 +00:00
Howard Chu
684a213f0b
ITS#5488 from Rein Tollevik: propagate syncrepl contextCSN to providers
2008-05-28 02:46:35 +00:00
Howard Chu
b92472c3e4
ITS#5487 from Rein Tollevik: syncprov_findbase searched wrong backend
2008-05-28 02:45:18 +00:00
Howard Chu
d14ebfc070
ITS#5461 initialize rs->sr_tag, sr_msgid for Abandons too
2008-05-28 01:48:41 +00:00
Howard Chu
61a70b4f96
ITS#5403 fix sasl_ssf retrieval on 64 bit Solaris
2008-05-28 01:43:05 +00:00
Howard Chu
3c24f1f884
More for #5511
2008-05-27 22:39:12 +00:00
Pierangelo Masarati
88bc524422
s/PATH_MAX/MAXPATHLEN/ (ITS#5531)
2008-05-26 20:53:16 +00:00
Ralf Haferkamp
c8fcb58fbb
Allow updating (ADD/DEL within a single modify operation) the index
...
configuration of an attribute (ITS#5521)
2008-05-26 17:38:32 +00:00
Pierangelo Masarati
62904cf50d
allow to customize the modifiersName of internal modifications (partially addresses ITS#5505)
2008-05-24 11:57:18 +00:00
Howard Chu
61198ee41c
Fix prev commit
2008-05-23 16:48:46 +00:00
Howard Chu
cd7227b4c6
ITS#5511 make room for filter's terminating NUL character
2008-05-23 15:40:15 +00:00
Howard Chu
9d787d8d42
ITS#5489 move assert
2008-05-23 15:29:12 +00:00
Howard Chu
a572267f60
ITS#5526 cleanup config structs
2008-05-23 11:47:37 +00:00
Pierangelo Masarati
ffffa52470
revert test logic
2008-05-22 17:43:12 +00:00
Howard Chu
4c8efee4a6
Fix bei_state access
...
http://www.openldap.org/lists/openldap-devel/200805/msg00073.html
2008-05-19 16:19:59 +00:00
Howard Chu
b6b3461cf9
Do connections_init() sooner
2008-05-18 15:58:10 +00:00
Pierangelo Masarati
7db4c6dabc
fix comment
2008-05-17 11:56:10 +00:00
Pierangelo Masarati
91d337fb29
fix handling of multiple attrs in URI (ITS#5516)
2008-05-17 11:55:50 +00:00
Pierangelo Masarati
20e8da9ba7
lookup entries as LDAP_REQ_SEARCH (ITS#5513)
2008-05-17 11:36:44 +00:00
Hallvard Furuseth
08e2ce2d1d
parenthesize some macro args
2008-05-17 00:05:54 +00:00
Howard Chu
96d5ed5bc5
ITS#5465 ignore ops without queued CSNs
2008-05-13 21:57:19 +00:00
Howard Chu
c7a49fcfc5
ITS#5506 reset op2.o_extra
2008-05-12 18:33:05 +00:00
Howard Chu
8921793615
ITS#5503 integerFilter keys were not terminated
2008-05-10 00:28:03 +00:00
Emmanuel Dreyfus
a837855068
Fix an error in debug message, and correctly keep track of attribute count
...
after a mod_replace
2008-05-09 21:49:47 +00:00
Emmanuel Dreyfus
8768d99013
Add attribute size and count constraints to slapo-constaint
...
Approved by Ando
Usage example:
overlay constraint
constraint_attribute jpegPhoto size 131072
constraint_attribute userPassword count 3
2008-05-09 12:59:16 +00:00
Howard Chu
9ce205818e
ITS#5493 always send cookie with delta-sync entries
2008-05-09 01:51:26 +00:00
Howard Chu
db693093a1
Use network-timeout instead
2008-05-09 00:08:19 +00:00
Howard Chu
f488fa060a
Use underscore in network_timeout
2008-05-08 13:15:40 +00:00
Howard Chu
198b14be90
ITS#5486, fix rev 1.219. Must never use s_op directly, must always use
...
a copy.
2008-05-06 03:03:47 +00:00
Howard Chu
b2a0eb7075
Fix prev commit
2008-05-01 23:56:01 +00:00
Howard Chu
26172674b5
Cleanup extra debug in prev commit
2008-05-01 23:02:52 +00:00
Howard Chu
f37962d042
Propagate o_extra too
2008-05-01 22:55:29 +00:00
Howard Chu
aeedb72e91
Fix prev commit
2008-05-01 13:25:15 +00:00
Howard Chu
c91704d811
Use o_extra instead of o_private
2008-05-01 12:49:35 +00:00
Howard Chu
b0ffd08504
ITS#5490 callback stack may be NULL
2008-04-30 23:50:08 +00:00
Howard Chu
b94eac4778
Fix prev commit (again) - set in wrong order
2008-04-30 18:35:02 +00:00
Howard Chu
bdd493380d
Fix prev commit
2008-04-30 12:52:45 +00:00
Howard Chu
b16478a5ca
Avoid queueing response on abandoned psearches
2008-04-29 22:09:12 +00:00
Howard Chu
9b516293b9
Fix prev cache.c commit
2008-04-29 21:44:47 +00:00
Howard Chu
4673c99e96
More for ITS#5470, add csns to presence search filter in MMR
2008-04-29 01:05:09 +00:00
Pierangelo Masarati
2fe411e337
avoid potential deadlock?
2008-04-28 23:26:45 +00:00
Howard Chu
64315e3087
ITS#5451 glue deadlock fix
2008-04-28 12:53:04 +00:00
Howard Chu
a5037b4c5b
Fix comment typo
2008-04-28 11:20:34 +00:00
Howard Chu
a9d192df2b
Fix delete deadlock
2008-04-28 11:17:52 +00:00
Pierangelo Masarati
74ad5210c0
cleanup
2008-04-26 15:47:06 +00:00
Pierangelo Masarati
c965d2c86d
add mapping to dynamic attribute generation (patch by Emmanuel Dreyfus, with some rework; ITS#5466)
2008-04-26 15:42:01 +00:00
Howard Chu
90a45655c2
ITS#5484 remove syncop from runq before freeing it
2008-04-24 18:35:35 +00:00
Howard Chu
fd0699edf4
Fix typo in 1.389
2008-04-24 10:19:20 +00:00
Howard Chu
75eecdc539
ITS#5346 overlay_db_open needs to preserve the original *be.
2008-04-23 10:31:22 +00:00
Howard Chu
c0f5fad0f8
For ITS#5346 - reintroduce bd_self pointer (from 2008-03-13)
2008-04-23 10:23:00 +00:00
Pierangelo Masarati
a4d14fb2ef
missing numvals (ITS#5481)
2008-04-21 16:43:50 +00:00
Howard Chu
1af2849f7c
ITS#5470 also ignore presentlist if number of CSNs don't match
2008-04-19 23:27:49 +00:00
Pierangelo Masarati
49bb4d5633
fix typo in error message
2008-04-17 20:57:22 +00:00
Pierangelo Masarati
d198435c51
fix abstract class inheritance check (ITS#5474)
2008-04-17 20:49:59 +00:00
Howard Chu
26c3fd67b8
ITS#5470 ignore presentlist on partial multimaster refreshes
2008-04-17 01:42:40 +00:00
Howard Chu
f8a012cc83
Revert prev commit
2008-04-17 00:03:06 +00:00
Howard Chu
2abce97228
ITS#5470 don't return any data at all until we have a ctxcsn
2008-04-16 10:37:44 +00:00
Hallvard Furuseth
04a7b8bf70
For ITS#5408: Handle special chars in filenames, in particular on Windows.
...
When upgrading, may need to slapcat/slapadd the database if back-ldif
is used as a general backend with chars like ':' or Windows' special
chars in DNs.
2008-04-16 00:09:25 +00:00
Hallvard Furuseth
66bedd2962
For ITS#5408: Cleanup: No functionality change.
...
Change dn2path(), get_entry() and move_entry() prototypes/usage.
Remove unused statements/initializations. get_entry() now returns
a result code, reducing result code handling a bit.
2008-04-15 22:30:40 +00:00
Hallvard Furuseth
e67144ca7c
For ITS#5408: back-ldif cannot currently handle multiple database suffixes.
...
So make olcDbDirectory SINGLE-VALUE and set SLAP_DBFLAG_ONE_SUFFIX.
Take advantage of that in ldif_back_referrals().
2008-04-15 22:22:38 +00:00
Howard Chu
cfb478679f
ITS#5469 check earlier for write waiters
2008-04-15 22:17:50 +00:00
Pierangelo Masarati
66b581643f
make pseudoroot-bind-defer TRUE by default (part of ITS#5440 fix)
2008-04-12 11:33:48 +00:00
Howard Chu
19ad1e2a74
Cleanup prev commit
2008-04-11 12:20:01 +00:00
Howard Chu
61b5f6d652
ITS#5454 regular mutex lock is safe
2008-04-11 12:12:06 +00:00
Hallvard Furuseth
0669adf635
ITS#5340 fixes:
...
slap_send_ldap_result() when rs->sr_flags & REP_REF_MUSTBEFREED:
- Do not return with rs->sr_ref == <freed data>, set it to NULL instead.
- Plug memory leak when op->o_domain_scope || op->o_protocol<LDAP_VERSION3.
send_ldap_response():
- Paranoia: Reset REP_MATCHED_MUSTBEFREED and REP_REF_MUSTBEFREED,
in case the caller reuses the SlapReply without resetting the flags.
2008-04-10 12:54:11 +00:00
Hallvard Furuseth
eaec3a56e4
code cleanup: remove fake loop - vestige from 1.136, obsolete since 1.174
2008-04-09 18:24:22 +00:00
Howard Chu
204b035a9c
ITS#5383 use public OID for config schema, no more hiding
2008-04-09 15:22:23 +00:00
Howard Chu
d9dac0c8bc
ITS#5376, #5378 delta-sync should fallback in other cases too
2008-04-09 12:01:11 +00:00
Howard Chu
f0bb1739a7
ITS#5409 must reset pagedresults state if no cookie is provided
2008-04-09 03:08:38 +00:00
Howard Chu
91c23cbc4d
ITS#5455 be sure to reset bei_finders / bei_state
2008-04-09 00:12:08 +00:00
Hallvard Furuseth
9cdcd58afc
constify 1st arg to register_at()/register_at(), needed for config.h rev 1.50
2008-04-06 20:04:10 +00:00
Howard Chu
8027d8afb0
ITS#5454 proposed fix. May still need to change initial trylock to a
...
regular mutex_lock.
2008-04-05 00:45:59 +00:00
Howard Chu
d989f19668
ITS#5450 fully terminate value lists
2008-04-04 00:01:02 +00:00
Howard Chu
e1f518ef1c
ITS#5419 only Hidden DBs get special treatment
2008-04-03 10:04:56 +00:00
Howard Chu
626608f5f2
ITS#5437, #5444 if numcsns don't match, set changed flag
2008-04-03 08:43:48 +00:00
Howard Chu
77e7b92c87
ITS#5439 fix ID_NOCACHE handling
2008-04-03 08:02:11 +00:00
Howard Chu
f2de258e3d
ITS#5442 slapd_rq mutexes must always be used
2008-04-02 03:08:06 +00:00
Pierangelo Masarati
8cb162ef44
fix bitwise test (ITS#5445)
2008-03-31 16:58:03 +00:00
Pierangelo Masarati
f3eeb81458
a connection cannot be privileged and be in the avl tree at the same time (related to ITS#5440?)
2008-03-29 18:17:21 +00:00
Pierangelo Masarati
71cabe40c3
print targets' status
2008-03-29 18:16:34 +00:00
Pierangelo Masarati
f32f99211e
make stamp a long no matter what time_t is, to print it accordingly (ITS#5441)
2008-03-29 16:22:50 +00:00
Pierangelo Masarati
f049fbb206
avoid system call when not needed (ITS#5441)
2008-03-29 12:11:44 +00:00
Howard Chu
50a26bec0a
ITS#5434 again
2008-03-25 05:08:21 +00:00
Pierangelo Masarati
f696cecb77
work around paranoid check (ITS#5412)
2008-03-22 16:01:23 +00:00
Howard Chu
fc69e61be6
ITS#5432 don't send cookie with delete set if there's no true delete CSN
2008-03-21 00:09:24 +00:00
Howard Chu
c495cba4af
Add dn2id_get / modify support
2008-03-20 23:34:04 +00:00
Howard Chu
213c9358b8
ITS#5430 syncprov/glue can be used two different ways
2008-03-20 10:58:00 +00:00
Howard Chu
294da7ed11
ITS#5435 ConfigReply arg must be non-NULL
2008-03-20 01:24:33 +00:00
Howard Chu
261d2420f4
ITS#5434 search thru other overlays when present
2008-03-20 00:31:42 +00:00
Howard Chu
0abf40063f
ITS#5433 checkpoint must write to master DB
2008-03-20 00:26:14 +00:00
Howard Chu
d3e8df3940
ITS#5432 fix compare_csns loop conditions
2008-03-20 00:10:31 +00:00
Howard Chu
d711b538ad
do_syncrep1 always reads contextCSN from the main DB
2008-03-20 00:05:22 +00:00
Pierangelo Masarati
3196e65ff2
Add operation should not require naming attrs (ITS#5412)
2008-03-15 20:33:31 +00:00
Pierangelo Masarati
956b50645c
allow slapo-refint(5) to implement global referential integrity (ITS#5428)
2008-03-15 18:27:24 +00:00
Pierangelo Masarati
27a61d9411
use OID for dnSubtreeMatch (ITS#5427)
2008-03-15 18:22:25 +00:00
Pierangelo Masarati
14c425b922
s/leave/func_leave/ (ITS#5411)
2008-03-15 18:16:21 +00:00
Howard Chu
f77bd7ff6e
ITS#5426 replace the entire contextCSN in updateCookie
2008-03-14 18:00:09 +00:00
Howard Chu
4097d261bb
Use <ldap_queue.h> macros for prev commit
2008-03-14 16:49:53 +00:00
Howard Chu
bff19c4ac4
More for prev commit
2008-03-13 14:37:07 +00:00
Howard Chu
a55123477a
ITS#5419 introduce OpExtra / op->o_extra to supersede op->o_private
2008-03-13 13:14:52 +00:00
Howard Chu
0cb9cb04ea
ITS#5401 make sure connection is still alive before detaching op
2008-03-13 10:49:32 +00:00
Howard Chu
e3849e1a9c
Fix prev commit, check for NULL syncCookie
2008-03-13 07:30:56 +00:00
Howard Chu
b101dab6c6
More fixes for syncCookie updating
2008-03-13 07:02:26 +00:00
Howard Chu
86c4dca647
Partially revert prev, redundant.
2008-03-13 05:41:12 +00:00
Howard Chu
af80427965
In mirrormode, also ask syncprov for initial cookie. It may have been
...
cached from a recent update.
2008-03-13 05:18:28 +00:00
Pierangelo Masarati
d22b8532ee
s/leave/func_leave/ to avoid OSF1 name clashing (ITS#5411)
2008-03-12 22:45:18 +00:00
Pierangelo Masarati
5417aa895a
use the replication persistent search identity to check whether a modification must be replicated (ITS#5418)
2008-03-12 22:31:28 +00:00
Howard Chu
013f78090d
ITS#5413 fix typo
2008-03-12 02:57:49 +00:00
Hallvard Furuseth
cfc5c7cc68
ITS#5339: fix referral rewrite, remove pointless default_referral code
2008-03-10 19:28:40 +00:00
Howard Chu
a287573d2d
ITS#5407 more checks for pool pausing
2008-03-08 23:51:07 +00:00
Howard Chu
26c08cb64a
Fix prev commit (thanks Ando)
2008-03-08 22:12:57 +00:00
Pierangelo Masarati
ec8466ec83
invalidate connection handler when ldap_sasl_interactive_bind_s() for internal error (ITS#5404); fix response tag
2008-03-08 15:41:17 +00:00
Howard Chu
44b1af6e65
ITS#5405 fix race condition
2008-03-08 02:00:36 +00:00
Pierangelo Masarati
9ca53f98ed
fix attribute description parsing (ITS#5402)
2008-03-06 23:30:54 +00:00
Howard Chu
41379411a3
Revert prev commit, impacts too much to take advantage
2008-03-04 10:09:12 +00:00
Howard Chu
92e23b13bd
Add attr_free_x() - use memctx
2008-03-04 09:43:51 +00:00
Howard Chu
7b635c7054
Deleting, not yet ready for prime time...
2008-03-03 10:18:09 +00:00
Howard Chu
da6fdf70a4
MySQL NDB Cluster backend (experimental)
2008-03-02 15:14:53 +00:00
Pierangelo Masarati
b23e4f15a9
make sure orr_newrdn is passed correctly to libldap (ITS#5397)
2008-02-28 16:22:23 +00:00
Pierangelo Masarati
31f06b91af
don't try to dereference NULL pointer (ITS#5388)
2008-02-25 16:18:36 +00:00
Pierangelo Masarati
282fccbb3e
detect write errors (ITS#5387)
2008-02-25 16:14:45 +00:00
Howard Chu
ccaf69a7bc
Tweak order of operational attrs
2008-02-22 14:17:43 +00:00
Howard Chu
46273b9c4e
const strings
2008-02-18 23:11:12 +00:00
Pierangelo Masarati
a20f8b5f97
don't denormalize invalid values (ITS#5386)
2008-02-18 19:47:07 +00:00
Pierangelo Masarati
cd753a1f58
allow tracing of set failures
2008-02-17 22:35:29 +00:00
Pierangelo Masarati
4b72f44b14
fix optional URI attrs handling in sets (ITS#5384)
2008-02-17 22:33:54 +00:00
Pierangelo Masarati
2df4675ac3
don't set sm_nvalues unless required (ITS#5375)
2008-02-14 15:15:53 +00:00
Howard Chu
c8d5bcf0c7
ITS#5379 HAVE_TLS dependency
2008-02-14 11:18:22 +00:00
Quanah Gibson-Mount
b2b8a3a0bf
ITS#5376: Drop permissive modify, it isn't necessary
2008-02-13 19:02:57 +00:00
Howard Chu
ec5a7a9576
ITS#5376 must abandon current session before starting new refresh
2008-02-13 07:37:29 +00:00
Howard Chu
77618fae10
ITS#5376 modifies need to be permissive due to refresh/fallback sync
2008-02-13 07:09:18 +00:00
Howard Chu
947e3bbe1d
ITS#5376 - deltasync must fallback for missing entries
2008-02-13 04:36:58 +00:00
Howard Chu
8bfbbf6901
ITS#5373 allow delete/replace of userpassword without supplying new one
2008-02-12 22:53:25 +00:00
Howard Chu
20584e94f4
ITS#5370 slap_op_time mutex
2008-02-12 21:27:15 +00:00
Howard Chu
df1aa2fa89
Fix prev commit
2008-02-12 21:18:30 +00:00
Howard Chu
09e624ce6a
ITS#5374 don't perform mod_cleanup after a successful response
2008-02-12 20:57:05 +00:00
Howard Chu
f26657d81c
In do_syncrepl, don't wait if a previous syncrepl thread is still running.
2008-02-12 18:49:37 +00:00
Quanah Gibson-Mount
8a7ae2def9
Add missing CVS tags
2008-02-12 02:01:30 +00:00
Quanah Gibson-Mount
a2e10091f6
Fix missing CVS tag
2008-02-12 02:00:13 +00:00
Quanah Gibson-Mount
4928934137
Add missing cvs tag
2008-02-11 22:29:11 +00:00
Hallvard Furuseth
5b526d2544
ITS#5328 - cosmetic cleanup (0 -> LDAP_SUCCESS)
2008-02-11 21:07:25 +00:00
Hallvard Furuseth
64bda128c6
ITS#5328 - return LDAP result code from null_back_entry_get().
2008-02-11 21:05:12 +00:00
Hallvard Furuseth
61140d66a0
ITS#5328:
...
Do not send errors (other than referral) from ldif_back_referrals().
Return LDAP result code from ldif_back_entry_get().
2008-02-11 21:04:05 +00:00
Hallvard Furuseth
01ec3c64ea
ITS#5328 - do not send errors (other than referral) from be->be_chk_referrals()
2008-02-11 20:59:40 +00:00
Hallvard Furuseth
8a703aba83
ITS#5328 - return LDAP result code from config_back_entry_get (back-config bi_entry_get_rw)
2008-02-11 20:56:46 +00:00
Hallvard Furuseth
9ebe788370
ITS#5344: modrdn check for affectsMultipleDSAs and for new DN above/below self
2008-02-11 17:29:55 +00:00
Howard Chu
d64f5be105
ITS#5368 partially revert 1.239
2008-02-11 08:53:11 +00:00
Howard Chu
525f266d10
ITS#5367 revert prev commit
2008-02-11 00:19:43 +00:00
Hallvard Furuseth
84c2a01c3b
ITS#5364, thread pool efficiency:
...
Use ldap_pvt_thread_pool_pausing(): pause check for slapd without locking.
2008-02-10 16:25:05 +00:00
Howard Chu
ae471f78c3
ITS#5360 move tls option setup
2008-02-10 06:29:40 +00:00
Howard Chu
584c7fb8be
Debug info for CSN tracking (ITS#5362)
2008-02-10 02:18:22 +00:00
Howard Chu
32a082c24b
Cleanup
2008-02-10 02:10:28 +00:00
Howard Chu
99e1adc1f2
Cleanup debug msg, check for redundant updates
2008-02-10 02:08:08 +00:00
Howard Chu
5cfa1386ea
ITS#5362 syncrepl_updateCookie doesn't need to graduate_commit_csn, the
...
backends already do it.
2008-02-10 02:06:31 +00:00
Howard Chu
90e644a1e9
Cleanup bdb_next_id unused arg
2008-02-10 00:56:44 +00:00
Howard Chu
a3262ff239
ITS#5332 someone else may free the entry as soon as we unlock it
2008-02-08 06:32:41 +00:00
Howard Chu
f481ffef9c
ITS#5355 use bi_extra instead of calling directly into back-ldap
2008-02-08 02:01:17 +00:00
Ralf Haferkamp
a1612ae911
Fix crash when no-op control is used (ITS#5358)
2008-02-07 12:06:24 +00:00
Ralf Haferkamp
4db84db74b
Don't emit global ACLs for other database than frontendDB (ITS#5352)
2008-02-05 12:16:21 +00:00
Pierangelo Masarati
137172f952
allow 2.1 CSN format (ITS#5348)
2008-02-02 10:23:35 +00:00
Pierangelo Masarati
44b20b98e0
s/assert/LDAP_INVALID_SYNTAX/ (ITS#5348)
2008-02-01 19:16:58 +00:00
Ralf Haferkamp
713ec710ad
don't error out if replacing a non-existant attribute, create opattrs in
...
config_build_entry() to have them also when started with -f (ITS#5343)
2008-01-31 18:12:00 +00:00
Ralf Haferkamp
1af03ee2c7
error out if modify_delete_vindex() fails (ITS#5343)
2008-01-30 14:45:35 +00:00
Howard Chu
3b02cd32ba
Cleanup for C++
2008-01-28 15:30:40 +00:00
Howard Chu
6693f72402
Clean up config.h
2008-01-22 13:26:16 +00:00
Pierangelo Masarati
e3befa7f26
fix referrals (part of ITS#5328); fix compare (ITS#4937)
2008-01-19 10:43:08 +00:00
Hallvard Furuseth
2dd186a8fd
More ITS#5328 cleanup
2008-01-18 17:05:23 +00:00
Pierangelo Masarati
79e68ebc2d
cleanup previous commit
2008-01-16 22:00:57 +00:00
Pierangelo Masarati
8517e7199a
rework back-relay internals along Hallvard's suggestions (ITS#5328)
2008-01-16 21:53:44 +00:00
Pierangelo Masarati
440099d271
fix test; don't return error when relaying exops
2008-01-15 21:59:23 +00:00
Pierangelo Masarati
807df724c1
fix ITS#5327 crasher
2008-01-15 20:32:35 +00:00
Pierangelo Masarati
ae665d0d3d
fix str2entry2() when there is no attrs (ITS#5308)
2008-01-11 19:32:01 +00:00
Hallvard Furuseth
cd63a0c43b
Warning cleanup: function ptr <=> void* at ldap_pvt_thread_pool_<set/get>key()
2008-01-11 06:07:43 +00:00
Howard Chu
82719d5351
ITS#5319 no special treatment for no-effect renames
2008-01-11 04:01:37 +00:00
Howard Chu
25ba37cc35
ITS#5319 allow rename to same DN
2008-01-11 03:17:10 +00:00
Howard Chu
37d65aed6e
ITS#5322 don't try to free a NULL locker
2008-01-11 00:44:12 +00:00
Pierangelo Masarati
f63ec3f497
more attribute values mucking
2008-01-08 17:02:37 +00:00
Hallvard Furuseth
e1e0370e8c
Remove unused variable
2008-01-08 16:49:13 +00:00
Hallvard Furuseth
5f068303d3
Remove unused variables
2008-01-08 16:37:13 +00:00
Hallvard Furuseth
9de53658d7
ITS#5309 followup: join a ldap_pvt_thread_pool_getkey() call into a setkey()
2008-01-08 16:24:53 +00:00
Pierangelo Masarati
5ebb7ee175
fix zeroing out attribute values (should fix ITS#5311)
2008-01-08 14:58:24 +00:00
Kurt Zeilenga
c890c96d13
Happy New Year (belated)
2008-01-08 00:19:56 +00:00
Hallvard Furuseth
d3c90c989c
Fix spew_file() comment
2008-01-08 00:02:58 +00:00
Hallvard Furuseth
0dab27bb1e
Fix comment for be_rootdn_bind()
2008-01-07 23:23:12 +00:00
Pierangelo Masarati
30f401c628
rename ldap_pvt_thread_pool_setkey_x() to ldap_pvt_thread_pool_setkey() (as part of ITS#5309)
2008-01-07 21:35:03 +00:00
Hallvard Furuseth
f763967c48
Fix Debug() format in previous change
2008-01-07 20:13:01 +00:00
Hallvard Furuseth
e9c2a7dcb3
ITS#5309: Use ldap_pvt_thread_pool_setkey_x() more. Fix void** arguments.
2008-01-07 20:10:22 +00:00
Hallvard Furuseth
d0a379ed45
ITS#5309: Use ldap_pvt_thread_pool_setkey_x() in slap_passwd_check() and
...
be_rootdn_bind() - push/pop any old value instead of resetting it.
2008-01-07 20:08:22 +00:00
Hallvard Furuseth
8a1f904ed9
Avoid use of uninitialized variable 'e' after failed overlay_entry_get_ov().
...
(It was harmless unless the value was a trap representation.)
2008-01-07 18:50:54 +00:00
Howard Chu
cdaf0769f7
ITS#4112 temporarily disable broken code
2008-01-06 07:34:19 +00:00
Pierangelo Masarati
741efa1674
don't leave 'round pointers to buffers on the stack
2008-01-02 23:08:04 +00:00
Pierangelo Masarati
2969c69747
fix modlist cleanup during rename
2008-01-02 22:49:45 +00:00
Pierangelo Masarati
622c4d3884
new ldap_pvt_thread_pool_setkey API
2007-12-29 18:14:54 +00:00
Pierangelo Masarati
ac689156bc
plug leak (ITS#5302)
2007-12-29 17:59:28 +00:00
Pierangelo Masarati
22f0fa7eb8
allow slapo-memberof to be used as global overlay, and thus provide cross-database integrity (ITS#5301)
2007-12-29 16:07:07 +00:00
Howard Chu
4068c51739
Remove unnneded boi_locker field
2007-12-28 07:44:41 +00:00
Howard Chu
7bc127aab8
ITS#5086 fix Adds in IDL cache
2007-12-28 07:40:18 +00:00
Pierangelo Masarati
64900d539d
allow to programmatically register new response code names
2007-12-28 01:21:22 +00:00
Pierangelo Masarati
18b2885f69
allow to customize the error code in case of constraint violation
2007-12-28 00:38:27 +00:00
Pierangelo Masarati
ce43877f6f
if referential integrity is broken, things could go wrong; don't assert
2007-12-27 20:57:42 +00:00
Pierangelo Masarati
17294602c4
fix ITS#5286 (NULL + set = NULL); add more verbose set logging if requested
2007-12-27 20:27:51 +00:00
Pierangelo Masarati
63e0046eab
fix previous commit
2007-12-27 19:57:51 +00:00
Pierangelo Masarati
8a529a1f72
check objectClass inheritance on add (consistent with modify; ITS#5299)
2007-12-27 19:50:12 +00:00
Pierangelo Masarati
096ce6f741
pass ConfigReply to overlays; don't complain unless once-only overlays are instantiated multiple times
2007-12-27 17:36:39 +00:00
Howard Chu
b0a0ac4914
Require compare (not read) access to entry attr for compare ops
2007-12-27 00:51:45 +00:00
Howard Chu
64f81ee43b
Complete prev commit
2007-12-24 05:32:13 +00:00
Howard Chu
6f6bc1ce04
Convert back-sock to dynamic config
2007-12-24 05:18:25 +00:00
Howard Chu
94db6fc9e8
Axe obsolete Cyrus 1.5 support
2007-12-23 01:33:39 +00:00
Howard Chu
95a37bc024
ITS#5298 use SASL's memory for temporary DN storage
2007-12-23 01:21:56 +00:00
Howard Chu
d0eac819f7
ITS#5259 fix sasl_auxprop_store to allow cleanup after bindop is gone
2007-12-22 22:53:58 +00:00
Howard Chu
d88ab7bf36
ITS#5264 don't log NULL/anonymous DNs
2007-12-22 21:16:54 +00:00
Howard Chu
d38ff5403f
ITS#5261 quick fix, don't checkpoint on first write to DB
2007-12-22 05:00:38 +00:00
Gavin Henry
4d06dc7ddd
DB_CONFIG.example URL wrong in comments (ITS#5288)
2007-12-18 12:50:27 +00:00
Howard Chu
13491b3905
ITS#5285 don't check for password reuse if history is not enabled
2007-12-15 19:35:11 +00:00
Howard Chu
ddd90958a1
Support DB encryption
2007-12-15 19:07:41 +00:00
Pierangelo Masarati
20f2548c82
fix declarations of buffers for numeric strings; other related cleanup
2007-12-15 15:23:23 +00:00
Howard Chu
8a622361d1
ITS#4987 extensions from Emmanuel Dreyfus manu @ netbsd.org with major
...
cleanups
2007-12-15 11:12:56 +00:00
Howard Chu
5919312796
ITS#5284 fix overlay order
2007-12-15 01:34:39 +00:00
Howard Chu
3a7830ff01
More cleanup
2007-12-15 00:50:37 +00:00
Howard Chu
b96a96c598
Fix prev commit, must test filter on cleanup
2007-12-14 20:24:31 +00:00
Howard Chu
f84a67ef34
Don't test filter before saving, need the copy for local lookup
2007-12-14 20:04:40 +00:00
Howard Chu
a58ea1efdd
More cleanup
2007-12-14 19:50:06 +00:00
Howard Chu
be32a57637
Add missing cleanup
2007-12-14 19:15:06 +00:00
Howard Chu
75b7f19ae3
ITS#5283 add remote/local attribute lists, search both local and remote
2007-12-14 19:02:44 +00:00
Howard Chu
7f81edc6fa
Align MRA desc with AVA/SSA desc
2007-12-14 05:44:10 +00:00
Howard Chu
3d632e79d8
Revert prev commit, different fix
2007-12-14 02:48:11 +00:00
Howard Chu
e9ab15ba87
ITS#5276 don't stack config state for includes
2007-12-14 02:25:26 +00:00
Howard Chu
d84eb76d57
ITS#5236 add 'countryName' alias back, should not have been dropped.
2007-12-13 08:30:12 +00:00
Howard Chu
23116be5ae
More for -q tool mode
2007-12-13 08:02:40 +00:00
Howard Chu
3218f6c110
Fix segv with -q
2007-12-13 07:51:56 +00:00
Pierangelo Masarati
64c662c5b2
behave when the empty DN is used as database suffix (ITS#5265)
2007-12-11 16:59:40 +00:00
Pierangelo Masarati
4d53c886a8
fix back-ldif delete (ITS#5265)
2007-12-11 15:12:48 +00:00
Pierangelo Masarati
bd64ab8d17
don't try to count non-expired entries if database does not exist (ITS#5267)
2007-12-08 21:57:22 +00:00
Howard Chu
6c0b815b6f
ITS#5268 omit contextCSN when replicating
2007-12-08 17:45:10 +00:00
Howard Chu
bcc108a7ff
ITS#5268 don't replicate dSAOperation attributes unless specifically
...
requested. (It doesn't actually make sense to request them in that
case, but allow it.)
2007-12-08 17:44:15 +00:00
Howard Chu
562b88a3cf
Omit auditContext when sync control is present
2007-12-08 17:03:47 +00:00
Pierangelo Masarati
bfd50b6ec5
don't try to delete expired entries if database does not exist (ITS#5267)
2007-12-08 17:00:34 +00:00
Howard Chu
54a3ef323b
ITS#5161 make sure accesslog_response is called for abandoned writes
...
This probably needs to be cleaned up more. There should be a log
schema flag that indicates that an op was abandoned.
2007-12-07 11:27:57 +00:00
Hallvard Furuseth
8f74e9cacc
ITS#5248: use volatile sig_atomic_t for signal variable gotsig
2007-12-06 17:15:41 +00:00
Hallvard Furuseth
af50afcbe0
Remove unused variable
2007-12-06 17:13:01 +00:00
Hallvard Furuseth
e50cb47542
Restore pre-C99 preprocessor support (since rev 1.165)
2007-12-06 17:08:10 +00:00
Howard Chu
f7ec966aad
Cleanup dup_compare
2007-12-06 16:54:47 +00:00
Howard Chu
3658226e95
Drop unnecessary lock
2007-12-06 15:59:28 +00:00
Howard Chu
e237f4cc43
Re-introduce hdb dup_compare function, default compares too much
2007-12-06 15:58:47 +00:00
Howard Chu
f06fdb2821
More cleanup, hdb fixes
2007-12-06 14:16:34 +00:00
Pierangelo Masarati
8958bcd60f
save old values when deleting (ITS#5258; not optimal)
2007-12-06 12:29:04 +00:00
Howard Chu
7a3f73efd8
More cleanup
2007-12-06 06:40:13 +00:00
Howard Chu
ebbb6ab216
Cleanup prev commits
2007-12-06 06:20:42 +00:00
Howard Chu
cb0e31fc65
ITS#5262 must protect dn2id between the time it's read from the DB
...
and it's inserted into EntryInfo cache.
2007-12-06 05:48:02 +00:00
Howard Chu
c2a02618bb
BDB 4.2 compatibility for log_printf (requires modern C preprocessor)
2007-12-06 01:51:32 +00:00
Howard Chu
abff944303
Prefix log msgs with "slapd"
2007-12-05 22:35:39 +00:00
Howard Chu
cff654bd60
Use BDB transaction log for debug messages
2007-12-05 22:27:12 +00:00
Howard Chu
460e94c001
ITS#5262 additional cleanup
2007-12-05 14:56:47 +00:00
Howard Chu
6ac8a0c584
ITS#5262 use explicit cursor and locker in dn2id
2007-12-05 14:09:34 +00:00
Howard Chu
eda5b4d01f
Fix ITS#5257
2007-12-05 05:24:15 +00:00
Howard Chu
2953cd459f
Revert 1.159, seems to trigger a concurrency bug. ???
2007-12-05 02:36:53 +00:00
Hallvard Furuseth
8667a535dc
Integer indexing - cleanup, signedness, redefine signmask => RIP overflow test
2007-12-03 09:54:01 +00:00
Howard Chu
ccfe26fca9
Cleanup overflow check
2007-12-02 21:46:50 +00:00
Hallvard Furuseth
3b6122cb73
Integer indexing - cleanup
2007-12-02 19:25:33 +00:00
Howard Chu
304520c113
Add memctx to lutil_str2bin()
2007-12-02 19:11:41 +00:00
Hallvard Furuseth
283313ba15
Fix last patch, and reduce allocations in lutil_str2bin().
2007-12-02 17:32:08 +00:00
Hallvard Furuseth
bddba8ae17
Integer indexing - handle huge values
2007-12-02 16:10:23 +00:00
Howard Chu
89b03a7db7
Shrink presence key
2007-12-01 19:08:30 +00:00
Howard Chu
60c0a68249
Trim unneeded tmp var
2007-12-01 11:44:18 +00:00
Howard Chu
95993844dd
Omit leading zero pad byte
2007-12-01 11:41:52 +00:00
Howard Chu
d513108ea3
Fix sign bit
2007-12-01 11:00:40 +00:00
Howard Chu
b7f3bb05f5
Fix 1.426, must sign-extend small numbers, not zero-pad
2007-11-30 18:12:17 +00:00
Howard Chu
0189fcc32a
Pop local callback for modify
2007-11-29 23:03:44 +00:00
Howard Chu
dba1b54b47
Fix prev commit, leave callback stack alone in compare()
2007-11-29 22:56:54 +00:00
Ralf Haferkamp
67ec05ef18
Allow initialization when using custom "memberof-group-oc" and
...
"memberof-member-ad" and "groupOfNames" and "member" are undefined
2007-11-28 12:09:55 +00:00
Quanah Gibson-Mount
cb286fa4b1
cleanup
2007-11-27 20:58:19 +00:00
Howard Chu
eb16972d23
Streamlined Winsock connection management
2007-11-26 17:03:26 +00:00
Howard Chu
8a8a05d811
Change integer indexing to ordered only, no backward compatibility
2007-11-25 13:19:08 +00:00
Howard Chu
e8d7074802
Fix connection teardown
2007-11-24 11:33:04 +00:00
Pierangelo Masarati
7aeac21440
silence warnings
2007-11-23 12:47:53 +00:00
Howard Chu
3640a6f7e5
Fix typo in prev commit
2007-11-22 08:52:39 +00:00
Howard Chu
1ed9b5c3bc
Fix, truncate should not be valid for slapadd, should be for slapindex.
2007-11-21 15:40:09 +00:00
Howard Chu
b8fcecd69b
More for #5221 , don't muck with kids counters on simple renames
2007-11-21 15:11:26 +00:00
Howard Chu
a0fbe9f043
Minor cleanup
2007-11-21 14:55:40 +00:00
Howard Chu
a6c4cf8578
ITS#5221 fix NO_KIDS/NO_GRANDKIDS flags on rename ops
2007-11-21 14:51:55 +00:00
Howard Chu
aa2cc83d27
Silently restrict index_intlen to 4-255.
2007-11-21 03:24:49 +00:00
Howard Chu
49057266a6
Tweak prev commit
2007-11-21 03:22:02 +00:00
Howard Chu
dd39c0a6fd
integer indexing must be unsigned
2007-11-21 03:07:09 +00:00
Howard Chu
3ff3957dc7
Add index_intlen keyword for ordered indexing of integers
2007-11-21 02:54:57 +00:00
Howard Chu
9bf03e0e7c
Silence warning
2007-11-21 02:52:53 +00:00
Howard Chu
7d060ec8fa
ITS#5215 fix Windows slapd.def rules
2007-11-20 15:10:52 +00:00
Howard Chu
8429013957
Fix test050
2007-11-20 14:56:20 +00:00
Howard Chu
f08b26adbc
ITS#5183 - better delete index handling
2007-11-20 12:06:28 +00:00
Howard Chu
529f818f2b
Fix typos
2007-11-19 22:17:45 +00:00
Howard Chu
e6568f61b5
ITS#5232 report and fail on internal errors
2007-11-18 21:49:04 +00:00
Howard Chu
d84f8d9b71
Fix prev commit
2007-11-18 21:48:26 +00:00
Howard Chu
02f29d51c6
ITS#5183 preliminary fix - this whole approach needs re-design
2007-11-18 20:50:20 +00:00
Pierangelo Masarati
16460ccbde
sync 'c' with RFC4519 (ITS#5236)
2007-11-17 13:50:49 +00:00
Pierangelo Masarati
3c6714051e
let c_conn_idx be -1 (ITS#5235?)
2007-11-17 13:39:19 +00:00
Pierangelo Masarati
d1560750b4
treat empty as NULL
2007-11-15 22:50:27 +00:00
Howard Chu
89c6b39738
Fix rev 1.266, was creating {0}config entry prematurely.
2007-11-14 01:28:29 +00:00
Howard Chu
d3531c6d79
Eliminate unnecessary Op copies
2007-11-13 01:35:58 +00:00
Howard Chu
0e3db5ac3e
ITS#4889 fix search. remainder of code needs similar work.
2007-11-13 01:22:45 +00:00
Howard Chu
82d4844b81
ITS#5231 don't maintain presentlist for entries added in Persist phase
2007-11-12 14:38:34 +00:00
Howard Chu
1569fae109
Fix prev commit, broke test033
2007-11-12 12:16:05 +00:00
Howard Chu
74f54320cd
Fix pagedresults resume
2007-11-12 11:45:12 +00:00
Howard Chu
7aeb9bf621
Fix unlock in prev commit
2007-11-12 11:41:45 +00:00
Howard Chu
b4bcc325ee
Cache-thrashing protection: if the DB has more entries than the cache,
...
don't allow large search operations that touch more entries churn the
existing cached entries.
2007-11-12 11:16:30 +00:00
Howard Chu
eea5e60bf0
Tweak entry parent check
2007-11-12 11:14:55 +00:00
Howard Chu
caac5b76fb
Cleanup debug msgs
2007-11-12 08:34:55 +00:00
Howard Chu
33162c1aef
ITS#5230 fix slimit for rootDN w/pagedresults
2007-11-12 08:14:50 +00:00
Howard Chu
f8588ff0c3
ITS#5225 fix contextCSN updating
2007-11-12 03:50:31 +00:00
Quanah Gibson-Mount
9602d401a5
cleanup
2007-11-11 20:32:18 +00:00
Howard Chu
b8ab61d2ee
More for ITS#5212 make conditional explicit
2007-11-09 07:28:42 +00:00
Ralf Haferkamp
488af9daa2
Fix op->o_abandon handling. Use fake connection to add results to the cache (ITS#5187)
2007-11-08 15:43:42 +00:00
Howard Chu
18db111c6b
Fix prev commit
2007-11-07 04:59:03 +00:00
Howard Chu
8f56be2ce8
ITS#5146 better check for single val in modify
2007-11-07 04:58:07 +00:00
Howard Chu
0f1bad6fb0
ITS#5186 check for multiple suffixes at config time, not open time
2007-11-07 04:31:06 +00:00
Howard Chu
33616c51d6
fix prev commit (ITS#5212)
2007-11-07 04:02:21 +00:00
Howard Chu
f8ad90167b
ITS#5209 sasl_host may be different from global_host
2007-11-05 09:30:40 +00:00
Howard Chu
005209bfe1
ITS#5211 spec says we must ignore invalid cookies
2007-11-04 12:34:41 +00:00
Howard Chu
528a30fe87
More for prev commit, ITS#5120.
2007-11-02 16:40:42 +00:00
Howard Chu
b6570cf867
Don't send cookie at end of refresh if nothing changed in refreshAndPersist
2007-11-02 00:25:11 +00:00
Howard Chu
8bc46e741a
ITS#5191 do all pagedresult control parsing in the frontend, don't
...
re-parse in the backend. Keep track of pagedresult controls and state
in backglue.
2007-11-01 15:11:22 +00:00
Howard Chu
233632fa04
Use per-thread slap_counters to eliminate lock contention
2007-10-25 08:45:00 +00:00
Howard Chu
a9d35da834
Repack Connection structure for alignment
2007-10-25 04:29:46 +00:00
Howard Chu
68ebee4726
Concurrency tweaks:
...
store conn->c_sd, don't use ber_sockbuf_ctrl to retrieve it.
use per-thread free lists for operations, no mutexes needed.
2007-10-25 02:22:40 +00:00
Pierangelo Masarati
a6a584eaa8
further fix of double free (ITS#4860)
2007-10-24 10:34:43 +00:00
Pierangelo Masarati
2069092aa5
don't compute lengths twice
2007-10-24 10:34:04 +00:00
Howard Chu
b9f012377a
ITS#5197 fully revert prev commit, use thr_stub
2007-10-23 21:14:39 +00:00
Howard Chu
faa76b761d
Forced commit, partially revert prev commit
2007-10-23 20:57:13 +00:00
Howard Chu
3877fc9359
ITS#5197 don't check thread pool if NO_THREADS
2007-10-23 20:55:28 +00:00
Howard Chu
d7535d4ddc
ITS#5189 revert index.c 1.67, just catch LDAP_OTHER
2007-10-23 00:25:51 +00:00
Howard Chu
bb1d8dfcd7
Fix prev commit, include errno.h
2007-10-23 00:05:03 +00:00
Howard Chu
9965fc5f60
ITS#5189 recognize ENOMEM
2007-10-23 00:03:56 +00:00
Howard Chu
7404384766
Fix typo
2007-10-22 09:14:56 +00:00
Howard Chu
38953e2f2c
Fix depend dependency for parallel make
2007-10-20 04:29:11 +00:00
Howard Chu
874ddbebe9
Fix depend/.links dependency for parallel make
2007-10-20 04:24:15 +00:00
Howard Chu
539109e4f0
Fix prev commit, only defer open for online Add
2007-10-16 16:25:56 +00:00
Howard Chu
43359bb02f
Don't leak logfiles
2007-10-16 00:59:39 +00:00
Howard Chu
e63ac9ac9e
Fix error message propagation
2007-10-15 10:22:51 +00:00
Howard Chu
a8ba9e2131
Check DB directory validity at config time
2007-10-15 10:17:04 +00:00
Howard Chu
e9749fcd7b
Revert prev commit, bogus
2007-10-15 10:16:36 +00:00
Howard Chu
d796273e8f
Save return code from cleanup handler
2007-10-15 09:56:03 +00:00
Howard Chu
f74d9f6099
Partial revert from 1.246, not sure what's the point
2007-10-15 09:38:25 +00:00
Pierangelo Masarati
e25169ccce
set BINDING appropriately (ITS#5185)
2007-10-13 10:13:38 +00:00
Pierangelo Masarati
b6508a1066
fix dirsep's in DN (ITS#5172)
2007-10-10 18:50:20 +00:00
Howard Chu
a79bc9195d
ITS#5177 pass new entries in search_response for Persist mode
2007-10-08 18:13:29 +00:00
Howard Chu
8bb39495c7
Fix unprotected checks for psearches
2007-10-08 13:59:33 +00:00
Howard Chu
d2f75ebaa5
Plug leak
2007-10-08 13:28:25 +00:00
Howard Chu
883ac70a36
Tweak ACL cache messages
2007-10-08 12:52:26 +00:00
Pierangelo Masarati
6706ed5d06
fix ordering of items on objectClass definition (ITS#5174)
2007-10-08 10:38:11 +00:00
Howard Chu
ade1fcff20
ITS#5173 simplify defer open behavior
2007-10-08 07:37:53 +00:00
Howard Chu
2659caf322
ITS#5173 fix for dynamic add in cn=config
2007-10-08 07:13:58 +00:00
Howard Chu
dbcf98b4d9
Refuse to operate on cacheDB if it hasn't been started yet
2007-10-08 06:34:57 +00:00
Howard Chu
e60536c04a
Fix for dynamic adds
2007-10-08 06:21:13 +00:00
Howard Chu
ec7a05adff
Check for cleanup on Adds, not just Modifies
2007-10-08 06:19:50 +00:00
Howard Chu
f0468901c6
ITS#4884 fix prev commit
2007-10-08 05:41:44 +00:00
Howard Chu
a1a63bead0
ITS#4188 check for pool pause every 64 entries. (probably should make
...
this number tunable.)
2007-10-08 01:15:49 +00:00
Howard Chu
c103b3c9e9
ITS#3864 use sasl_ssf_t where expected
2007-10-06 14:50:02 +00:00
Howard Chu
c406042fd6
ITS#5072 fix issuer format, use uppercase hex per RFC3641
2007-10-05 11:27:20 +00:00
Pierangelo Masarati
c2bbd6d5e7
fix typing warnings
2007-10-05 10:06:20 +00:00
Pierangelo Masarati
617bd11452
de-normalize simple filter values consistently
2007-10-05 09:49:19 +00:00
Pierangelo Masarati
c3c3c9c16b
support de-normalization
2007-10-05 09:26:48 +00:00
Howard Chu
3a1b56192d
Fix syncrepl_entry to propagate cookieCSN when present
2007-10-05 09:03:44 +00:00
Pierangelo Masarati
7c6c734226
fix previous commit (didn't have coffee yet :()
2007-10-05 08:34:03 +00:00
Pierangelo Masarati
f7d274e672
for consistency, always represent UUIDs correctly (ITS#5168; really, a de-normalize hook would help)
2007-10-05 08:24:36 +00:00
Pierangelo Masarati
55a988831a
ITS#5168 also affects back-meta
2007-10-04 22:18:34 +00:00
Pierangelo Masarati
4cf03ca277
fix ITS#5168 (a better fix would probably be a generic handler to de-normalize values)
2007-10-04 21:53:49 +00:00
Howard Chu
4c4cb4921b
ITS#5060 take care of entry cleanup when using
...
pblock_set(SLAPI_SEARCH_RESULT_ENTRY)
2007-10-03 09:40:08 +00:00
Howard Chu
ae0c57a420
ITS#5164 lack of a db_open handler is not an error
2007-10-03 09:00:41 +00:00
Howard Chu
a2a83fe239
From ITS#5164 - treat monitoredInfo normalization consistently, don't
...
crash if SLAPI plugin doesn't register a description
2007-10-03 08:59:37 +00:00
Howard Chu
9dc35b8997
Don't queue zero-length CSNs
2007-10-02 23:51:40 +00:00
Pierangelo Masarati
471cd1d848
s/strtoul/strtol/ (ITS#5165)
2007-10-02 23:45:50 +00:00
Pierangelo Masarati
5653ab8338
don't malloc the berval separately for presentlist
2007-10-02 23:26:04 +00:00
Pierangelo Masarati
122b184a32
also log cookie parsing
2007-10-02 18:39:43 +00:00
Pierangelo Masarati
14bcd332ce
log cookie (until we find what's going on...)
2007-10-02 18:09:15 +00:00
Pierangelo Masarati
cf2cee553e
back out hex RID
2007-10-02 18:08:41 +00:00
Howard Chu
396b22cfe2
Fix uninit'd ld in prev commit (coverity)
2007-10-02 13:31:27 +00:00
Howard Chu
925e92dcc9
certificateExactNormalize - only check serial encoding if len > 1
2007-10-01 16:32:30 +00:00
Pierangelo Masarati
05d2ce40b9
s/%d/%x/
2007-10-01 16:28:27 +00:00
Howard Chu
291c8d9bd8
ITS#5070 unify serialNumberAndIssuer validation
2007-10-01 08:43:56 +00:00
Howard Chu
4ad821910c
ITS#5070 use lutil_str2bin() for certificate serialNumbers
...
Still need to fix serialNumberAndIssuerPretty to accept hex
2007-10-01 06:55:02 +00:00
Pierangelo Masarati
2de9d97ad2
first round of s/sprintf/snprintf/; the rationale is: truncate error messages rather than buffer overflow; otherwise, assert that no buffer overflow occurred. In some cases, error handling could be added. Please note: no real error in the code was found so far, apart from that in syncprov.c and from some config-time error logging; however, errors could slip thru again if things don't change consistently
2007-09-29 17:55:33 +00:00
Pierangelo Masarati
e4036af0c8
remove potential buffer overflow, now that rids can be up to 4096
2007-09-29 16:11:28 +00:00
Pierangelo Masarati
fedcbe9a41
better fix for ITS#5154
2007-09-29 11:45:37 +00:00
Howard Chu
37e295f269
ITS#5070 again, use [-]0x123456789abcdef for big int serial numbers
2007-09-29 09:50:54 +00:00
Pierangelo Masarati
24db207196
check for ee == NULL
2007-09-26 22:37:35 +00:00
Pierangelo Masarati
a0d26ada9c
plug leak (ITS#5155)
2007-09-26 22:10:16 +00:00
Pierangelo Masarati
ebf7338b8b
temporary fix to ITS#5154
2007-09-26 20:57:25 +00:00
Howard Chu
9fd4a8582a
coverity - a->a_nvals may be NULL
2007-09-26 20:26:03 +00:00
Howard Chu
c428a16332
coverity - init i
2007-09-26 20:21:53 +00:00
Howard Chu
2f3bf07285
init rc
2007-09-26 20:17:48 +00:00
Ralf Haferkamp
3d1df12527
set mod->sm_numvals
2007-09-26 01:59:24 +00:00
Howard Chu
81db5651da
ITS#5153 fix prev commit, ordering matches can be done in O(1) instead
...
of O(logn)
2007-09-25 05:46:12 +00:00
Howard Chu
d322eb96c3
ITS#5151 fix CertificateListValidate
2007-09-24 07:55:56 +00:00
Howard Chu
f1065e1780
Remove special cases for BigNums in certificateExactNormalize, just
...
use hex when serial is larger than int. Normalized values need to be
consistent regardless of compile-time environment...
2007-09-24 06:26:36 +00:00
Howard Chu
9dd2fbcba6
Log the attribute that failed normalization
2007-09-24 06:25:34 +00:00
Howard Chu
0f2b1d551b
More for Mod.sm_numvals
2007-09-24 05:30:53 +00:00
Howard Chu
dcaa5a27f5
Partially revert prev commit, unintended.
2007-09-24 05:30:36 +00:00
Howard Chu
d2179d885f
Use attr_valfind instead of value_find_ex to optimize lookups
2007-09-24 05:02:31 +00:00
Howard Chu
e8c2414831
Preliminary sorted value support
2007-09-24 01:31:23 +00:00
Howard Chu
ebb9e029a7
Make slap_passwd_parse non-destructive
2007-09-23 04:40:51 +00:00
Howard Chu
a3547e2758
More for a_numvals
2007-09-23 04:40:16 +00:00
Howard Chu
75df004a04
Use OLcfgCt{Oc|At} arc for contrib modules
2007-09-22 23:58:54 +00:00
Hallvard Furuseth
aad6555340
Update last change: lutil_atoul() -> lutil_atou() for csnsid.
2007-09-21 13:11:39 +00:00
Hallvard Furuseth
cea5e5664d
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
2007-09-21 13:02:36 +00:00
Hallvard Furuseth
8b7fd262b8
Cast away const
2007-09-21 12:58:34 +00:00
Howard Chu
8c6d828a1f
More for Modification value counter
2007-09-21 09:34:31 +00:00
Howard Chu
c4dbe1a274
Attribute/Modification value counters
2007-09-21 08:43:56 +00:00
Ralf Haferkamp
b99749aba4
Use rwlock for CachedQuery to avoid returning incomplete results (ITS#5113)
2007-09-20 17:23:56 +00:00
Ralf Haferkamp
af7f86a2cd
Fixed memory leak in pcache. Cache is now populated in cleanup handler.
...
ITS#5112
2007-09-20 16:15:23 +00:00
Howard Chu
9281472144
Add comment for prev commit
2007-09-15 23:40:34 +00:00
Howard Chu
3dfab875e8
Fix prev commit
2007-09-15 23:38:12 +00:00
Pierangelo Masarati
43c00ab486
fix previous commit
2007-09-15 18:03:55 +00:00
Pierangelo Masarati
d92e8ad1f7
add helper for internal searchs for objectClass=*
2007-09-15 17:38:53 +00:00
Pierangelo Masarati
eb51129e29
alloc temporaries on slab
2007-09-15 17:33:59 +00:00
Pierangelo Masarati
d1c4d6481f
further fix ITS#5138 (please review)
2007-09-15 17:30:07 +00:00
Pierangelo Masarati
5569180736
draft-wahl-ldap-session: append further instances of the control
2007-09-15 17:26:09 +00:00
Pierangelo Masarati
06e6e6c053
apply Howard's cleanup of database monitoring registration
2007-09-15 15:34:49 +00:00
Howard Chu
5cd816f4eb
ITS#5138 don't scan past the sequence of attributes
2007-09-15 03:08:32 +00:00
Pierangelo Masarati
9c5c20b1b9
fix potential double-free (valgrind; ITS#5137)
2007-09-14 23:58:00 +00:00
Pierangelo Masarati
9f36fafe55
add more sanity checks (ITS#5136)
2007-09-14 23:25:15 +00:00
Pierangelo Masarati
927efd4a94
fix ITS#5136
2007-09-14 23:14:33 +00:00
Pierangelo Masarati
76974d412a
add support for dgAuthz --- see discussion on -devel
2007-09-14 22:42:16 +00:00
Pierangelo Masarati
f7bda3be0a
release entry (ITS#5135)
2007-09-14 22:39:49 +00:00
Pierangelo Masarati
e48e3e7503
remove unused code
2007-09-14 22:24:21 +00:00
Pierangelo Masarati
1845f1b951
fix double free - related to ITS#4860 and probably ITS#4873
2007-09-13 22:39:33 +00:00
Pierangelo Masarati
60b03d4103
don't leak in case of error
2007-09-13 18:47:36 +00:00
Pierangelo Masarati
d6baaffbec
HEADS-UP: now the list of URIs is better set by using separate arguments
2007-09-13 18:34:04 +00:00
Pierangelo Masarati
af9e17379b
further rework URI parsing
2007-09-13 17:55:45 +00:00
Pierangelo Masarati
6d38af2689
improve error message
2007-09-13 17:54:49 +00:00
Pierangelo Masarati
a09b4c5f20
log unknown message type
2007-09-13 17:54:15 +00:00
Pierangelo Masarati
202080dfa1
enable unindexed searches monitoring ifdef LDAP_DEVEL
2007-09-12 21:26:10 +00:00
Pierangelo Masarati
1157b6dc6a
handle sizelimit in caching (in partial fulfilment of ITS#5114)
2007-09-12 21:09:04 +00:00
Howard Chu
aec54643c2
Don't populate member list unless it was requested
2007-09-11 14:10:50 +00:00
Pierangelo Masarati
a4b1ba0b5f
use /-* for all parents; ignore /-0; check syntax; better parsing
2007-09-10 22:29:10 +00:00
Pierangelo Masarati
4137870344
handle empty set, empty string special cases
2007-09-10 21:58:12 +00:00
Pierangelo Masarati
1e0794f0ad
cleanup sets code; should fix a potential leak and possibly address ITS#4873. Please test
2007-09-10 21:30:02 +00:00
Pierangelo Masarati
552761696b
applied with changes (ITS#4860)
2007-09-10 00:06:20 +00:00
Pierangelo Masarati
331fef5e78
idassert also in case of SASL mechs that do not set authcId
2007-09-09 21:52:10 +00:00
Pierangelo Masarati
f834cdb2f7
fix proxyAuthz oid setup
2007-09-09 21:48:17 +00:00
Howard Chu
c32e182c56
re: prev commit, init j
2007-09-09 14:25:34 +00:00
Howard Chu
40e796c547
ITS#5129 fix alock_close with Quick mode
2007-09-08 05:26:03 +00:00
Howard Chu
6a6adff86c
ITS#5129 disallow Quick mode if DB_CONFIG has changed
2007-09-08 04:59:34 +00:00
Pierangelo Masarati
9c437f4411
quote suffix (ITS#5128) and use it as much as possible to identify databases
2007-09-08 00:41:29 +00:00
Pierangelo Masarati
2da15f1013
remove experimental code as per ITS#4962 discussion
2007-09-07 12:33:21 +00:00
Howard Chu
c8c6cba5fc
back-sock by Brian Candler (B.Candler@pobox.com) ITS#4094 (untested)
2007-09-07 12:27:33 +00:00
Howard Chu
3b7e703cb9
Add Acknolwedgement
2007-09-07 12:20:24 +00:00
Howard Chu
d0ab632239
Use permalink
2007-09-07 12:14:10 +00:00
Howard Chu
276a8cd4dd
Update Net::Server URL
2007-09-07 12:13:29 +00:00
Howard Chu
b6827c75a8
back-sock by Brian Candler (B.Candler@pobox.com) ITS#4094 (untested)
2007-09-07 12:02:43 +00:00
Pierangelo Masarati
00ad93ac70
also copy modifications we don't deal with, as they will be freed altogether (ITS#5124)
2007-09-07 09:38:38 +00:00
Pierangelo Masarati
ed12ff8fd3
parse unsigned as unsigned (ITS#5122)
2007-09-04 19:32:54 +00:00
Pierangelo Masarati
371bf8f803
blind fix: I assume we need to restore ors_scope
2007-09-04 19:31:47 +00:00
Pierangelo Masarati
c73520ec08
fix idl lru deletion of last entry (ITS#5121)
2007-09-04 19:01:55 +00:00
Howard Chu
1800fbb307
ITS#5119 fix uninit'd nval after normalization failure
2007-09-04 05:40:41 +00:00
Pierangelo Masarati
12ea3e4304
check call consistency
2007-09-03 16:36:22 +00:00
Pierangelo Masarati
04cf328716
make sure n,o are non-zero, so j is initialized (coverity)
2007-09-03 16:31:33 +00:00
Pierangelo Masarati
9beb9f9f51
fix one-time leak (coverity)
2007-09-03 16:27:01 +00:00
Pierangelo Masarati
55e908dca2
fix helper pointer inizialization (coverity)
2007-09-03 16:22:53 +00:00
Howard Chu
75964a771f
Use IA5String for olcDbConfig to allow empty strings
2007-09-03 00:41:30 +00:00
Howard Chu
f385341f46
Add IA5String macro
2007-09-03 00:40:52 +00:00
Howard Chu
f8fcb44d13
Fix PrintableString/IA5String commentary
2007-09-03 00:40:37 +00:00
Howard Chu
33f311d81f
Read DB_CONFIG file in server and tool mode, for config conversions
2007-09-02 23:53:29 +00:00
Howard Chu
d316b89bc3
Fix schema undo crash
2007-09-02 23:47:49 +00:00
Howard Chu
2437abac38
ITS#5082 RE23 compatibility, allow olcPasswordHash in global entry
2007-09-02 13:24:14 +00:00
Howard Chu
e10a33753a
Partially resurrect cn=Include stuff - parse from LDIF and ignore.
2007-09-02 12:01:56 +00:00
Howard Chu
dbac914e33
Hide log schema
2007-09-01 22:28:06 +00:00
Pierangelo Masarati
bcf9bce5f4
hide (experimental) schema
2007-09-01 16:09:06 +00:00
Pierangelo Masarati
c83b8b58a3
hide (experimental) schema
2007-09-01 16:01:29 +00:00
Pierangelo Masarati
f89f552d2a
fix previous commit
2007-09-01 15:47:23 +00:00
Pierangelo Masarati
f6dc2b1032
hide (experimental) schema
2007-09-01 15:45:12 +00:00
Pierangelo Masarati
56d9a93ad4
authzMatch IS octetStringMatch
2007-09-01 15:44:24 +00:00
Pierangelo Masarati
4edd5cca23
hide (experimental) schema
2007-09-01 15:38:03 +00:00
Pierangelo Masarati
63a7a69b89
hide schema
2007-09-01 15:32:47 +00:00
Howard Chu
c06ed65f2a
Protect Debug messages from NULL pointers
2007-09-01 13:35:34 +00:00
Quanah Gibson-Mount
dfe8eca92d
ITS#5102 fix
2007-09-01 00:28:07 +00:00
Howard Chu
784daf01e5
Fix DEVEL dependency
2007-09-01 00:11:42 +00:00
Howard Chu
d13d15c37a
Revert prev commit, don't advertise subord scope
2007-08-30 21:09:30 +00:00
Pierangelo Masarati
1b40253d4d
release certificateListValidate()
2007-08-30 20:27:13 +00:00
Howard Chu
f9bc1426ad
Fix SORTED_RESULTS check
2007-08-29 23:57:55 +00:00
Howard Chu
605fdacf51
unifdef LDAP_DEVEL for subordinate scope
2007-08-29 23:40:17 +00:00
Pierangelo Masarati
19330dc1cc
allow shutdown while syncrepl_del_nonpresent()
2007-08-29 18:13:12 +00:00
Pierangelo Masarati
eff90dc512
note what SID the server is assuming
2007-08-29 18:12:05 +00:00
Ralf Haferkamp
cd103f9010
Additional fix for ITS#4991. _cleanup callback was always executed when
...
needed.
2007-08-29 14:29:37 +00:00
Pierangelo Masarati
7ceaad7eb2
plug yet another leak
2007-08-29 00:27:47 +00:00
Pierangelo Masarati
6fb9790a15
plug another leak (hope it's general enough)
2007-08-29 00:14:33 +00:00
Pierangelo Masarati
e161e8efb6
fix test
2007-08-29 00:13:56 +00:00
Pierangelo Masarati
0bedad3b65
plug leak
2007-08-28 23:56:18 +00:00
Pierangelo Masarati
96767fee77
back out previous two commits
2007-08-28 23:13:29 +00:00
Pierangelo Masarati
c0f7dc78f7
fix uninit'ed var crasher
2007-08-28 23:00:36 +00:00
Pierangelo Masarati
a6fd7fa95a
add -S to slapadd to set desired SID in generated entryCSN/contextCSN
2007-08-28 19:35:57 +00:00
Pierangelo Masarati
5ed5bc5803
first round of CSN normalization consequences
2007-08-28 18:38:27 +00:00
Pierangelo Masarati
faa52ce410
forgot to re-sort operation names
2007-08-28 18:37:23 +00:00
Pierangelo Masarati
9a0797004f
if tool mode needs to add structuralObjectClass, override any database setting (rationale: if configured w/ mirror mode and syncrepl, a master is also a shadow, but we need to be able to slapadd to a master (possibly with the correct SID; will deal with this later)
2007-08-28 18:36:42 +00:00
Howard Chu
4ccb430c8c
Convert collect to dynamic config. Even though it's only a demo...
2007-08-28 09:19:07 +00:00
Pierangelo Masarati
47f1f66361
keep pretty and normal form of CSN the same...
2007-08-27 10:39:48 +00:00
Pierangelo Masarati
4db9863fa8
fix previous commit
2007-08-27 10:12:39 +00:00
Pierangelo Masarati
6edcf92419
also the MOD part is hex; preserve compatibility with OpenLDAP's 2.3 entryCSN
2007-08-27 10:09:46 +00:00
Pierangelo Masarati
81a4676571
add csnValidate/csnNormalize, since the SID could be hexadecimal, and we want upper/lowercase a-f to match as appropriate
2007-08-27 09:13:45 +00:00
Pierangelo Masarati
5674d38a17
allocate OID for back-sql configuration
2007-08-27 07:14:55 +00:00
Pierangelo Masarati
8931d68e37
close LDIF handler (valgrind)
2007-08-27 07:14:04 +00:00
Pierangelo Masarati
09cbbb92a7
need to copy the Entry to safely manipulate it
2007-08-27 07:13:25 +00:00
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
Howard Chu
da9f66ede7
ITS#5050 use correct (Bind) timeout in dobind_int
2007-07-22 17:48:04 +00:00
Howard Chu
e0cb8bcf98
Delete extraneous test in prev commit
2007-07-22 17:19:21 +00:00
Howard Chu
b0113c38cd
ITS#5040 don't touch modifyTimestamp and other opattrs when updating
...
ppolicy opattrs
2007-07-22 16:42:01 +00:00
Howard Chu
4b3bf1a61a
Set GLUE ocflag on dummy context entry
2007-07-21 00:35:32 +00:00
Howard Chu
a56a8540fd
ITS#4961 read context glue entry if it exists
2007-07-21 00:05:16 +00:00
Ralf Haferkamp
5b897eef52
Fixed return value of _cleanup function
2007-07-20 17:13:22 +00:00
Howard Chu
b7d38c15ff
ITS#5048 fully initialize fc_limits
2007-07-20 15:16:36 +00:00
Howard Chu
fb5568bd45
ITS#5052 fix Quick mode erroneously indexing ID#0
2007-07-20 14:42:31 +00:00
Hallvard Furuseth
9bd4a298ef
ITS#5049: Initialize conn in syncprov_db_close() before connection_fake_init().
2007-07-18 21:02:14 +00:00
Pierangelo Masarati
3aefa9434d
major improvement: baseline support for back-config; minor improvement: trim code to handle absence of librewrite (enable forced when slapo-rwm is configured...)
2007-07-14 16:18:44 +00:00
Pierangelo Masarati
4066e22c59
"register" slapo-rwm
2007-07-14 16:17:43 +00:00
Pierangelo Masarati
0122f25853
fix minor error message
2007-07-14 16:17:20 +00:00
Howard Chu
f28d9e800f
Fix mirrormode/tool mode
2007-07-14 00:12:47 +00:00
Howard Chu
88cbe052e0
Fallout from ITS#4986 - remove unused param of select_backend()
2007-07-13 03:18:20 +00:00
Howard Chu
974ca7b366
Fix prev commit
2007-07-13 02:57:01 +00:00
Howard Chu
d09d43559a
ITS#4986 - remove special manageDSAit handing in select_backend()
2007-07-13 02:18:36 +00:00
Pierangelo Masarati
ca7ad7f2e3
fix searchFilter double free (ITS#5043)
2007-07-12 22:22:31 +00:00
Quanah Gibson-Mount
c3e347c11f
Change db == NULL to rc == LDAP_INAPPROPRIATE_MATCHING
...
as a half-way step for ITS#5037
2007-07-10 00:24:05 +00:00
Quanah Gibson-Mount
88a4ffe5be
ITS#5037
...
Move db == NULL check to correct spot
2007-07-09 21:28:14 +00:00
Ralf Haferkamp
19b4aba5a1
added config option "normalize-mapped-attrs" to enable normalization of
...
undefined mapped attribute types.
2007-07-09 16:22:54 +00:00
Hallvard Furuseth
8eda2e301f
Fix SLAP_NO_SL_MALLOC (ber_malloc_x -> ber_memalloc_x) for ITS#4990.
2007-07-04 22:49:34 +00:00
Gavin Henry
ba88d443e9
Cater for perl 5+
2007-07-01 22:36:24 +00:00
Hallvard Furuseth
6f2d816df4
ITS#5035 - return ber_socket_t instead of ptrdiff_t from SLAP_EPOLL_EV_PTRFD().
...
Fixes a printf format bug.
2007-07-01 13:43:15 +00:00
Hallvard Furuseth
c71a4ae4f3
Fix integer overflow in slap_loglevel_get() - ITS#5035.
2007-07-01 13:39:24 +00:00
Pierangelo Masarati
8c4582e29f
fix potential leak (detected by Coverity)
2007-06-21 00:10:02 +00:00
Pierangelo Masarati
35282bc713
fix potential NULL dereferencing (detected by Coverity)
2007-06-20 23:44:43 +00:00
Howard Chu
d6ef5f3a0d
ITS#5025 clear sr_entry before sending search reference
2007-06-19 20:04:36 +00:00
Howard Chu
6b793c85cb
ITS#4870 remove lint
2007-06-19 13:49:03 +00:00
Pierangelo Masarati
46ab91eeba
fix ITS#5005
2007-06-19 13:18:17 +00:00
Howard Chu
10264919f4
Fix uninit'd op req DN
2007-06-19 13:07:12 +00:00
Howard Chu
299d19506a
ITS#4933 use ldap_set_option for search timelimit
2007-06-19 11:49:50 +00:00
Pierangelo Masarati
9ff76148ab
test goes __after__ done (ITS#5014 :)
2007-06-16 10:53:48 +00:00
Hallvard Furuseth
b20c1fe5af
Do not access a void* (mi_entry_limbo) as if it were a struct monitor_info_t*
2007-06-15 18:24:01 +00:00
Gavin Henry
d6444a108d
Running 'perlcritic -1 SampleLDAP.pm' and tidying up.
2007-06-15 16:28:33 +00:00
Hallvard Furuseth
53fcfd93a3
ITS#4995 - rewrite clarification
2007-06-15 13:25:32 +00:00
Quanah Gibson-Mount
1dfd0924b2
For ITS#4995, add clarification comments
2007-06-15 03:21:11 +00:00
Pierangelo Masarati
844f13fbe8
don't forget to log errors (ITS#5014)
2007-06-14 23:07:40 +00:00
Howard Chu
087a662f9e
Better fix for rev 1.97
2007-06-14 14:51:15 +00:00
Hallvard Furuseth
c60f7c1fd2
For ITS#4943: Axe thread pool semaphore code
2007-06-10 23:37:49 +00:00
Hallvard Furuseth
9dcef9bc80
Cleanup (add prototypes)
2007-06-10 22:06:28 +00:00
Pierangelo Masarati
af985c7efb
re-fix ITS#4936
2007-06-10 21:55:39 +00:00
Hallvard Furuseth
4586ede1ab
ITS#5007: Rename label "leave"; OSF1 pthread.h makes it as an exception keyword
2007-06-09 23:45:23 +00:00
Hallvard Furuseth
3750520f6f
Fix HP-UX crash: Replace socklen_t with ber_socklen_t from configure. ITS#4629.
2007-06-09 23:35:20 +00:00
Pierangelo Masarati
d4d90f0ef3
use libexecdir as default module path (ITS#4936)
2007-06-09 17:49:39 +00:00
Pierangelo Masarati
ea560284f0
temporary fix to ITS#4986; does not break current tests, but needs review
2007-06-09 16:28:35 +00:00
Pierangelo Masarati
c77e65c274
fix SASL ssf logging (ITS#5001)
2007-06-09 15:31:46 +00:00
Pierangelo Masarati
ecb6db13dc
autchId must be a (quoted) id, and can't be a DN; as a consequence, no need for leading 'u:'
2007-06-09 15:29:46 +00:00
Pierangelo Masarati
133035cdd2
do not try to register custom monitor stuff when subordinate (related to ITS#4965); note: this might not be the best solution, because it does not allow to monitor subordinate databases; however, right now it's necessary, since subodinate databases do not register themselves in back-monitor
2007-06-09 14:14:45 +00:00
Pierangelo Masarati
d34473cdba
always complain when custom monitor stuff cannot be registered (ITS#4965)
2007-06-09 14:11:16 +00:00
Howard Chu
8cafa0b117
ITS#4970 ignore pwdMinAge if pwdReset is TRUE
2007-06-08 09:23:49 +00:00
Howard Chu
9227293e8d
ITS#4977 check for cookie parse failure
2007-06-08 09:05:35 +00:00
Pierangelo Masarati
4148c4e3f9
make searches expand all matching sets of group/url[/member] configurations; relax configuration test as per ITS#4989
2007-06-02 11:27:43 +00:00
Pierangelo Masarati
457b5b11ae
fix leak
2007-06-02 10:43:02 +00:00
Hallvard Furuseth
46d420565b
thread pool data was accessed through the wrong type
2007-05-31 20:52:15 +00:00
Ralf Haferkamp
11e8c186bf
ITS#4991 restore save_attrs when a request is finished to let do_search()
...
cleanup correctly
2007-05-31 15:49:45 +00:00
Ralf Haferkamp
7203276785
ITS#4991 restore mapped AttributeNames before processing a response
2007-05-31 15:46:46 +00:00
Howard Chu
6186117f97
ITS#4966 valsort_modify: ignore Delete modops with no values
2007-05-25 00:58:59 +00:00
Kurt Zeilenga
7fa4cc5d38
Use IANA-assigned OID for entryDN and remove hide flag.
2007-05-23 03:54:31 +00:00
Hallvard Furuseth
101b6b9363
Fix --without-tls (ITS#4975). Enable certificate matching.
2007-05-20 22:48:21 +00:00
Pierangelo Masarati
74ca4680db
more ITS#4973 initialization
2007-05-19 14:12:24 +00:00
Pierangelo Masarati
43367e162e
re-parse ID from passmod request, if necessary (ultimately fixes ITS#4964, along with fix to ITS#4973)
2007-05-19 14:08:49 +00:00
Pierangelo Masarati
4f960dacb3
related to ITS#4973
2007-05-19 14:06:42 +00:00
Hallvard Furuseth
93fbb87545
Give OperationBuffer normal struct members instead of using
...
LBER_ALIGNED_BUFFER(OPERATION_BUFFER_SIZE), as discussed in ITS#4078.
Add a corresponding SyncOperationBuffer in overlays/syncprov.c.
2007-05-18 23:54:26 +00:00
Hallvard Furuseth
7372fea8b5
printf format paranoia: macros could be changed to contain format chars
2007-05-18 14:48:28 +00:00
Hallvard Furuseth
d84399e344
Unused varaibles
2007-05-18 14:46:52 +00:00
Hallvard Furuseth
4caf7faa74
Warning cleanup (avoid cast double return val -> integer, gcc gets suspicious)
2007-05-18 14:45:56 +00:00
Hallvard Furuseth
861babae6f
include lber-int.h (for rev 1.396 certificate changes)
2007-05-18 14:41:28 +00:00
Pierangelo Masarati
7b7676a9fa
...
2007-05-17 13:57:20 +00:00
Pierangelo Masarati
978c3609e0
allow array of more generic syntaxes
2007-05-16 09:13:14 +00:00
Pierangelo Masarati
eb5d285a1b
allow attribute inheritance with syntax restriction (please review)
2007-05-16 01:40:34 +00:00
Pierangelo Masarati
dd3f101ff8
further cleanup round in back-relay database selection; cleanup
2007-05-16 01:39:41 +00:00
Pierangelo Masarati
c30ae47206
check for NULL dn in URL; set error code before seding extended response (partially addresses ITS#4968)
2007-05-15 22:29:06 +00:00
Howard Chu
093f52e44d
ITS#4961 disable schema checking on contextCSN update
2007-05-14 21:25:48 +00:00
Hallvard Furuseth
7720844624
Reapply part of rev 1.2 warning cleanup, it was lost in next revision
2007-05-13 22:32:33 +00:00
Howard Chu
97b0c98ab5
Don't use strdup on bervals
2007-05-13 09:36:52 +00:00
Howard Chu
bdd8bf4133
Add CRLfile option for GNUtls
2007-05-13 01:34:12 +00:00
Howard Chu
f3c9d552dd
Use liblber for certificate Validation, Normalization
2007-05-13 01:27:51 +00:00
Howard Chu
93e1da43e9
No more dependency on OpenSSL
2007-05-12 23:44:58 +00:00
Hallvard Furuseth
b6bb36eaf1
Add back-monitor (and its OID arc) to Backend/Database registry
2007-05-12 17:55:37 +00:00
Pierangelo Masarati
f2d213d73f
if no database can be looked up, don't send result when not appropriate
2007-05-12 13:09:48 +00:00
Pierangelo Masarati
d12592ca3c
don't try to lookup a database when there's no request DN
2007-05-12 13:07:17 +00:00
Hallvard Furuseth
dfc10014b1
Fix for !(LDAP_DEBUG && LDAP_SYSLOG)
2007-05-11 23:04:33 +00:00
Howard Chu
8726062e1d
Fix typo in prev commit
2007-05-10 20:15:40 +00:00
Howard Chu
e86e4f98af
ITS#4954 clear c_sasl_dn after error
2007-05-10 19:34:27 +00:00
Howard Chu
2779af4730
ITS#4952 use memcmp to compare CSN values
2007-05-10 18:46:15 +00:00
Hallvard Furuseth
584ea90db2
Remove unused variables
2007-05-09 19:11:44 +00:00
Hallvard Furuseth
5a6362c453
assert(pointer) -> assert(pointer != NULL)
2007-05-09 19:10:36 +00:00
Hallvard Furuseth
d72acf7250
Struct/array initializers must be constant expressions in C89
2007-05-09 19:09:32 +00:00
Hallvard Furuseth
bbc719ca56
ITS#4948: '#if <undefined macro>' -> '#ifdef' warning cleanup
2007-05-09 18:17:10 +00:00
Howard Chu
f886eaa59c
coverity scan, e is non-NULL
2007-05-08 14:17:21 +00:00
Howard Chu
eb6b265009
coverity scan, fix typo
2007-05-08 14:07:52 +00:00
Howard Chu
b626499794
coverity error, memory leak in file2anlist
2007-05-08 14:04:23 +00:00
Howard Chu
626e9aabea
coverity scan, ch_realloc won't return NULL
2007-05-08 14:01:16 +00:00
Howard Chu
b87965303e
coverity fix, slapd_rw_apply NULL filter
2007-05-08 13:57:13 +00:00
Ralf Haferkamp
f8c94e3155
fix comparison with string literal
2007-05-07 14:55:45 +00:00
Howard Chu
dda5e19904
ITS#4949 make config_syslog accumulate across multiple values
...
Can set to zero to explicitly clear it. (As well as just deleting
all values.)
2007-05-05 01:22:29 +00:00
Howard Chu
8ac19f0847
ITS#4917 preserve old sat_ad_mutex
2007-04-24 12:02:53 +00:00
Howard Chu
8033f476f4
Disallow runtime delete of modload values
2007-04-24 11:46:22 +00:00
Kurt Zeilenga
f810e6ed41
Distinguish absent control value from empty control value.
2007-04-20 22:32:58 +00:00
Pierangelo Masarati
b013847111
fix ';binary' certificate transport (ITS#4868); add cert to sql-test000 (mysql; psql untested)
2007-04-12 01:02:01 +00:00
Pierangelo Masarati
a01d9f961d
fix no-op crasher (ITS#4925)
2007-04-11 20:31:49 +00:00
Howard Chu
bfa0d15834
Fix prev commit, filter construction with URI filters
2007-04-10 02:38:54 +00:00
Hallvard Furuseth
1c87542ea1
Add missing return from void *bdb_tool_trickle_task()
2007-04-09 22:45:21 +00:00
Howard Chu
87466fc7c8
Add trickle-sync for quick mode
2007-04-07 06:10:01 +00:00
Howard Chu
97d0de6c1f
ITS#4915 log failure retry status
2007-04-06 01:16:55 +00:00
Howard Chu
0c2d84819d
Fix prev commit, config_obsolete
2007-04-06 00:31:08 +00:00
Howard Chu
a2405e0a7e
Axe slurpd / replog support
2007-04-06 00:21:02 +00:00
Howard Chu
3d1fe19acc
slurpd is strongly deprecated
2007-04-05 23:20:04 +00:00
Ralf Haferkamp
d06a8bd198
olcDatabase=config always gets index 0,
...
don't allow multiple olcDatabase=config entries (ITS#4914)
2007-04-05 16:12:24 +00:00
Howard Chu
75e1f0ef68
ITS#4911 move slap_op_init/destroy to slap_init/destroy
2007-04-05 01:39:24 +00:00
Howard Chu
a5363815fd
Fix uninit'd serverID field
2007-04-05 01:03:02 +00:00
Hallvard Furuseth
8e5beab1e8
printf %p expects void*
2007-04-04 17:49:31 +00:00
Hallvard Furuseth
e4a87ee27c
Fix char* = const char* (text = sr->sr_text)
2007-04-04 17:48:25 +00:00
Ralf Haferkamp
cb207b846a
Moved the check for existing monitor database to the top, otherwise trying
...
to add multiple monitor databases through back-config deadlocks the server.
2007-04-04 17:14:09 +00:00
Howard Chu
64000c5fc7
ITS#4904 fix delta-sync modlist free
2007-04-02 21:22:43 +00:00
Howard Chu
63bef22335
Cleanup conditional arg in prev commit
2007-03-31 00:40:22 +00:00
Ralf Haferkamp
726146da59
use slap_add_opattrs as discussed on -devel.
2007-03-30 18:39:33 +00:00
Ralf Haferkamp
c6743b5a82
Add operational Attributes when creating frontend and config database entries.
...
(Otherwise test049-sync-config fails)
2007-03-29 15:39:52 +00:00
Ralf Haferkamp
7491b3ff2a
Create frontend and config database entries automatically during slapadd
2007-03-29 14:45:44 +00:00
Hallvard Furuseth
4667f18253
Do not end a potentially last line of a Makefile statement with '\'.
2007-03-26 22:16:45 +00:00
Howard Chu
c6df30118f
ITS#4893 fix prev commit
2007-03-25 12:18:06 +00:00
Howard Chu
7cdfd72cc0
More struct cleanup
2007-03-25 11:37:51 +00:00
Howard Chu
7426ab07fc
ITS#4893 define LDAP_PF_LOCAL_SENDMSG in <ac/socket.h> if a message must
...
be sent to transmit client credentials. Buffer the message data.
2007-03-25 04:40:22 +00:00
Howard Chu
49d708fae3
Preliminary GNUtls support. gnutls.c will merge back into tls.c later.
2007-03-23 23:47:07 +00:00
Pierangelo Masarati
78d8d6e06d
add support for pagedResults to back-sql (ITS#4888)
2007-03-22 23:10:56 +00:00
Pierangelo Masarati
18fc3548cd
fix test in case of bailout (ITS#4891)
2007-03-22 22:30:53 +00:00
Howard Chu
d9958cbdbe
Enhanced unique configuration
2007-03-22 08:22:53 +00:00
Howard Chu
0752716d80
Remove obsolete purge (obsoleted in cache.c rev 1.106)
2007-03-22 07:35:10 +00:00
Pierangelo Masarati
226133ea38
don't add databases twice; but try as hard as possible...
2007-03-21 23:22:49 +00:00
Pierangelo Masarati
d0fe3b0890
allow adding of back-bdb with monitoring on (ITS#4789)
2007-03-21 22:35:37 +00:00
Pierangelo Masarati
3c6e50b4c7
cleanup
2007-03-21 22:33:50 +00:00
Pierangelo Masarati
d0e6e17b89
cleanup after sending entry
2007-03-21 22:33:09 +00:00
Pierangelo Masarati
ac96ba3131
fix ITS#4883
2007-03-21 16:33:38 +00:00
Pierangelo Masarati
4a73490186
improve previous commit (check result of structural_class())
2007-03-21 09:51:11 +00:00
Pierangelo Masarati
c36904bda5
exploit inheritance in add (ITS#4884): passes all tests; modify may need work. Please review
2007-03-21 00:57:20 +00:00
Pierangelo Masarati
bf2d5729ae
more structure name cleanup
2007-03-20 17:09:24 +00:00
Pierangelo Masarati
639d678592
cleanup struct declarations
2007-03-20 01:07:10 +00:00
Pierangelo Masarati
a6e232e7c1
add uptime monitoring (in seconds)
2007-03-19 21:39:43 +00:00
Pierangelo Masarati
93f338eb79
cleanup
2007-03-19 15:50:51 +00:00
Pierangelo Masarati
6420bcd7d7
restore op before checking result (and, if necessary, bailing out)
2007-03-19 15:50:28 +00:00
Pierangelo Masarati
98fe6a81a0
handle r_dn == r_ndn
2007-03-19 15:44:58 +00:00
Pierangelo Masarati
2ad757793d
make sure unsigned time_t doesn't hurt (follow-on to ITS#4872)
2007-03-17 14:45:41 +00:00
Pierangelo Masarati
9be22e18bf
remove lint (ITS#4878)
2007-03-17 14:22:44 +00:00
Pierangelo Masarati
71c93265e2
fix ITS#4874
2007-03-15 01:07:19 +00:00
Pierangelo Masarati
a28eb7817a
fix cleanup
2007-03-14 01:05:42 +00:00
Pierangelo Masarati
8e8633b241
add support for binary attributes (ITS#4868)
2007-03-13 00:34:37 +00:00
Howard Chu
0d5a53815a
Don't generate schema entries for include files that didn't define schema
...
elements. Use proper directory separator on Windows
2007-03-12 22:47:43 +00:00
Pierangelo Masarati
f0a7cee642
remove lint (ITS#4865)
2007-03-11 17:46:46 +00:00
Pierangelo Masarati
fd1efa13d0
fix previous commit (ITS#4861)
2007-03-09 17:24:56 +00:00
Pierangelo Masarati
6a9c44849c
check consistency of referrals and result code (ITS#4861)
2007-03-08 17:57:49 +00:00
Pierangelo Masarati
d07f85fc91
fix subtree shortcut (ITS#4856)
2007-03-05 19:39:32 +00:00
Pierangelo Masarati
f88449bcba
fix str2anlist handling of undefined objects (ITS#4854)
2007-03-05 16:18:41 +00:00
Pierangelo Masarati
5d00861860
Solaris doesn't like NULL pointers in printf, which now can occur since IA5string allows the empty string
2007-02-26 23:57:34 +00:00
Pierangelo Masarati
18b1fd4e5f
Solaris doesn't like NULL pointers in printf, which now can occur since IA5string allows the empty string
2007-02-26 20:38:20 +00:00
Pierangelo Masarati
2271fb4636
detect braindead entries (e.g. from back-perl, ITS#4845,ITS#4852)
2007-02-26 09:50:19 +00:00
Howard Chu
4ae77ae266
ITS#4851 retry if opening a supposedly clean shared memory env fails
2007-02-24 20:18:56 +00:00
Pierangelo Masarati
5ed0fc3749
re-fix previus commit the other way 'round (rids are < 1000)
2007-02-24 18:29:55 +00:00
Pierangelo Masarati
b0f63112be
fix type/format mismatch
2007-02-24 18:00:46 +00:00
Howard Chu
0b70e471f0
Fix prev commit
2007-02-24 17:34:40 +00:00
Howard Chu
df3da23811
ITS#4848 better config context tracking
2007-02-24 17:24:48 +00:00
Pierangelo Masarati
e5ebfe6662
improve async connect handling in case of errors
2007-02-21 22:22:14 +00:00
Pierangelo Masarati
34fde82589
fix in-directory retcode lookup
2007-02-21 14:17:25 +00:00
Pierangelo Masarati
d130b7422f
this should never occur, but in case keep it readable
2007-02-20 23:08:09 +00:00
Pierangelo Masarati
9555065fea
only fetch user if and as soon as required by filter
2007-02-17 17:35:11 +00:00
Pierangelo Masarati
814e6a305f
extensibleObject allows all
2007-02-17 17:31:45 +00:00
Howard Chu
06212e9de9
Plug leaks
2007-02-16 02:22:24 +00:00
Kurt Zeilenga
5953a397fc
Fix C errors
2007-02-15 01:41:56 +00:00
Ralf Haferkamp
663d3bdf07
bdb-Database need objectclass "olcBdbConfig", removed double quotes from DNs
2007-02-14 16:16:08 +00:00
Howard Chu
9b6f1edf9e
ITS#4830 move -lltdl earlier in link order
2007-02-14 15:28:57 +00:00
Howard Chu
e28627f1e2
Added "slapd" rewrite map handler, connection_fake_init2 to use existing
...
tmpmemctx without reinitializing
2007-02-14 08:51:47 +00:00
Howard Chu
7dc2199bfd
Fix rev 1.312
2007-02-14 00:08:26 +00:00
Pierangelo Masarati
4e75fa6345
cleanup
2007-02-13 23:34:42 +00:00
Pierangelo Masarati
5d31a6247c
minor fixes...
2007-02-13 23:33:54 +00:00
Howard Chu
59d4b38a7c
syncinfo_free must be able to free multiple syncinfos
2007-02-13 14:35:53 +00:00
Howard Chu
f649d8a29c
Cleanup si_ctxcsn and si_sids in db_destroy
2007-02-13 13:40:56 +00:00
Howard Chu
52aabd2d21
Coverity deadcode
2007-02-13 11:21:27 +00:00
Howard Chu
3eb81978f3
Coverity leak
2007-02-13 11:10:36 +00:00
Howard Chu
ab2a55d222
Coverity error
2007-02-13 11:03:41 +00:00
Howard Chu
aa19286296
Coverity scan - saved attr may not exist for a Replace
2007-02-13 11:03:16 +00:00
Howard Chu
2bdc0819b4
Fix attribute deletion
2007-02-12 01:01:01 +00:00
Howard Chu
e7c5b684d0
Rework module_unload API
2007-02-11 23:01:08 +00:00
Howard Chu
a031b99546
Fix prev commit
2007-02-11 14:37:21 +00:00
Howard Chu
f2355e91e0
Unconditionalize gmtime_mutex, always use it when calling lutil_csnstr
2007-02-11 13:52:55 +00:00
Howard Chu
762170350f
Coverity - fix IPv6 addr parsing
2007-02-11 11:56:33 +00:00
Howard Chu
782b17eb56
Coverity scan errors
2007-02-11 11:39:00 +00:00
Pierangelo Masarati
a904cc015c
fix crash related to ITS#4839; other issues seem to presist
2007-02-10 10:55:05 +00:00
Howard Chu
ba96ad0b90
Revert memberURL back to STRUCTURAL - test044 breaks otherwise
2007-02-09 18:58:24 +00:00
Howard Chu
b6273ef28a
ITS#4833 refix
2007-02-09 18:49:38 +00:00
Howard Chu
10a0900e2e
Fix prev commit, cleanup fakeroot entry before freeing
2007-02-09 17:39:49 +00:00
Howard Chu
94e7e3ba57
Fix prev commit, free fakeroot on teardown
2007-02-09 17:30:23 +00:00
Howard Chu
2d3c48ccd5
ITS#4838 fix fake root handling broken by prev commit
2007-02-09 17:23:00 +00:00
Howard Chu
fb583c3071
Revert prev commit
2007-02-08 10:29:40 +00:00
Howard Chu
57c5bbf7e4
Just use a readlock in cache loader
2007-02-08 09:27:35 +00:00
Howard Chu
0c25783cee
use dn2id index for extended filters using entryDN
2007-02-08 06:43:28 +00:00
Howard Chu
810ff9ec9d
ITS#4835 add disclaimers about these definitions, use Auxiliary
2007-02-08 02:41:56 +00:00
Howard Chu
113c25598e
Add pointer to an existing document since the netscape.com URLs are dead.
2007-02-08 01:54:32 +00:00
Howard Chu
73eda09be3
Fix entry ordering in config_build_entry
2007-02-07 16:06:41 +00:00
Howard Chu
4642c21f65
ITS#4833 fix olcDatabase index offset
2007-02-07 16:00:03 +00:00
Howard Chu
b278a8967a
Fix redundant frees
2007-02-07 15:09:30 +00:00
Howard Chu
290344e683
ITS#4752 add undo for schema entries.
2007-02-07 14:57:02 +00:00
Howard Chu
4e4356cf2c
Fix redundant frees
2007-02-07 14:54:57 +00:00
Howard Chu
b06eeff43b
ITS#4752 try to undo failed Modifies
2007-02-07 11:42:23 +00:00
Howard Chu
c5b33893f0
Fix fetching of initial contextCSN, updating from syncprov
2007-02-07 06:26:22 +00:00
Howard Chu
9d86bf253f
Improve prev commit
2007-02-07 02:49:40 +00:00
Howard Chu
3fbcfa797e
Re-fix ITS#4720, use rwlock
2007-02-07 01:08:54 +00:00
Howard Chu
04f46aa880
ITS#4832 fix unint'd var
2007-02-07 00:41:15 +00:00
Howard Chu
3f20aa245f
Partially revert prev commit, delete unused parameter, fix psearch response
2007-02-06 05:58:01 +00:00
Howard Chu
1403491288
Fixes for glue and persist chaining
2007-02-06 05:29:00 +00:00
Howard Chu
9467269cef
ITS#4623, entry_get has to pass thru glue layer too
2007-02-06 04:19:56 +00:00
Howard Chu
9381fc42a5
Add overlay hooks for entry_get_rw / entry_release_rw
2007-02-06 04:18:14 +00:00
Howard Chu
578a2b0db4
Default to no sid in initial cookie
2007-02-06 01:19:06 +00:00
Howard Chu
448f584fe5
Fix typo
2007-02-06 01:18:17 +00:00
Howard Chu
4067b97cf4
Add equality match for olcSyncrepl
2007-02-06 00:22:49 +00:00
Howard Chu
d87d11eb09
Add a debug message when skipping an old entry.
2007-02-06 00:06:09 +00:00
Howard Chu
21e4eb3dcc
Fix prev commit - cannot shortcut initial sync
2007-02-05 23:54:07 +00:00
Howard Chu
250cbd286a
Optimization: send sid in cookie to avoid getting our changes sent
...
back to us.
2007-02-05 23:10:22 +00:00
Howard Chu
4e193bc5cb
Fix typos
2007-02-05 12:39:37 +00:00
Howard Chu
5f1fdfa515
Fix prev commit
2007-02-05 11:23:50 +00:00
Howard Chu
b5d8341569
Add timeout / network timeout to bindconf
2007-02-05 11:03:59 +00:00
Howard Chu
2432378de8
Fix compare_csns to accept new cookie when there are more CSNs than
...
we knew about before
2007-02-05 11:03:36 +00:00
Howard Chu
55b29bedf8
Fix prev commit, don't generate a new ctxcsn if we're a consumer with
...
an empty DB
2007-02-05 09:19:46 +00:00
Howard Chu
42aca03eea
Fix typos
2007-02-05 07:55:24 +00:00
Howard Chu
d57ad4f3c0
More for contextCSN checks
2007-02-05 07:36:07 +00:00
Howard Chu
36571123ca
Fix prev commit
2007-02-05 06:47:32 +00:00
Howard Chu
f41343aa21
Add entryCSN comparison for consistency check
2007-02-05 06:07:27 +00:00
Howard Chu
9320f002e3
Fix prev commit, doesn't need permissive modify
2007-02-05 05:59:43 +00:00
Howard Chu
21b49a09e7
Use permissive modify on contextCSN
2007-02-05 05:25:13 +00:00
Howard Chu
fffaea79eb
Preliminary multi-context support for syncrepl. Passes all single-master
...
tests, needs multi-master testing.
2007-02-05 04:50:07 +00:00
Howard Chu
7d2a744acf
Fix prev commit
2007-02-04 00:16:54 +00:00
Howard Chu
51549d2e5d
Add olcServerID for configuring serverID portion of CSN
2007-02-04 00:02:38 +00:00
Howard Chu
0787d0c434
Always initialize global_host
2007-02-03 02:53:10 +00:00
Howard Chu
4b1bb81452
Add lutil_gettime() returning structured time with microseconds. Use
...
microseconds in CSNs. Omit microseconds from modifyTImestamp...
2007-02-02 23:10:30 +00:00
Pierangelo Masarati
5509c20961
keep SlapReply clean (ITS#4828)
2007-02-01 21:58:48 +00:00
Howard Chu
8b43a8475f
Fix ITS#4827, was losing the entryCSN mod.
2007-02-01 05:21:21 +00:00
Howard Chu
384979a07d
Note for future - we should provide macros for all of the syntaxes
...
listed in RFC4517 and just let users use them.
2007-01-31 11:35:20 +00:00
Howard Chu
9fc2268c73
Allow identical duplicate OID macro definitions. Makes it harmless
...
if multiple schema files declare the same macros for common syntax OIDs.
2007-01-31 11:26:04 +00:00
Howard Chu
6d0c164753
More for syncrepl support
2007-01-30 07:29:11 +00:00
Howard Chu
51e58c671e
Fix q[-1] ref in prev commit
2007-01-29 23:56:59 +00:00
Howard Chu
67f16caec0
ITS#4823 allow zero-length IA5String
2007-01-29 04:39:54 +00:00
Pierangelo Masarati
ff9b674899
cleanup back-meta according to back-ldap
2007-01-28 00:53:11 +00:00
Pierangelo Masarati
917ae32030
more about quarantine separation
2007-01-28 00:31:47 +00:00
Pierangelo Masarati
e07dc8c757
fix more spurious return stuff; split quarantine in: detection, exploitation, recovery; describe failure reasons
2007-01-28 00:24:10 +00:00
Pierangelo Masarati
fd71fdf83e
plug one-time leaks related to configuration
2007-01-27 21:15:11 +00:00
Howard Chu
f92dc7b5fa
Partially revert prev commit, just omit the sl_mem_destroy
2007-01-27 18:38:24 +00:00
Pierangelo Masarati
60f48c1932
fix NULL attr value in accesslog (second bit of ITS#4821; might be made cleaner...)
2007-01-27 18:03:30 +00:00
Pierangelo Masarati
5bf79a5686
fix modify opattrs sync replication (ITS#4820; test019 can't be fixed right now)
2007-01-27 16:38:20 +00:00
Pierangelo Masarati
f5d26ed730
add helper (and cleanup)
2007-01-27 14:12:59 +00:00
Howard Chu
e6a009a43b
Delete olcInclude support
2007-01-27 05:58:18 +00:00
Pierangelo Masarati
196fd6308d
do not allow back-meta with no targets
2007-01-26 23:03:46 +00:00
Howard Chu
f58ea89c20
Must use case-insensitive comparisons on attr types
2007-01-26 02:18:44 +00:00
Pierangelo Masarati
6155d91143
don't return adminLimitExceeded unless LDAPv3; use largest among candidates timeouts
2007-01-26 01:59:30 +00:00
Pierangelo Masarati
cf226fb029
implement search timeout when the remote server does not respond in the specified timeout
2007-01-26 01:39:05 +00:00
Pierangelo Masarati
5a228fa87a
implement search timeout when the remote server does not respond in the specified timeout
2007-01-26 00:40:54 +00:00
Pierangelo Masarati
ecc28ff57c
fix cached connection taint in case of timeout
2007-01-26 00:40:05 +00:00
Howard Chu
9b5dbf9e35
Remove extraneous debug statements
2007-01-25 13:53:08 +00:00
Howard Chu
df31c884b4
Free main-thread keys in db_close, can't do it later because the env
...
will be gone.
2007-01-25 12:24:52 +00:00
Howard Chu
ba68a94f11
Plug global_host race condition/leak
2007-01-25 12:16:55 +00:00
Howard Chu
ea8a2894c4
Free main-thread keys in db_close, can't do it later because the env
...
will be gone.
2007-01-25 12:00:40 +00:00
Howard Chu
8d03970944
Fix debug args
2007-01-25 11:56:49 +00:00
Howard Chu
4b4072eb44
Use thread keys to plug slapi leak in connection_fake_init()
2007-01-25 11:55:40 +00:00
Howard Chu
2ec71598cd
Don't muck with sl_mem
2007-01-25 10:33:28 +00:00
Howard Chu
540878020a
Fix call to connection_fake_init, plug leak
2007-01-25 10:01:51 +00:00
Howard Chu
c49f17bfdd
Check for duplicate UUIDs due to ITS#4813 patch
2007-01-25 08:35:27 +00:00
Howard Chu
0126348461
connection_fake_init can leak SLAPI extensions.
2007-01-25 07:22:39 +00:00
Howard Chu
5a263ba88f
ITS#4805 plug remaining leak
2007-01-25 07:10:34 +00:00
Howard Chu
009e911a9d
Listener commit broke test048, skip listener check on Hidden DBs
2007-01-25 05:57:47 +00:00
Howard Chu
183a0f3719
ITS#4810 bi_entry_get_rw() must return the entry regardless of whether
...
it's an alias or referral or not
2007-01-25 04:31:23 +00:00
Howard Chu
35e0956c26
Log the error code too
2007-01-25 04:10:57 +00:00
Howard Chu
7eeeaaf06d
ITS#4810 log a message if be_entry_get doesn't return the entry we want
2007-01-25 04:10:18 +00:00
Howard Chu
1ce42136fb
ITS#4813 don't limit the presence list to the current snapshot. add
...
some debug msgs for the sessionlog list.
2007-01-25 02:06:33 +00:00
Howard Chu
59ff8cc795
Don't touch any other opattrs when updating contextCSN
2007-01-24 09:29:28 +00:00
Howard Chu
d84d5e98fb
ITS#4809 add reqMod attribute to modrdn records so that operational
...
attributes may be propagated. use them in delta-sync.
2007-01-24 09:10:37 +00:00
Howard Chu
c9dd0afdff
Finish prev fix, entryUUID was getting dropped
2007-01-24 05:02:52 +00:00
Pierangelo Masarati
c635e068a2
make Solaris happy with printf of NULLs (ITS#4811?)
2007-01-23 01:30:13 +00:00
Howard Chu
11b1818b16
Partial fix for prev commit
2007-01-22 14:38:07 +00:00
Howard Chu
8b8995913c
More LDIF-format schema, for test049
2007-01-22 13:43:11 +00:00
Howard Chu
b044d51709
More for syncrepl
2007-01-22 13:33:55 +00:00
Howard Chu
10942dceea
Fixes for syncrepl compatibility
2007-01-22 10:53:48 +00:00
Howard Chu
c3545e6060
New modify handler, compares old and new entry and to generate deltas.
...
Avoids unnecessary rewrites of unchanged attributes.
2007-01-22 10:04:10 +00:00
Howard Chu
07aca1c9a6
Preliminary steps to enabling sync replication of config. Needs work.
...
Allow configuring a consumer on the provider that points to the provider
but is a no-op. This ensures that the consumer will continue to be a
consumer after the replication occurs.
2007-01-21 13:44:32 +00:00
Howard Chu
67b08ebe77
Don't use ldap_pvt_thread_pool_context_reset(), it interferes with
...
dynamic adds.
2007-01-21 13:02:05 +00:00
Howard Chu
fc30db2190
Fix - don't just generate missing cn=schema entry in memory, write it
...
out as well.
2007-01-21 11:22:52 +00:00
Kurt Zeilenga
3297be046b
silence warnings
2007-01-19 07:31:02 +00:00
Pierangelo Masarati
814b8a1438
don't bail out if all targets are too lazy...
2007-01-18 01:13:39 +00:00
Pierangelo Masarati
02af23c4c1
allow modules to muck with connection tree and so
2007-01-18 00:02:29 +00:00
Pierangelo Masarati
7701c82b68
fix ITS#4802
2007-01-17 22:22:00 +00:00
Pierangelo Masarati
b604ef8d52
test mapped error code (ITS#4808)
2007-01-17 21:52:13 +00:00
Howard Chu
9a8b3f711e
Only sort the first time
2007-01-17 10:43:37 +00:00
Howard Chu
5d4c8f86bf
Fix prev commit
2007-01-17 10:02:53 +00:00
Howard Chu
ecb06964c5
Cleanup prev commit
2007-01-17 02:46:41 +00:00
Howard Chu
9898983d58
Minor tweaks, put dup EntryInfo's on free list instead of destroying them
2007-01-17 02:43:05 +00:00
Pierangelo Masarati
4b9f4c688a
allow to specify the required access privileges in internal operations (ITS#4806)
2007-01-16 22:13:44 +00:00
Pierangelo Masarati
dfff749f04
fix dumb overparanoid test
2007-01-16 11:30:24 +00:00
Pierangelo Masarati
8b2e8ece5c
fix leak (ITS#4805)
2007-01-15 15:02:14 +00:00
Howard Chu
1f853acfc9
Shortcut when no index info is present
2007-01-15 01:27:02 +00:00
Howard Chu
e5285894ce
Keep attr list intact, glued DBs may need it
2007-01-15 01:23:02 +00:00
Howard Chu
a94c74987e
ITS#4554
2007-01-15 01:20:08 +00:00
Howard Chu
5d3f3c240d
ITS#4554 slapindex takes a list of attributes to index
2007-01-15 01:14:14 +00:00
Pierangelo Masarati
ee2370bf42
one more round of cached connections fixes/improvements
2007-01-13 11:51:28 +00:00
Quanah Gibson-Mount
7b503e6290
logging cleanup
2007-01-12 22:55:39 +00:00
Howard Chu
f2be5ad0e7
Log errors in delta sync
2007-01-12 09:59:15 +00:00
Howard Chu
b941856404
Set upper bound on EntryInfos, fixed at 4x Entry cachesize.
...
Probably should be tunable. Probably should add hit/miss counters
to monitor to assist in tuning...
2007-01-12 07:35:34 +00:00
Pierangelo Masarati
270dfe4db8
free entry in a cleaner manner (ITS#4801?)
2007-01-11 22:13:54 +00:00
Pierangelo Masarati
78362d5acf
fix entry deallocation
2007-01-11 21:33:39 +00:00
Pierangelo Masarati
aba0eacaee
don't list (other) structural classes
2007-01-11 20:57:43 +00:00
Pierangelo Masarati
53d6d3c957
streamline group attr specification/diagnostics
2007-01-11 20:41:43 +00:00
Pierangelo Masarati
fb2e448e87
cleanup
2007-01-11 18:57:37 +00:00
Hallvard Furuseth
8ce3f67c99
Delete unused label.
2007-01-11 12:04:49 +00:00
Hallvard Furuseth
d16754c81b
Delete unused variables.
2007-01-11 12:04:22 +00:00
Hallvard Furuseth
a8eacbb355
assert expects int. (int)<nonnull ptr> can be 0. Use assert(arg!=NULL).
2007-01-11 12:03:20 +00:00
Howard Chu
5bcd9243f2
Don't zero out attr value flags
2007-01-10 20:48:37 +00:00
Kurt Zeilenga
3cdba151ad
trim listed modules
2007-01-10 01:57:26 +00:00
Pierangelo Masarati
fc20e15556
further cleanup
2007-01-10 00:53:05 +00:00
Howard Chu
a2e299eb22
ITS#4799 remove kerberos / kbind
2007-01-10 00:23:28 +00:00
Howard Chu
15eb08e562
ITS#4799 additional patches
2007-01-10 00:19:24 +00:00
Howard Chu
c2bba7e258
ITS#4799 remove kbind references. (kind of moot, since slurpd
...
itself is also deprecated...)
2007-01-09 23:55:13 +00:00
Pierangelo Masarati
e79580d203
disallow invalid per-syntax shortcuts
2007-01-09 15:33:54 +00:00
Pierangelo Masarati
3042c57ac0
allow forcing abandon of search operations on a connection basis
2007-01-09 12:19:04 +00:00
Pierangelo Masarati
b73915d36f
fix build without TLS
2007-01-09 12:17:46 +00:00
Howard Chu
afabf44493
Fix prev commit
2007-01-09 02:09:44 +00:00
Howard Chu
99a1d0f979
Fix TLS parsing
2007-01-09 01:35:31 +00:00
Pierangelo Masarati
e2d65fb69b
fix previous commit(s)
2007-01-09 00:59:17 +00:00
Howard Chu
a6a8fb514b
Add TLS context configuration
2007-01-08 23:36:24 +00:00
Pierangelo Masarati
7bcca30623
better handling of critical conditions
2007-01-08 21:37:45 +00:00
Howard Chu
1cc1f9b18a
Make syncrepl inherit default TLS settings from main slapd config (except
...
for reqcert, default demand)
2007-01-08 20:16:45 +00:00
Howard Chu
813cca89a6
ITS#4797
2007-01-08 19:10:23 +00:00
Pierangelo Masarati
82de650b19
fix idassert mode=self for anonymous operations (ITS#4798)
2007-01-08 18:34:59 +00:00
Pierangelo Masarati
3c012a606b
fix response code mapping
2007-01-08 00:13:28 +00:00
Pierangelo Masarati
671330a051
better async connection and partial error handling
2007-01-07 22:06:13 +00:00
Pierangelo Masarati
da8dd8066d
don't leave attrs with no values 'round; fix description
2007-01-07 18:53:09 +00:00
Pierangelo Masarati
0e835b0c32
self-document thread monitoring
2007-01-06 16:19:15 +00:00
Pierangelo Masarati
45edf395eb
cleanup ITS#4781 enhancement
2007-01-06 00:45:02 +00:00
Pierangelo Masarati
b0f06da400
improve disconnect handling
2007-01-05 16:18:42 +00:00
Pierangelo Masarati
d132415e5f
cleanup
2007-01-05 10:34:32 +00:00
Howard Chu
2082b1f9f0
Avoid calling purge too often
2007-01-05 06:49:25 +00:00
Pierangelo Masarati
c56564e2b5
disconnect without notice
2007-01-04 20:17:53 +00:00
Pierangelo Masarati
963eaf63b6
return unsolicited responses
2007-01-04 19:58:29 +00:00
Howard Chu
001ce8e493
Partially revert prev commit, fix lru_purge loop
2007-01-04 11:01:59 +00:00
Howard Chu
57fa57b1d1
Fix HDB - don't use IDL cache when it's not configured
2007-01-04 10:56:18 +00:00
Howard Chu
e48f72c1b5
Unify use of BDB lockers
2007-01-04 08:36:59 +00:00
Howard Chu
23a2339090
Fix prev commits...
2007-01-04 03:26:54 +00:00
Howard Chu
f2acc11976
Simpler fix
2007-01-04 03:17:59 +00:00
Howard Chu
831d1cccc7
Fix idl_cache teardown again - skip if cache is empty
2007-01-04 03:14:46 +00:00
Pierangelo Masarati
bce4063a17
shortcut schema mapping if not configured
2007-01-03 21:35:18 +00:00
Pierangelo Masarati
3284f54ec0
silence warnings
2007-01-03 21:34:49 +00:00
Howard Chu
e094bef172
Remember our own success code in case an overlay changes it
2007-01-03 20:28:56 +00:00
Howard Chu
f206f3ddc0
Just return API errors to the frontend, don't attempt to send them.
2007-01-03 20:21:07 +00:00
Howard Chu
5cfd2f6d97
Use Clock algorithm for IDL cache too
2007-01-03 19:00:07 +00:00
Howard Chu
6d1ca0a769
Delete unused idl_cache_entry rwlock field
2007-01-03 05:36:49 +00:00
Howard Chu
d5a7e252b3
#if out unnecessary code in prev commit
2007-01-03 02:10:30 +00:00
Howard Chu
2c1f91dd0f
Tweak entry alignment, play with STRIPE/STRIDE definitions to test.
2007-01-03 02:06:06 +00:00
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Howard Chu
1f79382c4f
FWIW, SIGBREAK on Windows should only be ignored when running as a Service.
2007-01-02 10:10:16 +00:00
Howard Chu
68a0e0d922
Revert to ordering behavior of original attrs_free()
2007-01-01 13:42:36 +00:00
Howard Chu
822888eafc
Bypass a few redundant locks
2007-01-01 11:44:39 +00:00
Howard Chu
6074f48fa7
Tweak cache_lru_print
2007-01-01 11:17:13 +00:00
Howard Chu
a5546a22a8
Fix prev commit, hdb_cache_find_parent
2007-01-01 07:09:22 +00:00
Howard Chu
dcd5c74914
Drop unnecessary memset()s
2007-01-01 06:46:47 +00:00
Howard Chu
cd35516bdc
Fix typo in prev commit
2007-01-01 02:16:25 +00:00
Howard Chu
37dfbd3e8b
Fix prev commit
2007-01-01 01:07:57 +00:00
Howard Chu
d7fa1e764d
partial revert - keep acquiring BDB lock in lru_purge.
2007-01-01 01:00:19 +00:00
Howard Chu
b8309b4cf8
Cleanup db_lock/unlock parameters
2006-12-31 23:37:06 +00:00
Howard Chu
a720011c8a
Ditch LRU cache replacement in favor of 2nd-chance/clock.
...
Much better concurrency.
2006-12-31 16:16:48 +00:00
Howard Chu
ff93c6bef7
Don't log EAGAIN returns from ber_get_next()
2006-12-31 16:15:45 +00:00
Howard Chu
598ef9e685
Fix prev commit
2006-12-30 12:47:17 +00:00
Howard Chu
e844a6956d
In bdb_cache_add use a readlock outside the txn to protect the entry
...
until send_ldap_result completes.
2006-12-30 12:05:55 +00:00
Howard Chu
6222b79bc8
streamline attrs_free
2006-12-29 01:00:24 +00:00
Pierangelo Masarati
0544badf19
move slapo-denyop to contrib/slapd-modules/debyop/
2006-12-28 16:30:53 +00:00
Pierangelo Masarati
26c2c98196
move slapo-lastmod to contrib/slapd-modules/lastlog/ (ITS#4701)
2006-12-28 16:23:57 +00:00
Pierangelo Masarati
bd33fc8678
fix filter structure leak (ITS#4794)
2006-12-28 10:32:46 +00:00
Howard Chu
d0467a5961
cleanup debug msg
2006-12-27 01:15:05 +00:00
Howard Chu
d2fc667fe7
Fix connection_get race condition on Windows
2006-12-26 23:40:00 +00:00
Howard Chu
a2dc5dd494
Fix prev commit
2006-12-26 11:34:33 +00:00
Howard Chu
03dbc30deb
Use temporary AttributeDescriptions to prevent unbounded growth
2006-12-26 04:51:08 +00:00
Howard Chu
90b2976413
ITS#3707 changed SLAPD_FILTER_COMPUTED
2006-12-26 00:00:48 +00:00
Howard Chu
3bf226382e
ITS#3707 preserve filter input, allow (and ignore) undefined attributes
2006-12-25 23:30:45 +00:00
Pierangelo Masarati
7e8242d50d
pool privileged connections (ITS#4791)
2006-12-24 18:23:36 +00:00
Pierangelo Masarati
1939ed3fc2
apparently, structural_class() args changed
2006-12-24 15:45:48 +00:00
Pierangelo Masarati
6193ee4003
don't leak callbacks if stuff cannot be registered; provide a means to dispose of private stuff if required
2006-12-24 15:44:56 +00:00
Pierangelo Masarati
c3960b98d3
fix RID format
2006-12-24 15:43:43 +00:00
Pierangelo Masarati
186d30288d
silence warning
2006-12-24 15:43:01 +00:00
Pierangelo Masarati
9edb2d518e
plug rootDSE info one-time leak
2006-12-24 10:51:07 +00:00
Pierangelo Masarati
3de9659781
(blind) compile fix; please review
2006-12-24 10:50:22 +00:00
Howard Chu
01744806a3
ITS#4788 op->o_no_schema_check allows unknown attrs in slap_mods_check
2006-12-24 07:14:54 +00:00
Howard Chu
45fbb173b7
Pass op to slap_mods_check()
2006-12-24 06:55:02 +00:00
Howard Chu
e955bbeaf5
Unify rs_modlist in Add/Modify/Modrdn req structs
2006-12-24 06:45:57 +00:00
Howard Chu
79885438e7
Revert prev commit, need a different solution
2006-12-24 06:26:01 +00:00
Howard Chu
b60644a07f
Fix prev commit, renaming schema
2006-12-24 03:51:08 +00:00
Howard Chu
58886b6a9c
ITS#4337 insert EntryInfo in proper slot
2006-12-24 03:44:08 +00:00
Howard Chu
36317874b7
ITS#4337 allow suffix overlap when inserting new DB before existing ones
2006-12-24 01:27:35 +00:00
Howard Chu
6020a6d81d
ITS#4337 implement modrdn for back-config
2006-12-24 00:56:37 +00:00
Howard Chu
fcc51c0497
Fix modrdn, must also rename the directory if it exists.
2006-12-24 00:54:14 +00:00
Howard Chu
b6d860f556
ITS#4788 don't return auditContext attr on syncrepl searches
2006-12-23 22:10:34 +00:00
Pierangelo Masarati
7684514535
fix typo (ITS#4784)
2006-12-21 22:05:49 +00:00
Howard Chu
69beae5d7d
ITS#4733 make sure frontend and config DB entries exist.
2006-12-21 07:36:16 +00:00
Howard Chu
df54b1a244
In connections_shutdown - check for Uninitialized struct first, since
...
attempting to lock an unint'd mutex may crash on some platforms. And
there is no chance for an unint'd conn to get init'd while shutdown
is occurring, so the unprotected check of struct state is safe.
2006-12-21 06:06:32 +00:00
Howard Chu
5747896ba0
ITS#4780 plug leak
2006-12-20 05:41:14 +00:00
Pierangelo Masarati
4483e79906
further fix of ITS#4782
2006-12-19 22:11:33 +00:00
Pierangelo Masarati
6752a27c0e
(almost) blind fixes to ITS#4782
2006-12-19 21:59:23 +00:00
Howard Chu
08b209ffa9
ITS#4782 quick fix, never send result from proxy authz check.
2006-12-19 20:37:38 +00:00
Howard Chu
7d9361e498
Fix: don't modify original filter in filter_map_rewrite
2006-12-19 19:47:01 +00:00
Howard Chu
8c90df8314
Fix cleanup for extended ops
2006-12-19 01:14:35 +00:00
Howard Chu
8274bc75e0
Fix rev 1.121/1.122
2006-12-18 22:42:46 +00:00
Howard Chu
01c38dd6ea
ITS#4458 re-encode passwd request
2006-12-18 22:30:47 +00:00
Howard Chu
39c3efdd7b
Pass extended ops thru as well
2006-12-18 22:29:45 +00:00
Howard Chu
8b457119ac
Use a specific sr_type for intermediate Glue results
2006-12-18 19:46:40 +00:00
Howard Chu
44dfc63877
Fake intermediate Results to prevent premature cleanup
2006-12-18 03:10:04 +00:00
Howard Chu
da7a4a0708
Fix prev commit
2006-12-18 02:35:32 +00:00
Pierangelo Masarati
f52bb3d2c7
catch double free
2006-12-18 01:29:07 +00:00
Pierangelo Masarati
7bcbd40344
catch invalid read (i == -1)
2006-12-18 01:28:43 +00:00
Howard Chu
23423cd086
Fix callback handling
2006-12-18 00:27:38 +00:00
Howard Chu
ccf7b0fb04
Remove redundant search cleanup
2006-12-18 00:02:00 +00:00
Pierangelo Masarati
4e11af075f
- add support for "use-temporary-conn" much like back-ldap
...
- fix various connection creation/setup concurrency issues
- use shared connection when always idasserting (similar to ITS#4781)
- reduce the impact of schema mapping when not used (tnx to gprof)
- fix temporary/tainted connection leak in abnormal conditions
2006-12-17 23:52:23 +00:00
Howard Chu
28793246e6
ITS#4638 restore params for Compare and Modify
2006-12-17 23:49:42 +00:00
Howard Chu
1e849ec14d
ITS#4638 restore original parameters on op completion
...
(this is preliminary, more work remains)
2006-12-17 22:57:45 +00:00
Pierangelo Masarati
96152e2a3f
fix another typo
2006-12-17 22:48:17 +00:00
Pierangelo Masarati
68fd83f2fd
further fix previous commit
2006-12-17 22:21:41 +00:00
Pierangelo Masarati
ef0261e84c
cleanup and document ITS#4781 commit
2006-12-17 22:20:02 +00:00
Pierangelo Masarati
3e427ad75a
support a separate cached connection for binds when using (liberal) idassert flagged with "override" (ITS#4781)
2006-12-17 22:11:40 +00:00
Pierangelo Masarati
8830e0628e
more portable fix to ITS#4756
2006-12-17 22:03:03 +00:00
Pierangelo Masarati
298d439d59
add support for auditContext (schema differs a bit from <draft-chu-ldap-logschema>, expired)
2006-12-16 14:55:47 +00:00
Quanah Gibson-Mount
0523f0e3a7
cleanup
2006-12-16 03:33:27 +00:00
Pierangelo Masarati
15d601e7bc
refine previous commit
2006-12-15 02:10:22 +00:00
Pierangelo Masarati
917fbf427a
make slap_sasl_open() comply with URL notation for IPv6 addresses
2006-12-15 02:01:58 +00:00
Pierangelo Masarati
5e3d7a55dc
rewrite chased DN according to referral's (ITS#4776)
2006-12-15 02:00:24 +00:00
Pierangelo Masarati
97e6225cc9
implement full IPv6 support in ACLs; use URL notation (as suggested by Howard) to disambiguate parsing (ITS#4756)
2006-12-15 01:11:11 +00:00
Pierangelo Masarati
d29d83a80e
protect assertion behind mutex (test should be atomic anyway...)
2006-12-14 19:22:00 +00:00
Howard Chu
4d9d4e2538
Fix connections_shutdown()
2006-12-14 02:12:39 +00:00
Howard Chu
1f35a953a1
Remainder of fix for ITS#4615 - stop processing overlay stack at glue
...
boundary
2006-12-13 03:03:47 +00:00
Howard Chu
69c4495bc2
ITS#4768 more be_add fallout
2006-12-12 21:00:12 +00:00
Howard Chu
871201e0d6
Fix prev commit
2006-12-12 20:04:44 +00:00
Howard Chu
499c9369e1
ITS#4777 fix modlist delete
2006-12-12 19:39:28 +00:00
Kurt Zeilenga
2761b06c58
ITS#4775: blind fix for buffer overflow condition in dead KrbIV code
...
(KrbIV code likely should be removed)
2006-12-12 14:18:54 +00:00
Kurt Zeilenga
80d74dc2cd
Monitor attributes should have dSAOperation usage,
...
not directoryOperation usage. Update test000 to
request return of only @monitor attributes.
2006-12-08 02:30:11 +00:00
Pierangelo Masarati
9fdb9b6e02
give cleanup another chance to free the temporary callback (ITS#4771)
2006-12-07 19:44:04 +00:00
Pierangelo Masarati
0b29856b16
don't use conditionals in macro arguments (ITS#4769)
2006-12-06 11:39:07 +00:00
Howard Chu
77ed3423b9
ITS#4767 fix bdb_add / translucent interaction
2006-12-04 22:06:58 +00:00
Pierangelo Masarati
c89d0db64f
fix deadlock in case of bind error; propagate error as appropriate
2006-12-02 17:09:20 +00:00
Pierangelo Masarati
41c4afb331
improve error message
2006-12-02 16:17:01 +00:00
Pierangelo Masarati
e73ce756cc
fix DN (and berval'ued items requiring) normalization in bindconf_parse (ITS#4766)
2006-12-02 16:13:25 +00:00
Pierangelo Masarati
19dabd2fa8
complain if instantiated outside of a database definition
2006-12-02 10:42:42 +00:00
Pierangelo Masarati
78af5454d2
use case consistent with RFCs (ITS#4764)
2006-12-02 10:30:29 +00:00
Howard Chu
c8a000cb7b
ITS#4765 init slap_daemon.sd_actives
2006-12-01 15:02:14 +00:00
Howard Chu
43f0177a08
Fix prev commit, attrs_dup left a_desc uninit'd
2006-12-01 15:00:10 +00:00
Howard Chu
eb47d50da7
Tweak bei_state so cache_lru_add doesn't ever try to free just-added
...
entries. This allows us to use the frontend's entry directly instead
of having to entry_dup it before adding to the cache.
2006-12-01 14:48:38 +00:00
Howard Chu
b79d63516d
Rewrite attrs_dup with attrs_alloc.
...
Add new entry_dup_bv that dups an entry in a single malloc. Leave it
unused for now; faster but consumes more heap.
2006-11-30 06:03:56 +00:00
Howard Chu
2a9afa55a7
Avoid unnecessary calls to oc_bvfind
2006-11-27 19:59:59 +00:00
Howard Chu
3711183610
Skip checkpoint call if size was not specified - defer time-based
...
checkpoints to the runq job
2006-11-27 19:54:04 +00:00
Howard Chu
ee9623ad0f
Use quicksort in slap_mods_check for finding duplicates.
...
Currently enabled, preserving original order of input. See ifdefs to
alter the behavior: SLAP_MODS_CHECK_QUICKSORT, PRESERVE_ORDER
2006-11-25 10:58:45 +00:00
Pierangelo Masarati
0981516abf
fix ITS#4760 differently
2006-11-24 13:02:26 +00:00
Pierangelo Masarati
de254abb27
destroy cached groups after identity change (ITS#4760)
2006-11-24 11:43:47 +00:00
Pierangelo Masarati
14ac05436a
fix defaults in "group" in parsing (ITS#4761)
2006-11-24 11:29:05 +00:00
Pierangelo Masarati
09abc9f8ae
fix leak in case of retry
2006-11-24 01:44:11 +00:00
Pierangelo Masarati
8326ac21b1
add "report" to "onerr" modes: continue a search in case one target returns an error, and only propagate the error at the end
2006-11-23 23:50:36 +00:00
Pierangelo Masarati
a06fc9cb02
fix backward compatibility issues in ACI; more debug logging (ITS#4759)
2006-11-23 23:29:45 +00:00
Howard Chu
574769395a
ITS#4600 #if out redundant checks. will delete them later.
2006-11-23 11:07:03 +00:00
Pierangelo Masarati
14e1feed1f
fix leak when 'rebind-as-user' is set (and client searches without prior bind)
2006-11-18 18:02:46 +00:00
Howard Chu
dfafda4128
Better tracking of system schema, refresh cn=schema after moduleloads
2006-11-17 22:52:20 +00:00
Howard Chu
701c39ed83
Tone down enum_tree warning
2006-11-17 22:51:04 +00:00
Howard Chu
f0f7324e0e
Keep hardcoded schema together in lists
2006-11-17 20:11:11 +00:00
Howard Chu
28bd54a06d
ITS#4755 add rid to syncrepl debug msgs
2006-11-17 02:11:57 +00:00
Howard Chu
b711426a99
Fix prev commit, reset DB pointer
2006-11-16 14:27:49 +00:00
Howard Chu
7cfa3ae34a
Use runq to defer creation of log root entry; allows the log DB to come
...
after the main DB in the configuration. Allows logging cn=config.
2006-11-16 14:12:09 +00:00
Howard Chu
ee0026ec1e
Don't bother setting up threads if there are no indexed attrs (unlikely...)
2006-11-15 01:20:34 +00:00
Howard Chu
4b6a3e8b6d
Convert schema parsers to ConfigArgs so they can pass errors back to clients
2006-11-15 01:18:37 +00:00
Ralf Haferkamp
cdb9b2e2aa
Add calls to PERL_SET_CONTEXT, as the active thread might not be the one
...
that created the PerlInterpreter object (ITS#4751)
2006-11-14 15:18:50 +00:00
Howard Chu
510c2b881e
ITS#4746 additional leaks
2006-11-13 02:57:05 +00:00
Howard Chu
c9da788f78
ITS#4746 plug leaks
2006-11-13 02:44:45 +00:00
Howard Chu
bd95f8ab1c
ITS#4738 provisional fix, still needs confirmation
2006-11-13 00:24:59 +00:00
Howard Chu
c6bf6672aa
Add valx arg to config_parse_add - indicate which value in the current
...
operation is executing (as opposed to c->valx which indicates which
value in the target is being changed)
2006-11-12 02:22:23 +00:00
Howard Chu
48fce3d119
ITS#4742 cleanup config error reporting
2006-11-12 02:15:49 +00:00
Howard Chu
7a92d4af1f
Short-circuit the mapping search if more than 1 entry is found
2006-11-12 00:54:37 +00:00
Howard Chu
4df4d4f46c
Tweak prev commit, use LDAP_UNAVAILABLE to force early termination
2006-11-11 23:38:01 +00:00
Howard Chu
161574b00d
ITS#4744 authzTo/authzFrom patterns are supposed to allow multiple targets.
...
Partially revert rev 1.126.
2006-11-11 22:55:09 +00:00
Howard Chu
b42d93f24f
ITS#3755 silence strict-aliasing warnings
2006-11-10 10:39:54 +00:00
Howard Chu
47793aa3c9
Fix typo in prev commit
2006-11-09 06:47:47 +00:00
Howard Chu
64a2dbf9d4
ITS#4741 fix error check from external password quality module
2006-11-09 04:06:37 +00:00
Howard Chu
6ac62a7573
Fix - failed Binds could leave a closing connection open.
2006-11-09 01:42:21 +00:00
Howard Chu
d3dc069a62
ITS#4704 use an old CSN while purging log.
2006-11-07 02:12:29 +00:00
Pierangelo Masarati
efb04832bd
rework compare
...
fix several minor issues with using dangling pointers and uninitialized data
fix caching of privileged connections
fix issues with unresponsive target failures during search
2006-11-05 12:05:47 +00:00
Pierangelo Masarati
6f1d78b3ce
s/fprintf/Debug/; improve logging
2006-11-05 09:24:51 +00:00
Pierangelo Masarati
2f861c56a6
cleanup variables scope; re-sort conditions
2006-11-05 09:24:01 +00:00
Pierangelo Masarati
c148b2381e
improve previous commit (ITS#4729)
2006-11-03 08:35:51 +00:00
Pierangelo Masarati
3a2277cdf8
fix dynlist dynamic build (ITS#4729)
2006-11-03 00:29:19 +00:00
Howard Chu
1b1a0ebf18
Tweak prev commit:
...
Preserve delete/replace indication from original request
2006-11-02 19:26:04 +00:00
Howard Chu
730d8e5bd3
ITS#4728 mod/Replace can have no values also
2006-11-02 18:57:55 +00:00
Pierangelo Masarati
71bcd4a4b6
s/ldap_int_discard/ldap_pvt_discard/
2006-10-28 18:13:12 +00:00
Pierangelo Masarati
07abb0eb3a
fix concurrency issue when binding before a search; rework and cleanup data structures (remove unused members)
2006-10-28 16:20:59 +00:00
Pierangelo Masarati
45156c6d7a
need ldap-int.h for ldap_int_discard() declaration (ITS#4717)
2006-10-28 16:19:53 +00:00
Kurt Zeilenga
dbaf7c5c25
More ldapbis cleanup
2006-10-28 04:47:58 +00:00
Kurt Zeilenga
99b954e2c3
LDAPBIS cleanup
2006-10-28 03:53:02 +00:00
Kurt Zeilenga
672f8ef3f3
RFC 4511 calls for unavailableCriticalExtension to returned when
...
a server is unwilling to make use of a known critical control.
2006-10-28 03:52:53 +00:00
Pierangelo Masarati
051cbd3990
missing CVS header
2006-10-26 22:48:34 +00:00
Howard Chu
44475373db
Fix prev commit again (ITS#4722)
2006-10-26 22:10:12 +00:00
Pierangelo Masarati
ca3451504c
fix building without threads (don't publish any thread-related monitor info...)
2006-10-26 21:44:10 +00:00
Howard Chu
b009b1820e
ITS#4720 release csn mutex before checkpointing.
2006-10-26 15:34:40 +00:00
Pierangelo Masarati
6416d83372
add ldap_int_discard(); use it in proxies (ITS#4717)
2006-10-22 20:31:41 +00:00
Pierangelo Masarati
0aebe8af08
rework timeout strategy a little bit
2006-10-21 18:57:27 +00:00
Kurt Zeilenga
857e74bbed
Remove extraneous SLAP_RELAX macro
2006-10-21 03:37:35 +00:00
Howard Chu
9a3138cb55
Fix typo in prev commit
2006-10-17 19:45:55 +00:00
Howard Chu
eb16636abe
Tweak prev commit, add more notes (re ITS#4667)
2006-10-17 19:37:10 +00:00
Howard Chu
354e90a0d9
From rev 1.373, releasing the mutex means connection_close() may get called
...
from another thread. Drop the assert, just return instead.
2006-10-17 19:31:42 +00:00
Pierangelo Masarati
40a893a07e
temporarily change umask only if required
2006-10-15 18:28:22 +00:00
Pierangelo Masarati
8567ce8eed
fix previous commit
2006-10-15 18:24:30 +00:00
Pierangelo Masarati
b6525c14d9
missing decl
2006-10-15 18:03:25 +00:00
Pierangelo Masarati
c0be820648
fix format; silence warning
2006-10-15 18:01:27 +00:00
Pierangelo Masarati
cbf05fd777
log messages related to blocking failures at "none" level as well, so they make it through slaptest
2006-10-15 15:03:02 +00:00
Pierangelo Masarati
59e60483fa
create IPC sockets with wide-open permissions (0222 might suffice; ITS#4709)
2006-10-14 17:35:50 +00:00
Pierangelo Masarati
f449ee6500
cleanup and streamline response handling
2006-10-14 17:12:05 +00:00
Pierangelo Masarati
968da1cb14
add LDAP_OPT_DIAGNOSTIC_MESSAGE; replace deprecated option names
2006-10-14 17:04:17 +00:00
Pierangelo Masarati
b1a2be99c6
don't mix return codes (ITS#4711)
2006-10-14 09:26:22 +00:00
Pierangelo Masarati
fb2d3926ce
only abort update if failed pre/post read control is critical: the only thing RFC 4527 says about failure is that in case of failure of the read, no control is appended to the result message; maybe no failure should ever occur (please review)
2006-10-14 01:08:41 +00:00
Pierangelo Masarati
117caa9aeb
read entry should allow special attributes in request (*, +, 1.1)
2006-10-14 00:59:55 +00:00
Pierangelo Masarati
07f61475c7
read entry needs o_bd for ACLs
2006-10-14 00:59:22 +00:00
Howard Chu
6f13331f4f
Drop extraneous test from copy/paste (1.200) (coverity)
2006-10-08 00:37:18 +00:00
Howard Chu
65f7c1a50d
Fix uninit (coverity)
2006-10-08 00:31:08 +00:00
Howard Chu
acdddee3ab
Fix uninit'd cb (coverity)
2006-10-08 00:26:32 +00:00
Pierangelo Masarati
f8d1a61866
more on clarification of special proxy identities and resilience to connection failure
2006-10-07 18:07:56 +00:00
Pierangelo Masarati
eb29c7c37b
reword comment
2006-10-07 13:12:16 +00:00
Howard Chu
b14e6e00b5
ITS#4695 same fix for delta-sync
2006-10-06 01:57:50 +00:00
Howard Chu
4e9c39d626
ITS#4695 fix modrdn newSup
2006-10-05 03:56:23 +00:00
Kurt Zeilenga
d39809f1ab
Incorporate a bit of text from RFC 4524, just to make a point regarding
...
ITS#4693.
2006-10-03 21:23:02 +00:00
Howard Chu
e9ecaa5d81
ITS#4692 entries without pwdChangedTime attribute have non-expiring pw
2006-10-03 09:25:54 +00:00
Pierangelo Masarati
5714f8565f
fix rebind with idassert when a connection expires; also, fix override
2006-09-30 01:11:19 +00:00
Pierangelo Masarati
576646abb1
DB_BUFFER_SMALL is BDB 4.4 only
2006-09-27 12:34:00 +00:00
Ralf Haferkamp
e1f068f712
Check for the correct return code of cursor->c_get() (DB_BUFFER_SMALL)
2006-09-27 10:51:06 +00:00
Pierangelo Masarati
b769f44619
fix ITS#4686 (retry with idassert)
2006-09-26 15:12:07 +00:00
Pierangelo Masarati
0e9983ff2b
fix ITS#4686 (retry with idassert)
2006-09-26 14:51:47 +00:00
Pierangelo Masarati
067d6904c2
don't know exactly the reason, but here without this back-hdb suddenly starts crashings all times (since bdb_monitor_* stuff)
2006-09-26 08:43:01 +00:00
Pierangelo Masarati
8f90eb97ec
use right, although empty, function in bdb_db_destroy()
2006-09-25 23:45:29 +00:00
Pierangelo Masarati
3133b0a704
not sure, but I believe back-hdb needs monitor.c as well...
2006-09-25 23:44:50 +00:00
Pierangelo Masarati
c4a0d94883
monitor max file descriptor number
2006-09-25 23:44:17 +00:00
Howard Chu
393e6e5ec0
Tweak prev commit, avoid referencing syncop when resetting qtask
2006-09-21 10:12:42 +00:00
Howard Chu
c1fad2d603
ITS#4658 propagate errors from syncprov_sendresp; drop qtask on errors.
...
Note: need a way to close the connection too.
2006-09-21 09:42:40 +00:00
Howard Chu
d6d31af4f0
send_search_reference should propagate errors
2006-09-21 09:28:49 +00:00
Howard Chu
db082f4b1d
Fix prev commit
2006-09-20 20:22:59 +00:00
Howard Chu
f63f46f0b1
Use a single malloc for entry_decode instead of two - partially decode
...
the entry to get nvals first, so the size can be computed.
2006-09-20 02:43:47 +00:00
Pierangelo Masarati
cbc238721a
typo in previous commit...
2006-09-17 22:24:41 +00:00
Pierangelo Masarati
036289f9c4
support for Solaris' /dev/poll (need to manually define SLAP_X_DEVPOLL; needs work yet)
2006-09-17 22:17:34 +00:00
Pierangelo Masarati
dd4d074068
reorganize select interface (ready for /dev/poll)
2006-09-17 22:09:50 +00:00
Pierangelo Masarati
c0c089f4a4
make sure we don't interfere with frontend's entry when the suffix is empty (test027)
2006-09-17 16:45:24 +00:00
Pierangelo Masarati
7fd11ad679
minor cleanup
2006-09-17 16:44:40 +00:00
Kurt Zeilenga
7c68de27c8
Check opattrs add result
2006-09-16 17:20:29 +00:00
Kurt Zeilenga
2c4b2b5566
return structuralObjectClass errors
...
(likely need to be applied to other backends)
2006-09-16 11:48:52 +00:00
Pierangelo Masarati
2b242dee14
private database inherits monitoring from underlying one
2006-09-15 00:23:14 +00:00
Pierangelo Masarati
c92571680d
also work with pcache
2006-09-15 00:16:55 +00:00
Pierangelo Masarati
f34d418ced
more good looking error messages
2006-09-15 00:16:35 +00:00
Pierangelo Masarati
4add034d5d
destroy exactly what needs to
2006-09-14 23:53:23 +00:00
Pierangelo Masarati
6fd9090a0d
fix one-time leak
2006-09-14 22:50:07 +00:00
Howard Chu
f1457a8ce8
Additional fix for ITS#4673
2006-09-14 22:38:45 +00:00
Pierangelo Masarati
524a7bc27a
by now, don't bail out if monitoring cannot be set up
2006-09-14 22:26:37 +00:00
Howard Chu
7fd2e65386
Fix invalid attributes in translucent_modify
2006-09-14 21:11:26 +00:00
Pierangelo Masarati
5bb325054e
fix back-ldap monitoring
2006-09-14 19:56:34 +00:00
Pierangelo Masarati
40cabdc0bc
handle errors
2006-09-14 19:55:52 +00:00
Pierangelo Masarati
67f3fd8078
monitor __ALL__ thread parameters
2006-09-14 18:55:02 +00:00
Pierangelo Masarati
107036a946
fix (temporarily) uninit'ed var
2006-09-14 14:58:00 +00:00
Howard Chu
242274d038
Remove obsolete SLAP_FILTER_DN definitions
2006-09-14 09:29:29 +00:00
Pierangelo Masarati
028a8af7df
comment monitoring by now
2006-09-14 09:06:17 +00:00
Howard Chu
e260fd1c2e
MSVC compatiblity
2006-09-14 08:06:08 +00:00
Howard Chu
3f4e196beb
Portability cleanups
2006-09-14 07:29:46 +00:00
Howard Chu
57c329a3af
ITS#4606 errno is not per-thread on WIN32, always use WSAGet/SetLastError
...
(with notable exceptions: ignore tests for EINTR which winsock never sets)
2006-09-14 06:35:34 +00:00
Howard Chu
8c939e1905
ITS#4565 catch errors from slap_sasl_init / backend_init
2006-09-14 04:52:08 +00:00
Pierangelo Masarati
a87da913cd
further cleanup
2006-09-14 01:07:18 +00:00
Pierangelo Masarati
6e18cdb5fd
add basic monitoring support to back-ldap/slapo-chain (slapo-chain needs work)
2006-09-14 01:05:48 +00:00
Pierangelo Masarati
b890f60e36
minor cleanup
2006-09-14 01:05:02 +00:00
Pierangelo Masarati
1f257bf5ed
URIs need to be between double quotes
2006-09-14 01:02:28 +00:00
Howard Chu
8e9651a598
Tweak ordered index check in check_vals
2006-09-14 00:31:18 +00:00
Howard Chu
18aac0e55e
Cleanup prev commit
2006-09-14 00:14:27 +00:00
Howard Chu
543ae473c5
Forgot the OC delete handler
2006-09-14 00:09:46 +00:00
Howard Chu
9f054b648b
Support dynamic add/delete of attributeTypes and objectClasses
2006-09-14 00:06:04 +00:00
Howard Chu
8e928dbb0b
Use register_at / register_oc
2006-09-13 13:38:24 +00:00
Howard Chu
e04275ca04
Use register_at / register_oc
2006-09-13 13:26:56 +00:00
Howard Chu
ef271979a8
Use register_at / register_oc helpers
2006-09-13 13:05:19 +00:00
Howard Chu
5342ce61dd
Add register_at / register_oc helpers.
2006-09-13 12:48:45 +00:00
Howard Chu
2bfe79fe88
Add BackendInfo.bi_extra for backend custom APIs
...
Use bi_extra for back-monitor entry points. Backends should never
directly reference each other's symbols.
2006-09-13 11:38:51 +00:00
Howard Chu
dd74acbf74
Fix ITS#4672, clear errno before calling STRTOL
2006-09-13 05:34:38 +00:00
Howard Chu
eaf976d56c
Fix typo from 1.667
2006-09-13 05:32:42 +00:00
Pierangelo Masarati
6300e449d8
leave monitor calls in place, hide contents; in the long run, enable monitor and build as static by default
2006-09-12 07:53:19 +00:00
Howard Chu
7cd64d384b
Use #ifdef SLAPD_MONITOR for monitor APIs
2006-09-12 02:59:28 +00:00
Pierangelo Masarati
55b5685425
ldap_back_dobind_int() may need to free a connection
2006-09-11 22:45:19 +00:00
Howard Chu
3e50687bf7
In connection_next, sockets may not be contiguous on Unix if syslog etc are
...
active. Just search to the end of the table, tracking the max isn't worth
the lock overhead.
2006-09-11 21:19:38 +00:00
Pierangelo Masarati
1ab4c624ed
rearrange error handling
2006-09-11 21:04:25 +00:00
Pierangelo Masarati
8eb455e7b2
add sb_version to slap_bindconf;
...
rework slap_client_connect() and slap_discover_feature() accordingly
2006-09-11 00:52:43 +00:00
Pierangelo Masarati
5c9eb73df7
make sure we got the right control...
2006-09-11 00:06:03 +00:00
Howard Chu
c6ed29dc3c
Fix uninit'd *cb (Coverity scan)
2006-09-09 22:15:45 +00:00
Pierangelo Masarati
0e13519191
ld may legitimately be NULL if another operation freed it because of a failure while binding
2006-09-09 17:01:28 +00:00
Pierangelo Masarati
c826725b7a
don't bother about unregistering stuff during shutdown
2006-09-09 16:25:32 +00:00
Pierangelo Masarati
8eab487020
further improve monitoring setup and cleanup
2006-09-09 16:24:35 +00:00
Pierangelo Masarati
2dac2e27b5
- use STRLENOF, looks cleaner
...
- in case a value is incorrectly empty (technically, it's null because
that's how it's returned by the stringification function), make enough
room to add the error string "(null)"
- in case a value is legitimately empty (see above), use it accordingly;
for example, a filter "(entryDN=)" is valid, so it should be possible
to stringify it like that.
2006-09-09 16:23:02 +00:00
Pierangelo Masarati
fdddeb1d8f
minor cleanup
2006-09-09 16:20:11 +00:00
Pierangelo Masarati
4bbffd1d98
more cleanup; add the frontend to the set of monitored databases; handle exceptional cases a bit more smoothly
2006-09-09 02:35:58 +00:00
Pierangelo Masarati
67dd808730
fix entry unlock in case of unhandled scope (ITS#4668)
2006-09-09 00:10:43 +00:00
Pierangelo Masarati
ad4ba42524
support "subordinate" scope
2006-09-09 00:00:44 +00:00
Howard Chu
f82ee25ec1
ITS#4667 in connection_closing, release c_mutex to allow waiters
...
to clear out.
2006-09-08 23:31:53 +00:00
Howard Chu
da6a4bcd3e
ITS#4667 fix assert in connection_next() for PENDING connections
2006-09-08 23:30:31 +00:00
Pierangelo Masarati
4350ce5189
cleanup names
2006-09-08 22:10:49 +00:00
Pierangelo Masarati
0e385af975
- need to be able to set new subsystems when appending entire entries;
...
- in case we appended an entry to a yet unknown parent, we don't know
the full DN, so unregistering needs to be possible based on the
available data;
- complete unregister calls so that not-yet-registered stuff can be
removed from limbo
2006-09-08 22:02:32 +00:00
Pierangelo Masarati
16043971ef
some overlay (rwm?) might set those values
2006-09-08 21:19:47 +00:00
Pierangelo Masarati
a9c4b54f1b
really really minor cleanup
2006-09-08 21:19:05 +00:00
Pierangelo Masarati
edd99f13f4
defer handling of loglevel listing, to let modules register custom subsystems (ITS#4666). Note: in case of any error in between, logging could not occur
2006-09-08 20:49:00 +00:00
Pierangelo Masarati
d5bb38f7e5
complain if "-T" is not the first option
2006-09-08 18:25:34 +00:00
Pierangelo Masarati
c3f9d68027
re-enable "-d '?'" as a means to list what loglevels are available (ITS#4666)
2006-09-08 18:10:53 +00:00
Pierangelo Masarati
b60990780f
custom monitoring can be enabled/disabled via config
2006-09-06 23:08:57 +00:00
Pierangelo Masarati
4d55aeb57c
cleanup subsystems monitoring OID handling
2006-09-06 16:06:49 +00:00
Pierangelo Masarati
df730d8538
check return values (failing when filter invalid)
2006-09-06 15:12:36 +00:00
Pierangelo Masarati
103485bf99
fix use with back-hdb
2006-09-06 15:11:54 +00:00
Pierangelo Masarati
1fc5e8e057
cleanup monitoring resources
2006-09-06 12:07:03 +00:00
Pierangelo Masarati
127ac65c44
implement support for unregistering registered stuff
2006-09-06 12:06:42 +00:00
Pierangelo Masarati
829685e218
improve previous commit
2006-09-06 12:05:38 +00:00
Pierangelo Masarati
6ce47650c9
- objectClass is now AUXILIARY (modifies existing object...)
...
- moved directory path publication from back-monitor/database.c
- added cleanup handler
- minor cleanup
2006-09-06 09:10:46 +00:00
Pierangelo Masarati
1f201f2cb4
remove dependencies on back-{b,h}db
2006-09-06 09:09:03 +00:00
Pierangelo Masarati
70624690c3
add attr_normalize*() helper (please holler if I missed any obvious alternative)
2006-09-06 09:06:50 +00:00
Howard Chu
9c2c30f541
Return current entry/IDL cache counts
2006-09-06 03:37:13 +00:00
Pierangelo Masarati
c67913ce1c
don't get mad if monitor database is not configured
2006-09-06 02:14:32 +00:00
Pierangelo Masarati
ae1481ba62
minor cleanup; plug couple of one-time leaks
2006-09-06 02:06:45 +00:00
Pierangelo Masarati
55f24ce8f6
- setup framework for monitoring of back-bdb/back-hdb stuff in their
...
database entry in cn=monitor
- improve support for custom attribute/callback registration
in back-monitor
- design API for registered antry/attr/callback removal in back-monitor
HEADS UP: now back-bdb requires back-monitor to be present, either static
or dynamically loaded __before__ back-bdb/back-hdb is initialized.
This works for sure if both back-bdb & back-monitor are static or dynamic
(provided back-monitor.la is loaded before back_bdb.la); it is not clear
what happens if back-bdb is static and back-monitor is dynamic. In case,
either make back-bdb monitoring conditional, or hardwire back-monitor
much like back-config and back-ldif.
2006-09-06 01:54:54 +00:00
Pierangelo Masarati
e1b83c881c
better handling of randomness
2006-09-04 08:40:40 +00:00
Pierangelo Masarati
3b3070d223
cleanup handling of sleeps
2006-09-04 08:36:16 +00:00
Pierangelo Masarati
84d6a04c91
improve timeout support (ITS#4157, ITS#4663)
2006-09-04 08:26:09 +00:00
Pierangelo Masarati
150a4f106c
improve timeout support (ITS#4157, ITS#4663); manpage cleanup
2006-09-04 08:24:05 +00:00
Pierangelo Masarati
35f8b9c9f5
release authz resources at shutdown
2006-09-04 07:20:59 +00:00
Pierangelo Masarati
0d2e2772d5
move req2op selection into a helper
2006-09-04 07:17:34 +00:00
Pierangelo Masarati
8129f7e2f2
fix arg format; better trace logging...
2006-09-03 11:14:37 +00:00
Pierangelo Masarati
906ff0d51a
don't abandon binds in progress; rather unbind (ITS#4663).
...
Better logging for tracing
2006-09-03 11:04:27 +00:00
Pierangelo Masarati
00c2498543
back-ldap should only touch the connection timestamp when activity actually occurred (i.e. ldap_result() returned a positive value), otherwise if "the network cable is removed after the connection is established" ldap_result() keeps returning 0 forever...
2006-09-03 11:02:15 +00:00
Pierangelo Masarati
3a83c813df
use preallocated entries? (otherwise bdb_add and others leak...)
2006-09-03 10:58:13 +00:00
Pierangelo Masarati
d95b88da21
plug slapo-ppolicy related leaks (ITS#4665)
2006-09-03 10:53:38 +00:00
Pierangelo Masarati
7c64c28ad5
plug leaks in search filter (and cleanup code; ITS#4664)
2006-09-03 10:45:07 +00:00
Pierangelo Masarati
faa13725e6
remove unnecessary assertion; add test for pending ops
2006-09-01 10:41:54 +00:00
Pierangelo Masarati
cb3248f173
cleanup
2006-09-01 10:01:36 +00:00
Pierangelo Masarati
9e8725a3cc
add an assertion to track ITS#4659; minor cleanup
2006-09-01 10:00:50 +00:00
Pierangelo Masarati
f797bc49a7
minor cleanup
2006-08-31 17:34:01 +00:00
Pierangelo Masarati
8a71ac3740
don't leak identity
2006-08-31 16:21:54 +00:00
Pierangelo Masarati
417ad40596
destroy socket set (man page for epoll_create(2) states that close(2) must be called on the returned filedes)
2006-08-31 13:51:25 +00:00
Pierangelo Masarati
420ed24c79
pick declaration of ch_strdup()
2006-08-30 22:45:26 +00:00
Pierangelo Masarati
afdae4272a
don't run useless (and likely to fail) checks, if possible
2006-08-30 21:05:05 +00:00
Pierangelo Masarati
e172835b55
fix pre-allocated entry/attribute handling
2006-08-29 17:09:08 +00:00
Pierangelo Masarati
c57782ad66
fix pre-allocated entry/attribute handling
2006-08-29 16:07:39 +00:00
Kurt Zeilenga
7c5baf493a
more cleanup
2006-08-29 07:28:22 +00:00
Howard Chu
c9562fa8fb
Hide config schema if !LDAP_DEVEL
2006-08-29 02:02:12 +00:00
Howard Chu
78172aa0cf
Entry/Attribute struct caching, to minimize malloc fragmentation
...
Note: this breaks LDAP_COMP_MATCH and SLAP_ZONE_MALLOC. But they
were probably broken already anyway.
2006-08-29 01:43:23 +00:00
Howard Chu
8ae4cbe643
Must use ch_strdup, not strdup
2006-08-29 01:36:52 +00:00
Howard Chu
f4da18e7e4
TLS ctx is already cleaned up
2006-08-29 01:34:55 +00:00
Howard Chu
cf47d33459
Only set c_sasl_bindop on actual SASL binds
2006-08-29 01:19:34 +00:00
Pierangelo Masarati
7cffbbad26
append global access rules also when be != NULL in backend_startup() (ITS#4654)
2006-08-28 13:31:16 +00:00
Pierangelo Masarati
5d3121902f
Add single-password constraint; NOTE from ppolicy.c:
...
/* FIXME: there's no easy way to ensure
* that add does not cause multiple
* userPassword values; one way (that
* would be consistent with the single
* password constraint) would be to turn
* add into replace); another would be
* to disallow add.
*
* Let's check at least that a single value
* is being added
*/
2006-08-28 12:44:39 +00:00
Quanah Gibson-Mount
761b0a239d
ITS#4358, thanks to Kevine Zerbib
2006-08-28 01:07:25 +00:00
Quanah Gibson-Mount
80073aefa3
Fix comment style.
2006-08-28 01:05:32 +00:00
Quanah Gibson-Mount
3ee11b1c2a
Fix delete type modifys where no value is given to be deleted. (ITS#2612)
...
Thanks to Alister Winfield for the patch.
2006-08-28 01:01:32 +00:00
Quanah Gibson-Mount
88ce76f24e
fix e_private value, goes along with memory leak fix to accesslog.c
2006-08-26 23:20:00 +00:00
Pierangelo Masarati
b898d35647
reduce code duplication
2006-08-26 17:55:56 +00:00
Pierangelo Masarati
9da24acb53
disable X-ORDERED 'VALUES' naming attributes by now
2006-08-26 17:28:07 +00:00
Pierangelo Masarati
828d55be4d
invalidate idle connection if a candidate target does not respond for the duration of time limit...
2006-08-26 15:24:49 +00:00
Kurt Zeilenga
d35d3b2026
Use LINE_MAX instead of BUFSIZ. Per POSIX, LINE_MAX should be at least 2K.
...
For ITS#4651
2006-08-25 20:05:14 +00:00
Howard Chu
ca262ee8e6
Fix test045, test048 use acl-bind credentials on retry if they were set.
2006-08-25 02:16:57 +00:00
Kurt Zeilenga
d3e288dffe
s/managedit/relax/
...
#unifdef -DSLAP_RELAX
2006-08-22 23:31:46 +00:00
Kurt Zeilenga
3d667a4705
remove dontusecopy ifdefs
2006-08-22 20:57:33 +00:00
Kurt Zeilenga
49708e1bd5
Basic donUseCopy implementation
2006-08-22 20:29:14 +00:00
Kurt Zeilenga
a1eb25c595
Initial dontUseCopy implementation
...
Needs to be extended to compare
2006-08-22 20:24:36 +00:00
Kurt Zeilenga
97fa3f1efd
More LDAP_DEVEL cleanup
...
Rename ManageDIT to Relax
2006-08-22 00:45:16 +00:00
Howard Chu
ae5c3db555
More config leaks
2006-08-21 04:25:54 +00:00
Howard Chu
282c00c349
Plug config leak
2006-08-21 04:11:29 +00:00
Howard Chu
d7be822a2a
Fix prev commit
2006-08-19 06:27:11 +00:00
Kurt Zeilenga
9695d292ef
LDAP_DEVEL cleanup
2006-08-19 05:47:05 +00:00
Howard Chu
69fa2d9f93
Move ber_sockbuf_free() to slapd_remove() to avoid using AC_SOCKET_INVALID
2006-08-18 23:54:24 +00:00
Pierangelo Masarati
e4d24ecce8
don't leave dangling conns in the AVL tree
2006-08-18 17:11:41 +00:00
Pierangelo Masarati
5b317f5b85
the conn may not be bound yet even if the bound DN is set...
2006-08-18 15:22:26 +00:00
Pierangelo Masarati
f5c308bdb6
more thread monitoring reworking; connection_pool_max may change via back-config
2006-08-18 10:26:03 +00:00
Pierangelo Masarati
2947c098ce
oi_list might be null if overlay initialization failed for any reason
2006-08-18 10:12:21 +00:00
Kurt Zeilenga
3e89a4ff82
LDAP_DEVEL cleanup
2006-08-18 06:29:46 +00:00
Howard Chu
ad1f0a3239
Fix null pointer reference (coverity scan) and freed pointer reference
2006-08-18 01:37:21 +00:00
Howard Chu
2e3e7ed14f
Fix prev commit
2006-08-18 01:17:44 +00:00
Pierangelo Masarati
9c52a2c4ff
give slapd a chance to play callback cleanup handlers when a search operation is abandoned (ITS#4645)
2006-08-17 19:47:25 +00:00
Kurt Zeilenga
73ec336a89
Add note about setting effectiveness.
2006-08-17 19:33:48 +00:00
Pierangelo Masarati
ea3ffdd135
don't core if out value is NULL (log error instead; in partial fulfilment of ITS#4644)
2006-08-17 17:37:46 +00:00
Pierangelo Masarati
a05a8972b2
fix previous commit
2006-08-17 16:32:11 +00:00
Pierangelo Masarati
9327af55ca
add tasklist monitoring; review runqueue monitoring
2006-08-17 16:10:47 +00:00
Pierangelo Masarati
c458df6441
add bverb_to_mask() API
2006-08-17 16:10:17 +00:00
Howard Chu
098153c5bb
Move socket close into slapd_remove, don't close until after socket
...
is removed from daemon control.
2006-08-17 00:44:38 +00:00
Howard Chu
ccd1273cfe
TS#4622 deletes in psearch didn't always propagate
2006-08-15 21:41:14 +00:00
Kurt Zeilenga
d9720d50dd
Some LDAP_DEVEL cleanup
2006-08-15 19:36:54 +00:00
Howard Chu
44d3972dd7
ITS#4622 if any present list was sent, must send refreshPresent
2006-08-15 12:37:59 +00:00
Howard Chu
55aa8af4be
ITS#4622 make sure queued psearch responses get played after refresh
...
phase completes. Ignore empty sessionlog
2006-08-15 09:28:25 +00:00
Howard Chu
789c76b4ce
Delete curcsn arg to slap_get_commit_csn, redundant with op->o_csn
2006-08-15 09:25:42 +00:00
Howard Chu
7036e2bb89
Delete curcsn arg to slap_get_commit_csn, redundant with op->o_csn
2006-08-15 08:51:49 +00:00
Howard Chu
4629002ec4
Additional shutdown check
2006-08-15 00:04:29 +00:00
Howard Chu
651bc9e40e
Don't purge log entries if a shutdown was requested
2006-08-15 00:02:57 +00:00
Kurt Zeilenga
4ba9bc1c2d
Use LDAP_OTHER to indicate internal error
2006-08-12 21:46:29 +00:00
Howard Chu
11a0ea514a
Tone down default ppolicy msg
2006-08-07 23:33:03 +00:00
Howard Chu
9f75c6a43d
ITS#4634 always init pp->ad
2006-08-07 22:40:51 +00:00
Pierangelo Masarati
bd8e1bb522
make log messages more esplicative
2006-08-05 16:34:19 +00:00
Pierangelo Masarati
b1faecd35c
process callbacks first; they are supposed to remove modifications they successfully handled, so that regular modify function can complain if any unhandled modification remains
2006-08-05 15:51:13 +00:00
Pierangelo Masarati
bbdc0bcd00
fix logging
2006-08-05 12:33:53 +00:00
Pierangelo Masarati
cc84163f30
factor connection code out of syncrepl
2006-08-04 19:20:59 +00:00
Pierangelo Masarati
4f395ab4ff
fix uri rewriting
2006-08-03 01:15:41 +00:00
Quanah Gibson-Mount
da1e743491
Minor typo fix (maintaned -> maintained)
2006-08-01 01:27:02 +00:00
Howard Chu
b915969d29
ITS#4589 slap_get_commit_csn occasionally returns a curcsn that points
...
to already-freed memory. That bug still needs to be tracked down. This
patch deletes curcsn and just uses op->o_csn, which did not exist when
this code was originally written.
2006-07-28 02:40:38 +00:00
Howard Chu
5757065736
ITS#4622
...
syncrepl: don't save contextCSN on incoming context entry
syncprov: delete contextCSN on checkpoint if ctxcsn is empty
2006-07-27 10:44:22 +00:00
Howard Chu
acea44af02
ITS#4622 additional fix
2006-07-26 21:36:44 +00:00
Howard Chu
04d7e356a7
ITS#4534, don't update the context cookie with the delete syncID set
...
cookie, that's only an intermediate value.
ITS#4622, don't update the context cookie until all the nonpresent
deletes are finished.
2006-07-26 21:23:21 +00:00
Howard Chu
00addd5d68
ITS#4613 - fail to start if lastmod is off
2006-07-24 00:32:27 +00:00
Howard Chu
2a2115d70c
Fix prev commit, update kid counters too
2006-07-19 00:06:57 +00:00
Howard Chu
0340a1f1bf
ITS#4616 fix cache_modrdn bei_state management
2006-07-18 10:22:48 +00:00
Howard Chu
4ccf65d9bc
ITS#4614 - complain if glue/subordinate are attempted on the same backend
...
cleanup overlay list if overlay db_init fails.
2006-07-15 00:18:44 +00:00
Howard Chu
6d601637c7
Resurrect special refint modifiersName
2006-07-14 22:19:00 +00:00
Howard Chu
89697d3a93
Each refint op needs a unique timestamp, must perform searches as rootdn
2006-07-14 01:55:57 +00:00
Howard Chu
d145f84e9f
s/HPcfgOv/OLcfgOv/
2006-07-12 07:05:09 +00:00
Howard Chu
2e241a457c
ITS#4609, dynamic config support from Neil Dunbar
2006-07-12 02:14:22 +00:00
Howard Chu
bab03f6d5c
Additional purge changes for rev 1.120, don't keep the current thread
...
busy unnecessarily
2006-07-12 01:55:21 +00:00
Howard Chu
9a35796594
RE23 seems to still need these ACL states
2006-07-09 22:23:14 +00:00
Howard Chu
86f1f7e047
Cleanup unused fields from prev commit
2006-07-09 21:32:16 +00:00
Howard Chu
25c4b164a4
ITS#4253 fix value-dependent ACL caching - just record the ACL we'll start
...
looking for, don't cache anything else.
2006-07-09 20:51:00 +00:00
Howard Chu
c94c10a3b8
ITS#4587 fix for uniquemember/NameAndOptionalUID syntax
2006-07-09 10:21:42 +00:00
Pierangelo Masarati
fb11017d64
refine previous commit
2006-07-08 15:04:50 +00:00
Pierangelo Masarati
d16c9aacd7
count candidate unavailable (quarantined) targets
2006-07-08 12:42:09 +00:00
Pierangelo Masarati
36898bbb76
don't sigsegv if has_ldapinfo_dn_ru is erroneously defined; return a (more) meaningful error
2006-07-08 11:47:23 +00:00
Howard Chu
a7870943f7
Fix TLS CTX ref counting
2006-07-02 22:38:01 +00:00
Howard Chu
23a6aa373b
ITS#4596 control can be critical
2006-07-02 02:50:13 +00:00
Pierangelo Masarati
fcab1dd1bc
handle computed filters the best it can (ITS#4604)
2006-07-01 19:00:27 +00:00
Pierangelo Masarati
5dcb4828d7
use bound credentials, if any
2006-07-01 16:45:07 +00:00
Ralf Haferkamp
e1d1d32402
Do "selfwrite" check independent of other <who> clauses (ITS#4587)
2006-06-27 15:26:08 +00:00
Howard Chu
a2dd092291
Fix rootDN check
2006-06-26 13:00:29 +00:00
Pierangelo Masarati
34af916e3f
fix response sending while rebinding (ITS#4597)
2006-06-24 16:58:49 +00:00
Howard Chu
87d9353b12
Dynamic config
2006-06-24 01:35:35 +00:00
Kurt Zeilenga
423a93019f
Misc RFC reference updates
2006-06-21 07:09:39 +00:00
Howard Chu
a79bc61e63
Fix SEGV when ldapadd'ing new schema entries. This functionality needs work.
2006-06-18 02:51:58 +00:00
Howard Chu
a9b0a78248
ITS#4595 additional fix - don't allow age/cycle times of zero.
2006-06-17 13:09:14 +00:00
Pierangelo Masarati
aec9afc4e3
move retry into response handling (fix ITS#4594; partially addresses ITS#4591 as well)
2006-06-17 12:37:45 +00:00
Howard Chu
77dce50110
Omit logpurge attr if no purge time was configured
2006-06-17 01:28:50 +00:00
Howard Chu
bc8550e3c2
Additional ONELEVEL fix
2006-06-16 21:58:40 +00:00
Howard Chu
decba67ee9
ITS#4589 fix slap_compose_sync_cookie
2006-06-15 23:54:51 +00:00
Pierangelo Masarati
a5b520477c
more cleanup for previous commit
2006-06-15 23:43:09 +00:00
Pierangelo Masarati
3ebb40c4dd
port identity assertion to back-meta; share as much code as possible with back-ldap; misc cleanup
2006-06-15 23:12:38 +00:00
Howard Chu
4976b9436d
Require rootDN to be present on logDB
2006-06-15 00:02:35 +00:00
Pierangelo Masarati
c0d95f08c1
record value-dependent state for acl_mask_dn() (ITS#4587)
2006-06-14 18:33:02 +00:00
Pierangelo Masarati
103392b9a3
fix scheme recognition (ITS#4575)
2006-06-13 19:45:11 +00:00
Pierangelo Masarati
4a071da8c2
refine previous commit
2006-06-13 10:03:44 +00:00
Pierangelo Masarati
f6e4f20254
test for ITS#4587; another bit of fix for that
2006-06-13 08:53:34 +00:00
Howard Chu
adba963c32
ITS#4587, selfwrite should apply to more than just USERS acl's
2006-06-13 03:19:07 +00:00
Pierangelo Masarati
ed0d8d0a94
fix "require" inheritance and handling of "none" (ITS#4574)
2006-06-13 00:16:45 +00:00
Pierangelo Masarati
439cd9be74
clean orm_modlist before each mod
2006-06-12 22:56:30 +00:00
Pierangelo Masarati
ea6c83481b
add return-error support to searches
2006-06-12 22:27:52 +00:00
Pierangelo Masarati
0f8f25cf1a
add support for recursive referrals (with simple loop detection) to slapo-chain (ITS#4070); add simple support for returning the error code instead of the original referral (ITS#4570)
2006-06-12 22:09:43 +00:00
Pierangelo Masarati
7e275fdc2c
address ITS#4586
2006-06-12 15:52:23 +00:00
Howard Chu
1a86d4f663
Use separate task for refint operations - avoids re-entrancy issue,
...
prevents delay of client, removes dependency on slap_replog knowledge
2006-06-12 14:06:00 +00:00
Luke Howard
88b499b93d
s/ber_tag_t/int where appropriate
...
Note about possible ITS#4158 breakage for SLAPI_CONN_DN
2006-06-12 08:40:39 +00:00
Luke Howard
e752b0b9af
Don't call search rewriter plugins for internal operations
2006-06-11 10:10:32 +00:00
Luke Howard
0e5ff3dbd0
Add internal bind/unbind/search/compare/abandon plugin types
2006-06-11 09:54:15 +00:00
Luke Howard
60b25fb095
Add internal bind/unbind/search/compare/abandon plugin types
2006-06-11 09:47:54 +00:00
Luke Howard
7ca0a72a3a
fix previous commit
2006-06-11 08:29:07 +00:00
Luke Howard
71827d002d
Add SLAPI_X_OPERATION_NO_SUBORDINATE_GLUE for exposing o_no_subordinate_glue
2006-06-11 06:50:53 +00:00
Luke Howard
1ebfd26ca3
Fix broken referral handling in slapi_send_ldap_result()
2006-06-11 06:49:58 +00:00
Pierangelo Masarati
20542a045f
fix previous commit
2006-06-10 19:47:31 +00:00
Pierangelo Masarati
33d79d1541
fix error mapping
2006-06-10 18:11:52 +00:00
Pierangelo Masarati
bed74c02cc
improve logging
2006-06-10 17:41:55 +00:00
Pierangelo Masarati
ca0184c309
centralize and cleanup bind response handling
2006-06-10 16:33:55 +00:00
Pierangelo Masarati
31a004840d
cleanup identity assertion; ready for porting to back-meta
2006-06-10 16:33:26 +00:00
Pierangelo Masarati
6bd9aa3755
remove unnecessary locks and resource cleanup
2006-06-10 15:30:24 +00:00
Luke Howard
a75a4f4eff
Honour o_no_subordinate_glue
...
Don't pollute o_req_ndn after resetting (hyc please review)
2006-06-10 12:31:22 +00:00
Luke Howard
7c9c559019
add o_no_subordinate_glue member to operation
2006-06-10 12:30:00 +00:00
Luke Howard
dfe20afd84
Fix glue_back_select() behaviour so that it actually does select the most
...
specific backend for the DN (this was broken in the case that subordinate
and subsubordinate backends were glued)
2006-06-10 10:31:17 +00:00
Luke Howard
60b9c90fad
Fix typo when comparing local sock name
2006-06-10 07:37:06 +00:00
Pierangelo Masarati
50c6a95a62
make sure heavy concurrency doesn't cause quarantine loops
2006-06-10 01:08:45 +00:00
Howard Chu
25e12b07b3
fix leak in prev commit
2006-06-09 20:26:36 +00:00
Luke Howard
2941bd8a9e
Handle unknown attributes in SLAPI_SEARCH_ATTRS
2006-06-09 15:54:59 +00:00
Luke Howard
ea45b5b322
fix previous commit
2006-06-09 15:52:44 +00:00
Luke Howard
f4c5bddd9c
Ignore unknown attributes in slapi_send_ldap_search_entry()
...
(mirrors code in slapi_pblock.c)
2006-06-09 15:42:33 +00:00
Pierangelo Masarati
942ca17669
cleanup resource release
2006-06-08 23:41:02 +00:00
Howard Chu
5934d696eb
ITS#4582 complain if no rootDN was set when configuring syncrepl
2006-06-08 11:54:10 +00:00
Howard Chu
f15e31b9a9
ITS#4580 make sure port number is preserved in replica info
2006-06-08 11:37:14 +00:00
Pierangelo Masarati
5466628e81
more about previous commit
2006-06-07 23:36:38 +00:00
Pierangelo Masarati
740f196548
rework quarantine locking and so
2006-06-07 23:25:38 +00:00
Pierangelo Masarati
53175f7ba6
more concurrency cleanup
2006-06-07 21:54:37 +00:00
Pierangelo Masarati
9aecc6c7e0
cleanup
2006-06-07 14:48:10 +00:00
Howard Chu
0657ee85f5
Fix db_init
2006-06-05 22:31:17 +00:00
Howard Chu
16448bf347
Fix prev commit
2006-06-05 21:26:23 +00:00
Howard Chu
e1b17653d6
Fix ITS#4576 reset restrict after successful pw mod
2006-06-05 20:13:40 +00:00
Pierangelo Masarati
63d5a939b3
refine (and fix) back-meta handling of search initialization (ITS#4519)
2006-06-02 17:30:15 +00:00
Pierangelo Masarati
a2b7fd279f
cleanup
2006-06-02 15:43:47 +00:00
Howard Chu
70512edd5a
ITS#4572 don't unlock non-existent locks
2006-06-01 02:03:10 +00:00
Pierangelo Masarati
9b7dc0aa36
trap an issue that occurred in odd conditions
2006-05-31 14:37:05 +00:00
Pierangelo Masarati
759638db20
misc cleanup
2006-05-31 14:11:07 +00:00
Howard Chu
35f6ef6fd6
Cleanup prev commit
2006-05-31 01:52:32 +00:00
Howard Chu
54231dd13f
Only log realdn if it's non-empty
2006-05-31 01:45:39 +00:00
Howard Chu
f4a188bf38
Cleanup config cruft
2006-05-30 12:16:34 +00:00
Howard Chu
bec0b4ef89
Add dynamic config support for auditlog and ppolicy
2006-05-30 11:49:16 +00:00
Howard Chu
1fb33c0e9f
Fix ARG_OFFSET to work with overlays
2006-05-30 11:34:36 +00:00
Pierangelo Masarati
186813daed
rearrange quarantine handling during proxyAuthz bind; bind anonymously if no bindmethod is defined
2006-05-30 01:20:32 +00:00
Pierangelo Masarati
85c9a7b4c5
further cleanop of previous commits
2006-05-30 00:40:39 +00:00
Pierangelo Masarati
f5fcd2c169
cleanup previous commit
2006-05-30 00:12:23 +00:00
Pierangelo Masarati
5854464be2
allow pretty time form in quarantine string
2006-05-29 23:36:12 +00:00
Pierangelo Masarati
a6406de871
make room for plugins that deal with quarantine end
2006-05-29 21:43:20 +00:00
Howard Chu
78809a70c5
Fix modrdn with back-ldap
2006-05-29 07:24:21 +00:00
Howard Chu
d2b27b156e
Add "hidden" database config, allow hidden DBs with redundant suffixes
2006-05-29 06:03:43 +00:00
Howard Chu
59ca2d198f
ITS#4555 add "-j" option to jump to line of LDIF file before processing.
...
Fixed line number in error messages to give the line number of the beginning
of the offending entry.
2006-05-29 02:41:06 +00:00
Pierangelo Masarati
795841b5a4
implement proxy quarantine (ITS#4569)
2006-05-27 19:54:27 +00:00
Pierangelo Masarati
1d24564f9d
fix DN-valued (and likely others not handled in the switch) attrs duplication (occcurred with olcDbSuffix during attrs_dup(); please check)
2006-05-27 19:14:39 +00:00
Howard Chu
62437022ab
ITS#4567 use unique timestamps for ops for cascading delta-sync
2006-05-27 10:26:15 +00:00
Howard Chu
e3bea86205
ITS#4562 - don't assume syncprov_op_response only runs in overlay context;
...
under a glue setup it may be get a real DB, don't corrupt the DB struct.
2006-05-26 12:08:15 +00:00
Pierangelo Masarati
1efd2ef101
(almost blind) fix potential strchr() read-past-end of berval
2006-05-26 00:07:55 +00:00
Pierangelo Masarati
5f58c733cc
enable NOOP (ITS#4563; seems to work now)
2006-05-25 22:45:45 +00:00
Pierangelo Masarati
d1824b14ae
fix NOOP return code (ITS#4563; I'll check and confirm it later; NOOP support might be broken)
2006-05-25 16:58:41 +00:00
Hallvard Furuseth
ce44bdbc37
Constify slapd_slp_attrs (assigned a const char* in main.c:slapd_opt_slp())
2006-05-25 16:32:43 +00:00
Hallvard Furuseth
f9f0b243d6
warning cleanup
2006-05-25 16:15:49 +00:00
Hallvard Furuseth
8c1210cb78
Format fixes: %p takes void*, not struct* whose representation may differ.
...
Warning cleanup.
2006-05-25 16:14:41 +00:00
Hallvard Furuseth
453d3c0710
Format fixes: Debug() arg#2 must be format.
...
Warning cleanup: Move format strings, let gcc recognize them. Unused var.
2006-05-25 16:11:24 +00:00
Hallvard Furuseth
2c3a06321a
2006-05-25 15:59:21 +00:00
Howard Chu
6f08468e2f
Fix concurrency issues
2006-05-25 05:08:04 +00:00
Howard Chu
1ed9fff84c
Fix uninit'd var
2006-05-25 01:05:29 +00:00
Pierangelo Masarati
cff53d4867
allow tools to syslog
2006-05-24 17:57:13 +00:00
Pierangelo Masarati
810a8f0d06
sigh, the test was renamed ages ago
2006-05-24 01:50:57 +00:00
Howard Chu
5e50d2e2e4
Fix prev commit, LE/GE searches advanced in wrong direction.
...
Terminate EQ/SUBSTR query searches sooner.
2006-05-23 02:53:54 +00:00
Pierangelo Masarati
f26bef66c6
cleanup
2006-05-20 15:49:18 +00:00
Pierangelo Masarati
e5c173691d
add cancel strategies (ITS#4560)
2006-05-20 14:29:01 +00:00
Howard Chu
fa2425005a
More cleanup
2006-05-20 05:05:13 +00:00
Howard Chu
b83ef38c51
cleanup debug msg
2006-05-20 05:03:35 +00:00
Pierangelo Masarati
80dfb95241
fix previous commit
2006-05-19 23:33:15 +00:00
Howard Chu
9de3d9c277
Fix idletimeout deadlock
2006-05-19 22:47:33 +00:00
Pierangelo Masarati
16661063d0
silence warnings
2006-05-19 22:37:52 +00:00
Pierangelo Masarati
29af5f93ee
fix limits unparse
2006-05-19 22:34:04 +00:00
Howard Chu
fde6482629
Cleanup (revert ITS#4472, etc.)
2006-05-19 15:51:09 +00:00
Howard Chu
e6475734fa
ITS#4549, rewritten query_containment etc...
2006-05-19 15:25:33 +00:00
Howard Chu
4cc18ee8d4
ITS#4549 kludge, get tavl_ routines referenced
2006-05-19 15:24:56 +00:00
Howard Chu
f0adb769ad
Cleanup query attrs
2006-05-19 09:15:42 +00:00
Howard Chu
8eace69ddb
Cleanup template searching
2006-05-19 08:07:59 +00:00
Pierangelo Masarati
fcbc1f484d
fix referrals return for ops other than search (ITS#4557); use slab memory for temporaries in returning referrals
2006-05-18 22:28:22 +00:00
Howard Chu
9e50b2d0a1
ITS#4552 just rely on ACLs when adding entries under the suffix.
2006-05-18 01:18:48 +00:00
Pierangelo Masarati
9b388e5328
fix cleanup concurrency
2006-05-17 01:34:46 +00:00
Howard Chu
58099cc045
coverity cleanup
2006-05-16 22:16:27 +00:00
Howard Chu
1135d19f16
ITS#4466 fix typo, uninit'd var
2006-05-16 22:16:13 +00:00
Howard Chu
bb11c81178
ITS#4550 don't overwrite remote server's err msg
2006-05-16 21:45:31 +00:00
Howard Chu
5f3bc1f7ec
Fix ITS#4450, don't overwrite remote server's rs->sr_text
2006-05-16 21:30:10 +00:00
Pierangelo Masarati
073f14ceac
lc_bound_ndn is occasionally saved to keep track of who bound; don't use it to bind unless credentials are present as well
2006-05-16 02:56:59 +00:00
Howard Chu
33a3448964
Cleanup - no more SLAP_MULTI_CONN_ARRAY
2006-05-16 01:22:47 +00:00
Pierangelo Masarati
9c9b6f7353
idassert: setup rebind stuff when binding for proxyAuthz, so that referral chasing tries to rebind with the correct identity (partially address ITS#3526)
2006-05-16 01:10:51 +00:00
Pierangelo Masarati
b0c304f759
fix referral rewriting (ITS#4548)
2006-05-16 00:57:46 +00:00
Pierangelo Masarati
3b7084c170
reset the conn field in the cached connection if the bound DN is privileged (ITS#4547)
2006-05-15 01:42:05 +00:00
Pierangelo Masarati
1c16fa382a
line up back-meta to ITS#4546
2006-05-14 18:10:23 +00:00
Pierangelo Masarati
26d1fc8c48
more cleanup of previous commits
2006-05-14 18:09:56 +00:00
Pierangelo Masarati
f87e6270d4
improve previous commit
2006-05-14 17:53:40 +00:00
Pierangelo Masarati
0c2c3ea7e1
typo in previous commit
2006-05-14 17:34:18 +00:00
Pierangelo Masarati
0c33c17bb5
"single-conn" forces flushing of existing conns during rebind on same conn (ITS#4546)
2006-05-14 17:32:15 +00:00
Pierangelo Masarati
6910b36df8
more checks
2006-05-14 16:29:49 +00:00
Pierangelo Masarati
3393b15594
cleanup resource release
2006-05-14 15:11:53 +00:00
Pierangelo Masarati
092aade428
cleanup
2006-05-14 15:11:23 +00:00
Howard Chu
813b95941e
Fixed version of rev 1.361
2006-05-14 03:37:17 +00:00
Howard Chu
0b79eab474
Cleanup epoll read / error behavior
2006-05-14 00:26:33 +00:00
Howard Chu
1cf58aba1c
Revert prev commit, spoke too soon, close race condition came back.
2006-05-13 12:35:12 +00:00
Howard Chu
d74a230229
Simplify connection mutexes
2006-05-13 11:50:00 +00:00
Pierangelo Masarati
93b88e0bbf
make sure realloc'd memory is reset
2006-05-13 02:06:10 +00:00
Pierangelo Masarati
87ba3eb8b0
refine previous commits (don't leave bindings around)
2006-05-12 19:25:31 +00:00
Pierangelo Masarati
c1c8c05c1b
first round at adding passwd exop support to slapo-rwm (ITS#4458)
2006-05-12 15:38:58 +00:00
Ralf Haferkamp
4d46b8b747
Additional fix for ITS#4522. The "dn=" ist not optional.
2006-05-12 11:48:57 +00:00
Howard Chu
d921fcb0c9
ITS#4531 temporarily go back to using quick sort instead of radix sort
2006-05-11 20:05:53 +00:00
Kurt Zeilenga
6651d19320
cleanup
2006-05-11 18:55:50 +00:00
Howard Chu
d8aabb008f
ITS#4537 placate braindead compiler
2006-05-11 18:04:26 +00:00
Ralf Haferkamp
cf1304147d
Add Pre- and Postread Control to the supported controls (ITS#4538)
2006-05-11 16:45:33 +00:00
Pierangelo Masarati
914bf9926f
add "-n" to omit trailing newline
2006-05-11 14:36:20 +00:00
Howard Chu
a0ee28698c
ITS#4516 clear restricted status if other Binds have succeeded
2006-05-11 13:39:44 +00:00
Howard Chu
837e9466b8
ITS#4534 propagate CSN for delete syncID sets
2006-05-11 10:46:44 +00:00
Howard Chu
6e751774c4
Fix for !LDAP_SYSLOG
2006-05-11 04:43:17 +00:00
Howard Chu
ad7d644437
Omit trailing newline from generated password, so it may be directed
...
to a file and used by commandline tools
2006-05-11 03:09:40 +00:00
Howard Chu
b8b8ca1814
Rearrange, ARGS_TYPES should not be bitmasks
2006-05-11 02:13:03 +00:00
Howard Chu
4bf6f8e348
ITS#4535 set default cn=config access to NONE
2006-05-11 00:40:34 +00:00
Pierangelo Masarati
7cc29d2547
allow slappasswd to generate cleartext secret
2006-05-11 00:12:54 +00:00
Pierangelo Masarati
fbbb8a5d93
fix ITS#4522; imply "+0" when no access is given
2006-05-10 22:25:06 +00:00
Pierangelo Masarati
d79fd46f33
don't allow "none" as access level
2006-05-10 22:23:24 +00:00
Howard Chu
f38bf4b362
plug leaks
2006-05-10 13:03:42 +00:00
Howard Chu
ed25c75d60
plug leak
2006-05-10 12:53:36 +00:00
Howard Chu
cc260ed6a0
coverity cleanup
2006-05-10 12:36:49 +00:00
Ralf Haferkamp
b8bf18f36b
ITS#4532: check *pre/postread_ctrl before freeing
2006-05-10 09:07:37 +00:00
Pierangelo Masarati
42ab45aed2
fix warning message
2006-05-09 20:32:25 +00:00
Howard Chu
ab7e975159
check for NULLs from ber_mem funcs
2006-05-09 11:09:04 +00:00
Howard Chu
6b4de96679
plug leak
2006-05-09 10:52:22 +00:00
Howard Chu
0a43acc732
coverity cleanup
2006-05-09 10:41:05 +00:00
Howard Chu
912ff2798b
Fix tlimit munging
2006-05-09 00:01:35 +00:00
Howard Chu
aed92f35c1
refine prev commit
2006-05-08 13:12:12 +00:00
Howard Chu
f7115e761c
Fix strchrlen running past end of berval
2006-05-08 12:43:01 +00:00
Howard Chu
b41f2cad74
Fix dynacl tgrant/tdeny initialization
2006-05-08 09:06:37 +00:00
Luke Howard
87051a2a4a
ITS#4525
2006-05-08 08:58:33 +00:00
Pierangelo Masarati
c2369771f8
cleanup
2006-05-06 17:22:59 +00:00
Pierangelo Masarati
373ded8d24
add URI list resorting feature (ITS#4524)
2006-05-06 16:15:25 +00:00
Pierangelo Masarati
af5b506e37
fix previous commit
2006-05-06 11:53:54 +00:00
Pierangelo Masarati
401b211d98
touch idle-timeout HAVE_TLS odds; silence warning #ifndef HAVE_TLS
2006-05-06 10:50:13 +00:00
Pierangelo Masarati
470fda7744
cleanup version parsing
2006-05-06 10:42:29 +00:00
Pierangelo Masarati
2110880be1
refine previous commit
2006-05-06 03:16:45 +00:00
Pierangelo Masarati
a9b7f3612b
parallelize dobind/search (ITS#4519)
2006-05-06 02:25:53 +00:00
Pierangelo Masarati
b5eb214d79
fix "host=", broken by rev 1.446 of servers/slapd/config.c
2006-05-05 23:53:14 +00:00
Pierangelo Masarati
23c766bbfd
make sure NULL pointers are not dereferenced
2006-05-04 22:07:35 +00:00
Pierangelo Masarati
9447b9fff4
gracefully handle server down while initiating a search (ITS#4518)
2006-05-04 08:37:31 +00:00
Howard Chu
a30fa88ad3
Apply logoldattr / reqOld to modRDN requests as well
2006-05-03 21:29:56 +00:00
Pierangelo Masarati
45b378c753
don't muck with freed memory (spotted by valgrind)
2006-05-03 18:54:04 +00:00
Howard Chu
2a5ecbccaa
Remove some more yield() calls
2006-05-03 07:41:12 +00:00
Howard Chu
6fcc7b9b21
Hide starttls keyword if no TLS
2006-05-03 03:12:16 +00:00
Howard Chu
966c47e5b4
Detect TLS config changes
2006-05-03 02:48:23 +00:00
Howard Chu
d0b796f897
ITS#4515 add missing equality rules
2006-05-02 21:07:49 +00:00
Pierangelo Masarati
af1f87b96d
ldap_pvt_runqueue_next_sched() may return a pointer to data that's freed by task run earlier (ITS#4517)
2006-05-02 20:32:37 +00:00
Howard Chu
608c85a9f0
ITS#4423, fix sessionlog lower bound in playlog
2006-05-02 05:08:59 +00:00
Howard Chu
a8f8dfe747
Use ldap_pvt_thread_pool_tid()
2006-05-02 00:58:05 +00:00
Howard Chu
c58f16d9b5
FIx rev 1.207, ACL parsing
2006-05-01 23:36:38 +00:00
Pierangelo Masarati
3b5d411af2
fix idassert "override"
2006-05-01 22:54:07 +00:00
Pierangelo Masarati
f9f8623f6e
fix automated static build
2006-05-01 14:53:19 +00:00
Howard Chu
d8595b7c6e
ITS#4463 add constraint overlay
2006-04-29 10:03:36 +00:00
Howard Chu
442a3f1fde
searchbase is a required config parameter, log missing params.
2006-04-29 09:24:14 +00:00
Howard Chu
b1534d0ea9
Kludge to allow reading undefined attrs in DNs at startup
2006-04-29 02:15:53 +00:00
Howard Chu
1f6bb31d9d
Honor ACLs, don't just require root any more
2006-04-29 01:26:07 +00:00
Howard Chu
f5558876c0
Log a comment with realdn if different from authzDN
2006-04-28 23:37:35 +00:00
Howard Chu
d38dd74818
Fix adding ACLs to specific DBs vs global/frontend
2006-04-28 23:01:59 +00:00
Howard Chu
e1ec64aaee
rmutex_lock etc.: caller supplies thread id
2006-04-28 21:39:38 +00:00
Howard Chu
15ba27d5c1
Add logoldattr keyword for attributes that should always have their old
...
value logged in a Modify request (that matches the logold filter)
2006-04-28 20:40:43 +00:00
Howard Chu
9207979a86
Use recursive mutex to avoid deadlocks
2006-04-28 20:13:34 +00:00
Luke Howard
51a65afb86
SLAPI_PLUGIN_{PRE,POST}_RESULT_FN should also be called for
...
REP_SASL and REP_EXTENDED in addition to REP_RESULT -- the
distinction is not present in FDS
2006-04-28 08:39:29 +00:00
Howard Chu
716df7c62c
ITS#4512 fix bogus Debug messages in rev 1.48
2006-04-28 06:22:48 +00:00
Howard Chu
eda2b46dd2
Revert 1.96, restore 1.91 functionality
2006-04-28 06:07:05 +00:00
Howard Chu
590bc6a7fa
More logging for ITS#4423
2006-04-28 03:06:47 +00:00
Howard Chu
3879cac787
Fix slapadd of config tree, broken by ITS#4194
2006-04-27 23:52:53 +00:00
Howard Chu
f3ee4f5d30
Fix rev 1.52, frontendDB uses index {-1}.
2006-04-27 23:21:39 +00:00
Howard Chu
32712f4c26
Fix prev commit
2006-04-27 22:47:20 +00:00
Kurt Zeilenga
153e81817f
ITS#4414: SLP attributes support from Peter Marschall
2006-04-27 19:36:40 +00:00
Hallvard Furuseth
2f04f61dc7
Support rootdn
2006-04-27 16:12:59 +00:00
Hallvard Furuseth
a242808f7e
cleanup (unused variable)
2006-04-27 16:05:41 +00:00
Howard Chu
fd20e683df
Add logging for ITS#4423
2006-04-27 09:18:43 +00:00
Howard Chu
e97673df67
ITS#4500 use rdwr lock instead of mutex
2006-04-27 07:52:12 +00:00
Howard Chu
2cd781eae3
Cleanup close
2006-04-27 02:29:13 +00:00
Howard Chu
8b06446b10
back-config support, cleanup init/destroy
2006-04-27 02:28:07 +00:00
Howard Chu
328470c114
OIDs for more overlays
2006-04-27 02:13:21 +00:00
Howard Chu
7cd5dddd4c
back-config support. from Matthew Backes @ Symas.com and
...
Karsten Kuenne @ rentec.com (ITS#4506)
2006-04-27 02:12:34 +00:00
Howard Chu
d62fd3fd5a
Cleanup prev commit
2006-04-27 00:27:43 +00:00
Howard Chu
6af9770996
Tweak mutexes
2006-04-27 00:19:32 +00:00
Howard Chu
4f1e154c12
Implement reqOld support
2006-04-27 00:01:20 +00:00
Howard Chu
bac546adb0
Fix prev commit
2006-04-26 10:26:46 +00:00
Howard Chu
0836354d1e
Fix ITS#4505
2006-04-26 09:12:40 +00:00
Pierangelo Masarati
02b3af0900
check existence of newSuperior
2006-04-25 21:11:44 +00:00
Pierangelo Masarati
54f7d5aef3
allow empty modlist
2006-04-25 19:51:38 +00:00
Pierangelo Masarati
95b29919a3
more ITS#4503 cleanup
2006-04-25 19:30:48 +00:00
Pierangelo Masarati
004b69d070
callbacks must return valid error codes (ITS#4499)
2006-04-25 19:07:34 +00:00
Howard Chu
94c3bc332d
Fix log_age_parse days parsing
2006-04-25 10:24:54 +00:00
Hallvard Furuseth
61d71d95b9
Cast isspace() arg to unsigned char. (Update to previous change.)
2006-04-24 20:32:23 +00:00
Howard Chu
478ae2346e
PPOLICY_ERROR is primitive, not constructed
2006-04-22 00:23:44 +00:00
Howard Chu
449188fb73
Fix EXPIRE/GRACE tags in control value
2006-04-21 23:45:29 +00:00
Pierangelo Masarati
4d894c7d24
don't idassert if proxyAuthz == boundDN (ITS#4497)
2006-04-21 21:07:31 +00:00
Howard Chu
c636f654a4
Make be_shadow_update more specific for syncrepl ops, since mirrormode
...
lets normal users write to a syncrepl database
2006-04-20 22:20:25 +00:00
Pierangelo Masarati
19c5f261e5
re-fix ITS#4495 working around atoi() limitations
2006-04-19 23:57:02 +00:00
Hallvard Furuseth
5181a522c1
Revert rev 1.276, which broke back-shell "RESULT\ncode: <value>\n" (ITS#4495)
2006-04-19 22:03:13 +00:00
Hallvard Furuseth
1c51987f87
#define Statslog() also when --disable-debug (disappeared in rev 1.754)
2006-04-16 16:01:09 +00:00
Pierangelo Masarati
e01743193d
more coverity issues
2006-04-14 00:17:27 +00:00
Howard Chu
edb1c663fc
Fix translucent modify
2006-04-13 23:00:11 +00:00
Hallvard Furuseth
7948cb0bfd
init_module() typo: Log() -> Log2()
2006-04-13 22:24:23 +00:00
Hallvard Furuseth
d60b89c148
meta_back_db_config: lutil_atou(version,) -> lutil_atoi
2006-04-13 22:23:03 +00:00
Hallvard Furuseth
7a19d8855d
Remove useless assert: unsigned lc->lc_refcnt >= 0
2006-04-13 22:20:55 +00:00
Hallvard Furuseth
6567412f54
schema_destroy(): Handle failed slap_schema_init()
2006-04-13 22:19:19 +00:00