Howard Chu
68ffed7130
Additional fix for threaded slapadd
...
If slapadd'ing a config DB and tool-threads is set in the config LDIF,
the checks for slap_tool_thread_max will be invalid.
2012-05-29 19:49:58 -07:00
Howard Chu
34240dbbbb
ITS#7255 in mdb_tool_entry_modify use the existing global txn
2012-05-02 13:32:06 -07:00
Howard Chu
1d89901e73
ITS#7253 add a note about Criticality and RFC4510
2012-04-20 07:24:03 -07:00
Howard Chu
42e3bedbf2
ITS#7182 new entry points should just be appended to monitor_extra_t
2012-04-18 11:52:38 -07:00
Ondrej Kuznik
6f8fb3bf39
ITS#7182 Simplify connection entry creation using entry_stub.
2012-04-18 11:44:55 -07:00
Ondrej Kuznik
e255d3e996
ITS#7182 Remove use of monitor_info_t in back-ldap.
2012-04-18 11:44:49 -07:00
Ondrej Kuznik
e8d913110d
ITS#7182 Remove monitor_info_t from params for monitor_entry_stub.
2012-04-18 11:44:36 -07:00
Ondrej Kuznik
838a7f5138
ITS#7182 allow for later monitor subsystem registration
...
Some databases might want to register their subsystems under the dn
allocated for them by monitor_register_databas. It requires that the
deferred database registration callback be called *before* the
subsystem's.
2012-04-18 11:44:17 -07:00
Pierangelo Masarati
e92704309a
more on ITS#6656
2012-04-17 21:51:02 +02:00
Howard Chu
62cdc32f4e
ITS#7245 fix slap_parse_sync_cookie invocation
2012-04-16 07:36:43 -07:00
Howard Chu
519e2b34b5
Support double-buffering for threaded slapadd
2012-04-14 07:54:26 -07:00
Pierangelo Masarati
5bbfd85a83
ITS#7088 fix deadlock on write operations that do not need to be logged (please check)
2012-04-12 18:04:39 +02:00
Pierangelo Masarati
a47ef8d2b7
ITS#6656 keep loginfo mutex-protected
2012-04-11 00:16:45 +02:00
Pierangelo Masarati
3d99878d0b
ITS#6656 make reqEntryUUID searchable
2012-04-10 23:13:55 +02:00
Pierangelo Masarati
f65ee5ddc1
ITS#6656 add reqEntryUUID to logs of write ops
2012-04-10 22:39:35 +02:00
Pierangelo Masarati
d7d1789e80
ITS#7224 check *_names pointer before dereferencing
2012-04-10 00:47:23 +02:00
Pierangelo Masarati
829efa878a
move entrypriv_create into monitor_extra_t
2012-04-09 18:37:48 +02:00
Pierangelo Masarati
11acc75e9f
move entry_stub to monitor_extra_t
2012-04-09 18:18:21 +02:00
Howard Chu
71843da2a7
MDB_APPEND should only be used in tool mode
2012-04-09 05:18:44 -07:00
Howard Chu
9e6245f87e
ITS#7235 prevent sop from being freed during init
2012-04-07 10:22:56 -07:00
Howard Chu
8bf047c8cb
ITS#7231 simplify prev commit
2012-04-07 07:57:39 -07:00
Howard Chu
494c6fa37f
ITS#7231 fix idl_append when b has only 1 element
2012-04-07 07:36:43 -07:00
Hallvard Furuseth
e6a25b2db6
ITS#7233 Fix slapd listener initialization.
...
This broke if i was incremented before the new thread read i:
for(...; i++) { ldap_pvt_thread_create(,,, &i); ... }
2012-04-07 14:13:50 +02:00
Hallvard Furuseth
19905a390f
ITS#7234 Fix syncprov entry leak: Set op->o_tag
2012-04-07 14:13:50 +02:00
Howard Chu
6d5dac4fa2
ITS#7197 fix olcTLSVerifyClient keywords
2012-04-04 13:25:09 -07:00
Pierangelo Masarati
ce54dabb1b
fix uninit'ed parameters to monitor_back_register_entry_attrs()
2012-04-04 15:09:50 +02:00
Howard Chu
b849ab00f8
ITS#7149 pick up definition of STRLENOF
2012-03-30 03:22:40 -07:00
Howard Chu
ac12129465
ITS#7182 silence warning about AVL_APPLY type
2012-03-29 07:06:16 -07:00
Ondrej Kuznik
8452b4ccde
ITS#7182 Expose the peer address of a connection.
2012-03-29 07:01:15 -07:00
Ondrej Kuznik
af09702199
ITS#7182 Expose the URI used for this connection.
2012-03-29 07:01:12 -07:00
Ondrej Kuznik
fa3a79c1b9
ITS#7182 Expose the connection flags.
...
The flags are exposed using a multivalued parameter so that other
connection flags (like back-meta's) could be exported without needing
additional code.
2012-03-29 07:01:10 -07:00
Ondrej Kuznik
cfc947dd54
ITS#7182 Enable operation and connection monitoring.
...
Reintroduce the cn=connections entry exactly as it were before ITS#7182.
2012-03-29 07:01:07 -07:00
Ondrej Kuznik
979e0f00b9
ITS#7182 Rework monitor registration.
...
Letting back-monitor create the subsystem entries is much more readable
than doing this manually.
Only the database is registered if needed (chain overlay has to be
updated to cope with this), the cn=Connection entry is removed in this
patch to be reinstated in the following one as part of the correct
subsystem.
The owner (overlay mostly) should already know the target subtree DN,
therefore the filter machinery can go away too.
2012-03-29 07:01:04 -07:00
Ondrej Kuznik
7c40b6e904
ITS#7182 Keep connection IDs for monitoring purposes.
2012-03-29 07:00:56 -07:00
Howard Chu
f6b8103b78
ITS#7149 more for back-perl, always use bv_len when available
2012-03-29 06:11:55 -07:00
Howard Chu
ab481c0f74
ITS#7149 fix back-shell/back-perl Modify with binary values
2012-03-29 06:05:15 -07:00
HIRABAYASHI Satoshi
92d439a0dd
ITS#7218 fix sessionlog usability check
2012-03-28 02:48:03 -07:00
Ondrej Kuznik
be9585d0ed
ITS#7182 Maintain the operation counts.
...
Currently ldap_back_default_rebind cannot access the ldapinfo structure.
Being a configurable callback, not letting it monitor when a change
might be disruptive feels safer.
2012-03-27 04:28:37 -07:00
Ondrej Kuznik
fb2d235615
ITS#7182 Introduce the variables for operation monitoring.
...
Only completed operations are considered for now, this can be changed
if needed.
2012-03-27 04:28:26 -07:00
Ondrej Kuznik
7baac1d9b4
ITS#7182 Add mss_private for monitor subsystem.
...
During initialization (and elsewhere), the subsystems have no way of
storing local data. While embedding them inside a larger strusture and
breaking out when needed (like the current back-ldap monitoring code
currently does) works, it certainly does not add to readability.
Notice that there is still no way to unregister an active subsystem.
This patch does not attempt to include such functionality while it might
actually be needed with the advent of SLAP_CONFIG_DELETE.
2012-03-27 04:28:16 -07:00
Howard Chu
dc0ef72dff
Cleanup prev commit
2012-03-27 01:53:41 -07:00
Ondrej Kuznik
122faa5bd9
(ITS#6987) Consider only same attribute siblings for Cft_misc.
...
For all other ce_types it holds that each is represented by one
attribute, making ce_type matching for X-ORDERED siblings equivalent to
how back-ldif handles them. Cft_misc is means "all other types", however
no overlay/backend so far has used different attributes as siblings,
triggering the difference in handling between bconfig.c and back-ldif.
2012-03-27 01:53:30 -07:00
Howard Chu
4433b1b8d5
ITS#7205 fix check for existing suffix
2012-03-26 03:35:23 -07:00
Howard Chu
93d3a4104a
ITS#7200 fix regression in b4d403ea31
2012-03-09 13:10:58 -08:00
Howard Chu
8c452e3272
ITS#7203 approxIndexer should omit zero-length keys
2012-03-09 12:47:49 -08:00
Howard Chu
47e57a9c8f
ITS#7191 fix typo, more alignment tweaks
2012-03-08 21:39:31 -08:00
Howard Chu
6143aa0c18
ITS#7201 fix config flags
2012-03-08 19:27:20 -08:00
Howard Chu
b4d403ea31
ITS#7200 enforce check for matching serverID URL
2012-03-08 19:24:09 -08:00
Howard Chu
d0bcaee0f3
ITS#7190 don't crash in slapcat on NULL entry
2012-03-06 22:15:51 -08:00
Howard Chu
6ab4d830cb
ITS#7195 add NotAllowedOnNonleaf to deltasync fallback errors
2012-03-02 14:12:41 -08:00
Howard Chu
c4325af7e0
ITS#7180 fix mdb_entry_get when mdb_entry_next was not called
2012-02-24 15:20:17 -08:00
Howard Chu
9b9f4984f0
More for ITS#7170
2012-02-23 12:08:53 -08:00
Howard Chu
3792e9ec59
ITS#7178 fix uninit'd op->ors_deref
2012-02-23 01:16:39 -08:00
Howard Chu
c4d78a17c3
ITS#7170 fix Quick mode index generation
2012-02-22 16:01:59 -08:00
Howard Chu
164e738878
ITS#7176 fix slapindex -q -t
2012-02-20 17:04:24 -08:00
Hallvard Furuseth
465942e74d
ITS#7160 Support POSIX make: No $< in target rules
2012-02-18 18:17:40 +01:00
Howard Chu
463c1fa25d
ITS#7143 fix attr_dup2 when no values are present (attrsOnly = TRUE)
2012-02-14 17:29:14 -08:00
Howard Chu
eace24ef33
ITS#7162 Revert "ITS#7052 ignore Adds with too old entryCSN"
...
This reverts commit ba4366eae0
.
The patch caused a regression (ITS#7162).
2012-02-12 21:07:25 -08:00
Howard Chu
d4b3c2af6a
Partial revert of f30269f5d2
...
ITS#6024 patch breaks MMR loop detection
2012-02-12 15:54:11 -08:00
Howard Chu
8e7af6331e
Add some debug info to aid Delete tracking
2012-02-09 14:16:17 -08:00
Timo Teräs
3dc71dfb1a
ITS#7158 Fix a crash in back-sql
2012-02-08 23:04:34 +01:00
Howard Chu
430256fafb
ITS#7143 add FIXME comment, note that current patch is not ideal
2012-02-03 11:58:00 -08:00
Howard Chu
ef2f5263de
ITS#7143 don't leave empty slots in normalized attr values
2012-02-03 11:43:40 -08:00
Howard Chu
ba4366eae0
ITS#7052 ignore Adds with too old entryCSN
2012-02-03 11:16:10 -08:00
Howard Chu
5584e5b98d
ITS#7150 fix check for already abandoned op
2012-02-03 09:35:13 -08:00
Howard Chu
3423b56690
ITS#7146 fix prev commit
2012-02-02 03:26:53 -08:00
Howard Chu
9d3b1af2ff
ITS#7146 check for ad_index overflow
...
Temporary fix...
2012-02-02 03:08:33 -08:00
Howard Chu
d2958a2a4e
ITS#7144 fix crash replicating modDN if oldRDN not present
2012-02-02 02:53:40 -08:00
Howard Chu
2e9f1f93c8
ITS#7142 fix slapadd exit on failure
2012-01-28 15:44:51 -08:00
Howard Chu
d7933e2ea4
ITS#7140 more cleanup on txn abort
2012-01-28 11:52:09 -08:00
Howard Chu
3be354d0d2
ITS#7052 syncrepl deletes should ignore some errors
...
Treat LDAP_NO_SUCH_OBJECT as success, otherwise the consumer will
abort and start a new refresh for no good reason.
2012-01-27 11:21:04 -08:00
Ondrej Kuznik
19fda82e75
ITS#7123 Update the cached entry when handling compare too.
2012-01-24 03:22:03 -08:00
Hallvard Furuseth
42faa8393e
ITS#7132 Fix syncrepl access to freed naming attr
2012-01-24 11:38:10 +01:00
Hallvard Furuseth
624642ba83
Fix sl_malloc valgrind support.
2012-01-24 01:45:51 +01:00
Hallvard Furuseth
db49dfecc9
ITS#7131 Fix connection loop connindex usage.
...
connection_<first/next>() takes a ber_socket_t *index, not int*.
2012-01-24 00:47:48 +01:00
Hallvard Furuseth
2b538761e9
ITS#7125 Document connection loop API.
...
Code comments belong in the code, not in commit messages.
2012-01-24 00:47:48 +01:00
Kevan Carstensen
7e893c75d1
ITS#7113 fix check order in connection_write()
2012-01-21 17:27:47 -08:00
Howard Chu
5ca62457f3
Fix: txn is invalidated by mdb_txn_commit()
2012-01-21 08:49:49 -08:00
Hallvard Furuseth
03e594d903
ITS#7075 Re-fix back-perl initialization.
...
Use PERL_SYS_INIT3() after all. There appears to be no correct
way to do this, so we should as least follow the documentation.
2012-01-21 05:01:43 +01:00
Howard Chu
214ad8c987
ITS#7127 fix syncrepl_config reference to freed memory
2012-01-19 15:55:54 -08:00
Hallvard Furuseth
221d3ccdc6
ITS#7125 Fix Connection.c_mutex usage.
...
Partial revert of 9e00b6cc6ce2857490b33218bdaf1339319c5f60:connection.c.
2012-01-13 16:07:39 +01:00
Kurt Zeilenga
2bbf9804b9
Happy New Year!
2012-01-01 07:10:53 -08:00
Howard Chu
68ee165fb5
ITS#7115 blocked writers should not interfere with pool pause
2011-12-21 01:24:23 -08:00
Howard Chu
85c1c545f4
ITS#7107 fix Operation init on reuse
...
Additional fix for a66fb1630c
2011-12-14 19:33:40 -08:00
Howard Chu
50e02126b7
ITS#7050 fix uninit'd return code in back-meta
2011-12-12 11:52:05 -08:00
Howard Chu
704e8228c0
ITS#7098 fix del/add of first schema element
2011-11-29 08:16:34 -08:00
Howard Chu
5b7c44a136
ITS#7099 fix dds db_open
...
Should not do anything in tool mode.
2011-11-29 05:57:36 -08:00
Howard Chu
4f298d47af
ITS#7099 fix mdb_entry_return for tool mode
...
Originally, overlays were not supposed to take effect in tool mode.
Apparently that's no longer the case...
2011-11-29 05:42:46 -08:00
Howard Chu
2c4d548206
ITS#7090 fix out-of-order slapadd
2011-11-25 00:25:52 -08:00
Pierangelo Masarati
26dc16e9f6
fix typos
2011-11-24 19:58:37 +01:00
Howard Chu
42a7fcf19a
ITS#6548,#7092 don't pass hangup events to reader thread
2011-11-19 13:57:56 -08:00
Howard Chu
7be5837dc0
Cleanup syncprov_db_close/CONFIG_DELETE code
...
No mutex needed since config ops are single-threaded.
Don't send Unavailable message if we're shutting down.
2011-11-18 01:22:52 -08:00
Howard Chu
278322ee5f
ITS#7025 fix syncprov crash
...
init fop.o_extra, copying from s_op is not guaranteed.
2011-11-18 00:31:20 -08:00
Howard Chu
111ecbdbed
ITS#6851 replace assert with error msg
2011-11-17 17:35:10 -08:00
Howard Chu
8a6402436e
More cleanup for previous slapadd tweaks
2011-11-17 14:21:18 -08:00
Howard Chu
e52127533d
ITS#7087 fix mdb_online_index endless loop
2011-11-10 16:33:49 -08:00
Howard Chu
3b2961fcc2
More debug msg null pointer checks
2011-11-09 15:36:16 -08:00
Howard Chu
a642e3eb90
Check for NULL DN in debug msg
2011-11-09 02:20:26 -08:00
Howard Chu
d9706311a0
Check for NULL DN
2011-11-09 02:07:14 -08:00
Howard Chu
676dae633a
Avoid stack overrun in mdb_search
...
Use malloc'd memory, stored persistently in thread-local storage.
2011-11-09 02:05:14 -08:00
Howard Chu
e2a7617d17
Key alignment tweaks for Sparc
2011-11-09 01:03:14 -08:00
Howard Chu
6b679875ae
Fix u_intX -> uintX
2011-11-08 19:06:46 -08:00
Howard Chu
323e70ba13
ITS#7083 fix verb_to_mask usage
2011-11-07 16:41:35 -08:00
Howard Chu
a4df185adf
ITS#7019 fix dsa-specific attr check for Persist updates
2011-11-07 15:25:07 -08:00
Quanah Gibson-Mount
3bb0c6746f
More for ITS#6984
2011-11-07 14:14:57 -08:00
Howard Chu
9f22ced88b
Fix Quickmode crash
2011-11-07 12:02:57 -08:00
Howard Chu
77cd4c53be
Dynamic config support for back-sql (untested)
2011-11-04 22:00:44 -07:00
Howard Chu
31b5c396d3
ITS#7077 preserve mirrorMode setting when deleting syncrepl
2011-11-04 18:31:09 -07:00
Howard Chu
e438122448
ITS#7081 fix prev commit
2011-11-04 11:32:38 -07:00
Howard Chu
bc54aa1078
ITS#6981 pcache: don't reference rs->sr_entry in op_cleanup
2011-11-02 09:26:50 -07:00
Howard Chu
49c6ddf99c
Revert "ITS#6981 don't free entries prematurely"
...
This reverts commit 877ebdf5ef
.
2011-11-02 09:25:45 -07:00
Howard Chu
877ebdf5ef
ITS#6981 don't free entries prematurely
2011-11-01 16:24:10 -07:00
Howard Chu
f502695c81
Revert "ITS#6981 don't flush entries until after cleanup callbacks"
...
This reverts commit b68fa5ecd7
.
2011-11-01 16:14:12 -07:00
Howard Chu
b68fa5ecd7
ITS#6981 don't flush entries until after cleanup callbacks
2011-11-01 13:17:06 -07:00
Howard Chu
d69ca65afd
ITS#7060 fix str2result return code parsing
2011-11-01 12:59:36 -07:00
Howard Chu
6fa893a924
ITS#7063 add auto-converted LDIFs for missing schema
2011-11-01 12:48:26 -07:00
Howard Chu
62e65ec89b
Syntaxes must come before attributetypes in schema object
2011-11-01 12:46:10 -07:00
Howard Chu
ddaea1cf73
ITS#7065 fix cn=config modify replace/delete crash
2011-11-01 11:40:04 -07:00
Howard Chu
4045cd1dc0
ITS#7061 only return requested attrs in sssvlv response
...
Replaces commit 8eecc9a017
2011-11-01 11:23:59 -07:00
Howard Chu
9cb0386851
ITS#7062 call response callbacks even if connection was dropped
2011-11-01 11:02:00 -07:00
Hallvard Furuseth
1e62263697
ITS#7075 Fix back-perl initialization.
...
Use PERL_SYS_INIT() instead of broken PERL_SYS_INIT3(,,NULL). Pass its
output variables to perl_parse(). Fix argument type 'char *(*argv)[3]'
to 'char ***argv'. NULL-terminate argv in case that is needed.
2011-11-01 06:28:40 +01:00
Hallvard Furuseth
074fe6c298
ITS#6763,7053 Cleanup after sending entry/searchref.
...
slap_send_search_entry(), slap_send_search_reference(): Never skip
the cleanup code. Sending an entry did on sizeLimitExceeded/busy.
Sending a ref dropped rs_flush_entry() on error.
2011-10-24 01:06:42 +02:00
Howard Chu
2014460eb5
Only use tool IDL cache when multithreaded
2011-10-20 13:46:39 -07:00
Ralf Haferkamp
1ca56b5397
ITS#7066 Reworked fix
...
Seems simpler this way. No need for a back-config specific
bi_access_allowed() handler.
2011-10-20 11:50:57 +02:00
Ralf Haferkamp
72483b1d72
plugged mem-leak introduced by last commit
...
more for ITS#7066
2011-10-19 14:59:17 +02:00
Ralf Haferkamp
cf59ac0d70
ITS#7066 reworked default deny ACL for cn=config
...
Dynamically adding ACL for cn=config didn't work correctly, when no
ACLs where present for that database upon startup. Delete the last
ACL from the DB could also lead to unexpected results.
2011-10-18 17:08:05 +02:00
Howard Chu
df4738f071
Define S_IWRITE if needed
2011-10-12 19:19:52 -07:00
Howard Chu
c647a06441
More for cursor reuse
2011-10-06 19:15:10 -07:00
Howard Chu
4c17f31843
Keep some dn2i/id2e cursors open longer
...
So they can be reused, and avoid unnecessary page_searches
2011-10-06 19:14:22 -07:00
Howard Chu
7592013f59
Additional tweaks for double-threaded slapadd
2011-10-06 16:10:47 -07:00
Howard Chu
507238713b
ITS#7059 replace previous patch
...
Bug was caused by postalAddressNormalize sending 0-length values
to UTF8StringNormalize.
2011-10-06 15:22:40 -07:00
Howard Chu
d0dd8616f1
Fix UTF8StringNormalize overrun on zero-length string
...
Detected by valgrind
2011-10-06 14:06:59 -07:00
Howard Chu
df47eb24cd
Additional change for prev commit
2011-10-04 23:45:33 -07:00
Howard Chu
34adb86929
Use a thread for LDIF parsing in slapadd -q
2011-10-04 19:21:39 -07:00
Howard Chu
d06301f303
Turn off tool IDL caching
...
Well, just like in back-bdb in 2005, it only slowed things down
on larger LDIFs.
2011-10-04 02:18:09 -07:00
Howard Chu
9725bc475f
Tweak tool IDL cache, use MDB_MULTIPLE
2011-10-03 11:29:04 -07:00
Howard Chu
8a8fb76cca
Use MDB_APPEND mode where possible
2011-10-02 21:29:21 -07:00
Howard Chu
98da203fce
Use IDL caching in tool/quick mode
2011-10-02 19:38:58 -07:00
Howard Chu
a1533520c1
Use MDB_RESERVE for id2entry_put
2011-10-02 10:06:06 -07:00
Howard Chu
da210f40e1
ITS#7040 don't complain about other server's CSNs
...
Only worry if consumer has newer state for our SID. Fixes breakage
caused by ITS#6606.
2011-09-30 03:04:10 -07:00
Howard Chu
3ca52e4f94
ITS#7037 restart consumer on Persist errors
...
Consumer should never get NO_SUCH_OBJECT for an Add to the underlying DB
during Persist phase.
2011-09-30 02:27:04 -07:00
Howard Chu
638566f155
ITS#7037 fix syncrepl_add_glue for empty suffix
2011-09-30 02:10:37 -07:00
Howard Chu
b72d9b8368
ITS#7052 syncrepl deletes need a non-empty CSN
...
Must not let the underlying DB generate its own.
2011-09-30 00:09:01 -07:00
Howard Chu
c5ee5212fd
Updated for mdb_txn_begin API change.
...
Nested txn stuff which we don't use.
2011-09-21 15:59:08 -07:00
Hallvard Furuseth
47f6aec61e
back-bdb/back-mdb IDL cleanup.
...
Parenthesize macros. Microoptimize IDL search. Use RANGE_<FIRST/LAST>
when IDL is known to be a range.
2011-09-19 10:31:12 +02:00
Hallvard Furuseth
ef7f5f5e32
Cleanup ISO C compatibility for recent commits
2011-09-19 10:31:12 +02:00
Hallvard Furuseth
79f4f3c0bd
More libmdb vs back-mdb C type tweaks.
...
Do not access a size_t via an unsigned long pointer, an MDB_val via a
berval pointer, or the inverse. Instead copy into the proper data types.
2011-09-19 10:31:12 +02:00
Howard Chu
c0fc7fdbed
Fix prev commit
...
Don't truncate all indices if specific indices were given.
2011-09-18 14:47:41 -07:00
Howard Chu
344996c5e8
Support index truncation
2011-09-18 14:28:36 -07:00
Howard Chu
94c0b077d8
New mdb_close() signature
2011-09-18 13:25:38 -07:00
Howard Chu
04311cc716
Fix entry_alloc with no attrs
2011-09-14 10:14:02 -07:00
Howard Chu
0e96868e8e
Fix onelevel search from last commit
2011-09-14 09:54:58 -07:00
Howard Chu
dfed6f77d7
More search optimization
...
Tighten up entry_alloc/entry_decode
Track parent nodes in idscopes
2011-09-13 16:58:38 -07:00
Howard Chu
fb264bf3e1
Tentative speedup - use plain ints for entry_encode/decode
...
Keep entries word-aligned. Yields ~10% speedup, but also 10% more space used.
May revert this if the space cost is unacceptable.
2011-09-13 15:24:50 -07:00
Howard Chu
65b5ff2de3
mdb_db_close() should not force env_sync in quick mode
2011-09-13 01:28:37 -07:00
Howard Chu
9297050f9e
Resolve MDB/HDB monitor OID clashes
2011-09-12 11:41:04 -07:00
Howard Chu
c4ddf352ba
Just use memcpy since we know it's non-overlapping
2011-09-12 11:05:38 -07:00
Hallvard Furuseth
141a43c1ee
Tweak back-mdb integer types to match libmdb.
...
Also do not cast between berval and MDB_val. That breaks when
sizeof(berval.bv_len) != sizeof(MDB_val.mv_size).
2011-09-12 19:07:12 +02:00
Howard Chu
16cbeb5e65
Fix - slapcat doesn't set op->o_hdr for tmpmemctx
2011-09-10 01:12:50 -07:00
Howard Chu
802a2ad4b2
Fix out-of-order slapadd
2011-09-09 22:29:19 -07:00
Howard Chu
c5beffc94f
Fix bogus error codes
2011-09-09 19:53:56 -07:00
Howard Chu
54ced52c04
Keep cursor open for id2entry
2011-09-09 01:01:25 -07:00
Howard Chu
f72d65b77a
Use tmpmem-based entries
2011-09-08 22:07:04 -07:00
Howard Chu
80f6f0a1c0
Drop referral.c
2011-09-08 22:02:59 -07:00
Howard Chu
9240cbfb29
Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap
2011-09-08 21:42:58 -07:00
Howard Chu
472c0d7877
Add Valgrind mempool support.
...
Compile with -DUSE_VALGRIND. It will attempt to keep Valgrind
informed of our memory allocations. Frees are trickier since they
may be deferred indefinitely.
2011-09-08 21:39:45 -07:00
Pierangelo Masarati
ca95d353a4
silence warning
2011-09-09 01:09:04 +02:00
Pierangelo Masarati
d324ab5c74
import ITS#6925 patch; fix peeraddr variable name clash in LDAP_CONNECTIONLESS code; fix scope of addr[] when inet_ntop(3) is used
2011-09-09 01:09:04 +02:00
Howard Chu
deb0ef9f1f
Fix 6c8e4f2671
2011-09-08 10:33:01 -07:00
Howard Chu
a3346f969f
More error msgs
2011-09-06 17:29:42 -07:00
Howard Chu
9dc1b05f30
Fix 6c8e4f2
for empty suffixes
2011-09-06 14:04:38 -07:00
Howard Chu
6c8e4f2671
More search optimizations
2011-09-06 02:21:19 -07:00
Howard Chu
1e32fcf099
Use AD-indexes
2011-09-05 19:52:06 -07:00
Howard Chu
f8dc749c2d
Add AttributeDescription counter
2011-09-05 19:51:54 -07:00
Howard Chu
e5b1dce6a7
Debug helper for index
2011-09-05 15:23:08 -07:00
Hallvard Furuseth
a316851494
back-mdb/Makefile.in += variable MDB_SUBDIR.
...
For compiling against a checkout of the stand-alone libmdb,
which has a branch 'mdb.master' with its own root:
git clone --branch=mdb.master <openldap_repo_dir> mdb
set_mdb="MDB_SUBDIR=`pwd`/mdb/libraries/libmdb"
... maybe modify mdb repository for testing ...
cd <openldap_repo_dir>; make $set_mdb
2011-09-05 21:10:04 +02:00
Howard Chu
a4d0cde2d3
Fix from key_change consolidation
2011-09-05 03:52:38 -07:00
Howard Chu
7afc68c0ec
Cursor updates
2011-09-05 01:27:16 -07:00
Howard Chu
d38ef26425
Fix conversion of IDL to range
2011-09-03 13:09:19 -07:00
Howard Chu
0ba4206ed9
Import back-mdb
2011-09-01 17:00:26 -07:00
Howard Chu
8d74f717ff
For test063
...
add hex timestamp to lutil_debug() output
Fix LASTMOD race condition in accesslog.c
Set refreshInterval even if using refreshAndPersist, since
fallbacks will use refresh params
2011-08-30 19:16:39 -07:00
Howard Chu
4f35d789ac
Relax entry_header, zero-length entries are valid.
2011-08-27 14:48:04 -07:00
Howard Chu
c617f3c3b9
ITS#7029,#7031 More for prev commit
2011-08-26 16:56:43 -07:00
Howard Chu
eae46d35d2
ITS#7030 fix overlay_insert() with specific index
2011-08-25 20:51:30 -07:00
Howard Chu
1c476b302e
ITS#6983 fix duplicate entry in HDB subtree IDL
2011-08-25 14:47:23 -07:00
Howard Chu
ab69775dd0
ITS#7029 fix uninit'd nvalue
2011-08-24 16:09:37 -07:00
Howard Chu
fdb3443366
More abandon paranoia
2011-08-24 14:57:36 -07:00
Howard Chu
5829eb44a1
ITS#7025 handle Abandon in backglue
2011-08-23 13:48:59 -07:00
Howard Chu
4f5d087b4f
Don't replicate refint repair ops
2011-08-22 14:05:58 -07:00
Pierangelo Masarati
415b8ec84b
release mutex only *after* backend connection initialization (ITS#6993)
2011-08-22 11:23:54 -06:00
Pierangelo Masarati
bdbdae3e5f
according to draft-behera, this attribute only affects password modifies by self (ITS#7021)
2011-08-20 18:52:54 -06:00
Howard Chu
433812db38
For #6982 fix a66fb16
2011-08-18 01:52:52 -07:00
Pierangelo Masarati
17cfffdd29
fix TTL tolerance (ITS#7017, patch by jvcelak@redhat.com)
2011-08-17 12:57:56 -06:00
Pierangelo Masarati
fb83bf08bc
make sure frontend gets the {-1} (ITS#7016)
2011-08-16 22:18:23 -06:00
Howard Chu
a66fb1630c
hack for #6982 - keep o_abandon set in op_free
2011-08-16 13:51:10 -07:00
Howard Chu
20a8da0b7c
Revert "More for ITS#6892"
...
This reverts commit 3cb2ca8bbd
.
Patch has no benefit
2011-08-16 13:49:27 -07:00
Howard Chu
3cb2ca8bbd
More for ITS#6892
2011-08-15 15:40:46 -07:00
Pierangelo Masarati
0d0d64518f
host part of unique URI must be empty (ITS#7018)
2011-08-13 23:34:31 +02:00
Pierangelo Masarati
8c2fc29786
cleanup slapd.ldif; install it (ITS#7015)
2011-08-11 17:34:29 +02:00
Pierangelo Masarati
f0810d6535
typo in comment
2011-08-11 17:09:36 +02:00
Pierangelo Masarati
6b74e9002b
make sure 2-arg statements have exactly 2 args (related to ITS#7012)
2011-08-10 20:26:59 +02:00
Pierangelo Masarati
55c70629aa
TLS config statements always need an argument (related to ITS#7012)
2011-08-10 20:26:59 +02:00
Howard Chu
a31a8ed20e
ITS#6999 fix syncrepl timeout in refreshAndPersist
2011-07-29 13:05:45 -07:00
Howard Chu
ff7acea2d2
ITS#7000 fix bad patch in ITS#6472
2011-07-28 13:52:47 -07:00
Howard Chu
8eecc9a017
Only return requested attrs in sssvlv response
2011-07-18 12:53:23 -07:00
Howard Chu
db106f89e6
ITS#6985 fix sssvlv target offset, ordering match
2011-07-18 12:41:51 -07:00
Pierangelo Masarati
c86677ef41
blind fix build on solaris native compilers (ITS#6992)
2011-07-08 08:48:59 +02:00
Pierangelo Masarati
c0b669e14f
fix config emit (ITS#6986)
2011-07-07 08:16:23 +02:00
Howard Chu
ebf07016ef
ITS#6872 fix test058 breakage from prev patch
2011-06-27 04:46:43 -07:00
Howard Chu
b1f26a8b17
Fix NO_THREADS typo
2011-06-22 20:03:24 -07:00
Howard Chu
b0fcec8d65
ITS#6716 Use sorted CSNs in syncrepl too
2011-06-22 00:32:00 -07:00
Howard Chu
6da3e3473c
ITS#6716 use sorted CSNs, fix sessionlog
...
track a CSN per SID in the log->sl_mincsn
2011-06-22 00:30:13 -07:00
Howard Chu
249422aa28
ITS#6716 Keep CSN lists sorted by SID
2011-06-21 22:35:14 -07:00
Howard Chu
ceefe132a8
ITS#6817 fix RE24 build breakage
...
Should SLAP_AUTH_DN be #defined in release now?
2011-06-21 17:05:53 -07:00
Howard Chu
ae24a1a6ac
ITS#6973 need limits_check if overlay is global
2011-06-21 02:40:38 -07:00
Ondrej Kuznik
6f43600731
ITS#6974 (Re)moving stray cleanup code.
2011-06-20 18:13:36 -07:00
Hallvard Furuseth
e25bce9124
Tweak back-ldif messages about CRC checksums.
2011-06-20 21:53:05 +02:00
Hallvard Furuseth
06fe436053
Cleanup back-ldif CRC code.
...
Handle interrupted write() again. Fix warnings/types. #ifdef LDAP_DEBUG.
2011-06-20 21:45:03 +02:00
Howard Chu
05ca8c3710
More fixes, add test script
2011-06-20 11:05:08 -07:00
Howard Chu
48cdd54d9a
Fix missing si_syncCookie numcsns
2011-06-20 06:51:33 -07:00
Howard Chu
480f0c16ff
More tweaks for delta-mmr
2011-06-20 04:27:11 -07:00
Howard Chu
67bbad6e70
delta-mmr conflict resolution
2011-06-19 20:14:03 -07:00
Howard Chu
237a686107
More for conflict detection
2011-06-19 20:13:59 -07:00
Howard Chu
95d7adcd6d
Setup delta-mmr using an overlay
2011-06-19 20:13:51 -07:00
Howard Chu
0a9f51f58d
ITS#6657/6691 use proper SQL length data type
2011-06-13 13:54:56 -07:00
Howard Chu
de395ddad3
ITS#6944 limit op cache to 10 ops per thread
2011-06-10 03:27:40 -07:00
Howard Chu
329e7937e6
ITS#6892 shortcut for non-replicated ops
2011-06-10 01:44:30 -07:00
Howard Chu
d1b38bd12b
ITS#6967 normalize schema RDN
2011-06-10 01:35:19 -07:00
Howard Chu
6f715114ff
Add CRC32 checksum to back-ldif files
...
Currently just logs a complaint on checksum mismatch. Could get
more obnoxious later.
2011-06-09 21:09:41 -07:00
Howard Chu
214d7e3750
Fix prev commit
2011-06-09 18:07:13 -07:00
Howard Chu
a4a7ffdf5c
Try to discourage editing back-ldif files
2011-06-09 17:59:08 -07:00
Howard Chu
68c7d375da
Revert "ITS#6688 enforce search ACL in back-perl"
...
This reverts commit 53bb95a2e3
.
Code was working as designed/documented. Changing now will
probably break other users.
2011-06-09 15:37:11 -07:00
Howard Chu
53bb95a2e3
ITS#6688 enforce search ACL in back-perl
2011-06-09 15:25:32 -07:00
cmikk@qwest.net
fa64b07cfc
ITS#6872
...
Perform the internal FIND_CSN search based at the backend's suffix with the
privileges of the backend's root DN.
2011-06-09 01:36:06 -07:00
Howard Chu
0a78997f97
ITS#6936 add connID and peername to auditlog
...
From ksmith @ ycp.edu, with fixes by hyc
2011-06-09 01:01:06 -07:00
Howard Chu
cbb6fe15b9
ITS#6901 fix filter with zero-length values
2011-06-08 19:17:50 -07:00
Ondrej Kuznik
c0aec23bde
ITS#6641 Bypass checks on ops with managedsait
...
Document the uniqueness changes
Fix whitespace in original patch -- hyc
2011-06-08 16:10:50 -07:00
Pierangelo Masarati
d8f97f58e2
ITS#6899
...
tag read entry response control value with [APPLICATION 4] (SearchResultEntry)
2011-06-08 22:19:09 +02:00
Pierangelo Masarati
8a1aa76b07
fix typo in previous commit
2011-06-08 00:48:57 +02:00
Howard Chu
b4cb462fe2
ITS#6948 partial revert of #6837 , unnecessary
2011-06-06 19:55:54 -07:00
Howard Chu
6e0934d570
ITS#6948 fix ITS#6837 patch
2011-06-05 13:59:19 -07:00
Howard Chu
1b08936565
ITS#6963 config entries' objectclass is read-only
2011-06-04 13:40:57 -07:00
Howard Chu
3fb9d604ef
ITS#6831 don't push stack unless needed
2011-06-03 22:22:48 -07:00
Howard Chu
f5b809b2e9
Fix ce9bbd2
missing success return
2011-06-03 21:56:01 -07:00
Howard Chu
8b90f05b59
ITS#6831 additional filter cmp fixes
2011-06-03 21:40:27 -07:00
Howard Chu
aaac401dc8
ITS#6831 fix filter comparison
2011-06-03 19:13:24 -07:00
Howard Chu
ce9bbd2df2
More for ITS#6961 - deadlock checking
2011-06-01 11:29:39 -07:00
Howard Chu
f5cb879aed
Fix for sparse ranges, get next ID from DB
...
Instead of iterating thru potentially many nonexistent IDs
2011-06-01 01:44:51 -07:00
Ralf Haferkamp
ea22849514
ITS#6954 fix consistency checker prematurely deleting cached queries
2011-05-26 15:26:55 +02:00
Ralf Haferkamp
9e80eab803
fix uninitialized bindref_time (found with valgrind)
2011-05-26 14:07:37 +02:00