]>
git.ipfire.org Git - thirdparty/openldap.git/log
Howard Chu [Wed, 28 Oct 2020 16:50:23 +0000 (16:50 +0000)]
ITS#9379 reject listener URLs with non-empty DNs
Quanah Gibson-Mount [Mon, 26 Oct 2020 19:03:01 +0000 (19:03 +0000)]
Return to RE
Quanah Gibson-Mount [Mon, 26 Oct 2020 19:00:40 +0000 (19:00 +0000)]
Prepare for release (0.9.27)
Ondřej Kuzník [Mon, 12 Oct 2020 10:09:03 +0000 (11:09 +0100)]
ITS#9366 Check ldap_install_tls return and remove connection if failed
Howard Chu [Fri, 23 Oct 2020 19:38:14 +0000 (20:38 +0100)]
ITS#9376
Howard Chu [Wed, 21 Oct 2020 20:24:53 +0000 (21:24 +0100)]
ITS#9376 Fixes for repeated deletes with xcursor
On DUPSORT DBs, must initialize xcursor regardless of whether
caller requested its data. Also in cursor_prev must check whether
cursor index is still within range before using it.
Howard Chu [Mon, 19 Oct 2020 13:14:54 +0000 (14:14 +0100)]
ITS#9370 revert previous commit, alternate fix
Just skip normalization if there's no equality rule. We accept
DNs without equality rules already.
Howard Chu [Mon, 19 Oct 2020 13:03:41 +0000 (14:03 +0100)]
ITS#9370 check for equality rule on old_rdn
We should probably just check in dnNormalize instead, and catch
this everywhere DNs are received. It might make us reject some
DNs that are already in use, though (e.g. received from other
directory servers that don't do schema checking).
Howard Chu [Tue, 13 Oct 2020 21:11:44 +0000 (22:11 +0100)]
ITS#9121 don't process nested memberOf if memberOf wasn't requested
Howard Chu [Tue, 13 Oct 2020 18:51:40 +0000 (19:51 +0100)]
ITS#9354 fix signed/unsigned rate display
Howard Chu [Fri, 2 Oct 2020 12:25:52 +0000 (13:25 +0100)]
ITS#9361 prevent CSN from being generated for purge deletes
Quanah Gibson-Mount [Tue, 22 Sep 2020 19:41:16 +0000 (19:41 +0000)]
ITS#8618 - Remove deprecated -h and -p options to client tools
Quanah Gibson-Mount [Thu, 1 Oct 2020 16:41:34 +0000 (16:41 +0000)]
ITS#8872 - Rename configure.in to configure.ac
Howard Chu [Thu, 1 Oct 2020 13:26:48 +0000 (14:26 +0100)]
ITS#9342 delta-syncL ignore add of already existing entry
if the entryCSN is older. Previous patch breaks if writes are
received out of order, e.g. during a refresh.
Ondřej Kuzník [Wed, 30 Sep 2020 18:31:40 +0000 (19:31 +0100)]
ITS#9295 Do not replace 'op'
Ondřej Kuzník [Wed, 30 Sep 2020 18:25:56 +0000 (19:25 +0100)]
ITS#9359 Do not create an empty add
Ondřej Kuzník [Wed, 30 Sep 2020 18:25:26 +0000 (19:25 +0100)]
ITS#9359 Adjust test to trigger issue
Howard Chu [Wed, 30 Sep 2020 09:15:36 +0000 (10:15 +0100)]
ITS#9342 delta-sync: ignore add if entryCSN is too old
This check is only needed for ops received without a CSN in their cookie.
This only occurs when the ops completed out of order on the provider.
Howard Chu [Wed, 30 Sep 2020 09:51:22 +0000 (10:51 +0100)]
Partially Revert "ITS#8486 use kbtree for sessionlog"
This mostly reverts commit
1915cb968ab3eed2bbd0104a12c8b90b1cdebd99 .
Too many concurrency issues. Retains the improvement to
syncprov_sessionlog_cmp
Howard Chu [Tue, 29 Sep 2020 07:22:55 +0000 (08:22 +0100)]
ITS#9358 Fix reqStart normalizer
Don't truncate trailing zeroes in reqStart/reqEnd timestamps
Ondřej Kuzník [Fri, 25 Sep 2020 11:29:14 +0000 (12:29 +0100)]
ITS#9348 Stop using plain strerror()
Quanah Gibson-Mount [Tue, 22 Sep 2020 21:21:19 +0000 (21:21 +0000)]
ITS#8636 - Fix DESC for deltaCRL attribute
Quanah Gibson-Mount [Tue, 22 Sep 2020 19:11:06 +0000 (19:11 +0000)]
ITS#8341 - Add matching rule to the namingContexts attr
Howard Chu [Thu, 24 Sep 2020 14:12:48 +0000 (15:12 +0100)]
ITS#8486 use kbtree for sessionlog
Saves about 20% CPU time and RAM
Ondřej Kuzník [Tue, 22 Sep 2020 20:20:15 +0000 (20:20 +0000)]
ITS#8486 Protect tavl_* calls in play_sessionlog
Howard Chu [Sat, 19 Sep 2020 12:35:47 +0000 (13:35 +0100)]
ITS#8486 Minor play_sessionlog cleanup
Fix logmsg uuidstr.
Shortcut finding start of playback.
Allow dup CSNs in log, but with different UUIDs. All
non-present deletes in a refresh use the same CSN.
Ondřej Kuzník [Thu, 26 Oct 2017 11:00:20 +0000 (12:00 +0100)]
ITS#8486 Switch sessionlog to use TAVL
Quanah Gibson-Mount [Fri, 25 Sep 2020 00:07:23 +0000 (00:07 +0000)]
ITS#9348 - regenerate configure
Ondřej Kuzník [Thu, 24 Sep 2020 14:51:41 +0000 (15:51 +0100)]
ITS#5422 Save errno before passing it to Debug()
Howard Chu [Wed, 16 Sep 2020 21:55:50 +0000 (22:55 +0100)]
ITS#9348 cleanup strerr/sys_errlist detection
Howard Chu [Wed, 16 Sep 2020 14:33:13 +0000 (15:33 +0100)]
ITS#9348 replace all uses of STRERROR with AC_STRERROR_R
Avoid using sys_errlist unless there's no other choice
Howard Chu [Wed, 23 Sep 2020 13:58:37 +0000 (14:58 +0100)]
ITS#9354 cleanup watcher
After initial contact, don't exit if a server goes down.
Also, don't wait forever for responses, use a timeout and
mention when a timeout occurs.
Simplify csn/sid handling, we know the max we expect so just
allocate the space in advance and keep a fixed sid to slot
mapping.
Ondřej Kuzník [Wed, 23 Sep 2020 07:17:56 +0000 (08:17 +0100)]
ITS#9355 Propagate errors from overlay_entry_get_ov
Howard Chu [Tue, 22 Sep 2020 11:18:52 +0000 (12:18 +0100)]
ITS#8102 syncrepl: only use trylock on the cn=config DB
Quanah Gibson-Mount [Mon, 21 Sep 2020 20:55:18 +0000 (20:55 +0000)]
ITS#9351 - Regenerate configure
Quanah Gibson-Mount [Thu, 17 Sep 2020 15:45:23 +0000 (15:45 +0000)]
ITS#9351 - Always build back-monitor as a static backend
Howard Chu [Sat, 19 Sep 2020 23:56:34 +0000 (00:56 +0100)]
ITS#9354 Tool for monitoring slapd status
Howard Chu [Sun, 20 Sep 2020 15:27:34 +0000 (16:27 +0100)]
ITS#9353 fix monitor_back_register_database for empty suffix DB
Use the correct database entry instead of the frontendDB entry
Quanah Gibson-Mount [Thu, 17 Sep 2020 15:37:33 +0000 (15:37 +0000)]
ITS#6749 - Change configure monitor warning to DEBUG CONFIG instead of DEBUG ANY
Howard Chu [Thu, 17 Sep 2020 19:18:20 +0000 (20:18 +0100)]
ITS#9352 syncrepl: fix syncrepl_op_modify on entry with no entryCSN
Gabriel Buades [Wed, 16 Sep 2020 12:11:24 +0000 (14:11 +0200)]
ITS#9349 slapd-mdb: optimize index delete
Performance improvement for indexed attributes removal
Howard Chu [Thu, 17 Sep 2020 14:22:01 +0000 (15:22 +0100)]
ITS#9339 Fix syncrepl_monitor_init for dynamic monitor backend
Calling from backend.c only works if back-monitor is a static backend
Howard Chu [Wed, 16 Sep 2020 22:27:45 +0000 (23:27 +0100)]
Silence stupid warnings
Quanah Gibson-Mount [Wed, 16 Sep 2020 20:32:39 +0000 (20:32 +0000)]
Fix code indentation for recent changes
Howard Chu [Wed, 16 Sep 2020 14:08:52 +0000 (15:08 +0100)]
ITS#9348 don't declare sys_errlist if not present
If HAVE_SYS_ERRLIST is false, nothing uses them anyway, so the
declarations serve no purpose. Just breaks the compile if the
library actually defines them (and we are avoiding using them).
Howard Chu [Mon, 14 Sep 2020 22:21:14 +0000 (23:21 +0100)]
ITS#9345 fix for cmdline cookie
Previous commit could cause cmdline cookie to be ignored
Howard Chu [Mon, 14 Sep 2020 23:35:52 +0000 (00:35 +0100)]
ITS#9015 syncprov: fix for zero-length suffix
If the "" glue entry exists and lacks a contextCSN, must perform
an additional search to be sure the DB is otherwise empty. If so,
skip creating the contextCSN.
Quanah Gibson-Mount [Sat, 12 Sep 2020 04:59:37 +0000 (04:59 +0000)]
ITS#9344 - Fix TLS_PEERKEY_HASH_FAIL evaluation
Howard Chu [Sun, 13 Sep 2020 06:45:28 +0000 (07:45 +0100)]
ITS#9338 alternate fix
Don't resume pending ops unless there are no other threads
waiting to write
Howard Chu [Sun, 13 Sep 2020 07:37:05 +0000 (08:37 +0100)]
ITS#9345 disable test058 again
Howard Chu [Sat, 12 Sep 2020 20:49:43 +0000 (21:49 +0100)]
ITS#9346 Fix test063 to handle more servers
Howard Chu [Sat, 12 Sep 2020 20:38:20 +0000 (21:38 +0100)]
ITS#9345 syncrepl: call check_syncprov on freshly started consumer
Quanah Gibson-Mount [Sat, 12 Sep 2020 04:58:12 +0000 (04:58 +0000)]
ITS#9209 - Fix previous commit for command invocation
Quanah Gibson-Mount [Sat, 12 Sep 2020 04:40:46 +0000 (04:40 +0000)]
ITS#9209 - Fix command invocation
Howard Chu [Fri, 11 Sep 2020 23:14:19 +0000 (00:14 +0100)]
ITS#9043 Fix new log msg crashes
Solaris stdio hates NULL pointers
Howard Chu [Fri, 11 Sep 2020 22:47:15 +0000 (23:47 +0100)]
ITS#8054 fix etime calculation
Was overlooked in
a0cc1d9655da112a4d19cddf821460a4dedeed1c
Quanah Gibson-Mount [Thu, 3 Sep 2020 21:24:09 +0000 (21:24 +0000)]
Issue#9335 - Skip test if compiled without SASL support
Howard Chu [Thu, 10 Sep 2020 14:35:14 +0000 (15:35 +0100)]
ITS#9339 fix connection address handling
valgrind didn't like accesses to si->si_connaddr
Also fix an array bounds check in ITS#9282 merge_state
Howard Chu [Thu, 10 Sep 2020 14:15:52 +0000 (15:15 +0100)]
ITS#8102, #9330 partially revert
Fix a regression in delta-sync, was returning error on old
CSNs instead of ignoring them
Ondřej Kuzník [Thu, 10 Sep 2020 10:04:29 +0000 (11:04 +0100)]
ITS#9043 Only print sessionlog entries we think will apply
Ondřej Kuzník [Thu, 10 Sep 2020 10:03:37 +0000 (11:03 +0100)]
ITS#9043 Nul-terminate csn string
Howard Chu [Sun, 6 Sep 2020 20:24:47 +0000 (21:24 +0100)]
ITS#9339 fix test049 script
Was re-using rid=002, changed to unique rid
Howard Chu [Sun, 6 Sep 2020 15:25:23 +0000 (16:25 +0100)]
ITS#9339 Add cn=monitor to test063
Just for convenience
Howard Chu [Sun, 6 Sep 2020 15:09:35 +0000 (16:09 +0100)]
ITS#9339 Add syncrepl status to cn=monitor
Shows connection address, refresh/persist state, time of last
connect attempt and received data, and last sent and
received cookies per consumer.
Howard Chu [Sun, 6 Sep 2020 12:43:31 +0000 (13:43 +0100)]
ITS#9339 slapd-monitor: Add schema arc for overlays
Not directly related to syncrepl, but adds a necessary schema arc.
Also add a convenience function for obtaining an entry with known ndn.
Also fix to ignore outbound connections.
Howard Chu [Wed, 9 Sep 2020 16:58:56 +0000 (17:58 +0100)]
ITS#9043 tweak syncprov play_sessionlog logging
Don't log cookiecsn at top, it was already logged on receipt.
Only log the "control csn" and "too old" message once for each sid.
Howard Chu [Wed, 9 Sep 2020 10:46:02 +0000 (11:46 +0100)]
ITS#8102 serialize plain syncrepl
Using cs_pmutex. Reverts the addition of cs_modmutex in ITS#9330,
use cs_pmutex for both delta and plain writes.
Note that plain syncrepl already used cs_pmutex when a cookie CSN
was present in the op. Now it is used for all writes, regardless
of presence of cookie.
Howard Chu [Tue, 8 Sep 2020 20:25:30 +0000 (21:25 +0100)]
ITS#9342 delta-sync: ignore error if deleting an already deleted entry
Lukas Juhrich [Sat, 4 Nov 2017 01:50:44 +0000 (02:50 +0100)]
Issue#8769 - Fix oid search extension syntax in documentation
The option string, e.g. '<oid>=:dn:' is parsed like a LDIF entry starting from
the '=' and replacing the '=' with a dummy variable 'x'. In this case, said
string is 'x:dn:', so the resulting effective value is 'dn:'. This also implies
that base64 values have to be passed in the form '<oid>=::<b64value>'.
Quanah Gibson-Mount [Thu, 3 Sep 2020 18:10:30 +0000 (18:10 +0000)]
ITS#9209 - Use portable command instead of which for determining if binaries are present
Quanah Gibson-Mount [Wed, 2 Sep 2020 18:56:53 +0000 (18:56 +0000)]
Issue#9333 - Delete unused TIMING variable left over from OpenLDAP 2.0
Howard Chu [Fri, 4 Sep 2020 18:44:06 +0000 (19:44 +0100)]
ITS#9338 add regression test
Howard Chu [Fri, 4 Sep 2020 16:49:38 +0000 (17:49 +0100)]
ITS#9338 Add backlog control for testing slapd write waits
Howard Chu [Fri, 4 Sep 2020 13:28:44 +0000 (14:28 +0100)]
ITS#9338 Make sure connection gets rescheduled after write blockage clears up
Howard Chu [Fri, 4 Sep 2020 12:39:00 +0000 (13:39 +0100)]
ITS#9338 syncrepl: Don't reuse existing connection on Refresh fallback
Howard Chu [Thu, 3 Sep 2020 20:30:35 +0000 (21:30 +0100)]
ITS#9334 slapo-ppolicy re-fix ITS#9302
The mutex_lock was being skipped in the lockout case,
but still calling mutex_unlock at the end.
Howard Chu [Thu, 3 Sep 2020 20:08:17 +0000 (21:08 +0100)]
ITS#9201 partial revert
Howard Chu [Thu, 3 Sep 2020 20:00:39 +0000 (21:00 +0100)]
ITS#9201 additional fixes
Howard Chu [Thu, 3 Sep 2020 11:37:32 +0000 (12:37 +0100)]
ITS#9201 fix LDAP_THREAD_DEBUG
Add missing defs to ldap_thr_debug.h.
slap tools must init libldap so internal mutexes get inited.
Quanah Gibson-Mount [Wed, 2 Sep 2020 19:33:03 +0000 (19:33 +0000)]
Revert "Tweak prev commit for RE24 style debug"
This reverts commit
d224e576a93cbeb904e01ca9f326248fe55b34eb .
Revert, wrong branch
Quanah Gibson-Mount [Wed, 2 Sep 2020 19:31:59 +0000 (19:31 +0000)]
Tweak prev commit for RE24 style debug
Ondřej Kuzník [Wed, 2 Sep 2020 15:51:03 +0000 (16:51 +0100)]
ITS#9282 Extend test to cover the second issue fixed
Howard Chu [Wed, 2 Sep 2020 00:34:07 +0000 (01:34 +0100)]
ITS#9121 fix for URLs with no filter
Quanah Gibson-Mount [Tue, 1 Sep 2020 17:45:34 +0000 (17:45 +0000)]
ITS#8159 - Add missing "hard" parameter to size.prtotal
Howard Chu [Tue, 1 Sep 2020 19:24:30 +0000 (20:24 +0100)]
ITS#9332 add placeholder in LDAP_LDO_TLS_NULLARG
Quanah Gibson-Mount [Tue, 1 Sep 2020 17:00:36 +0000 (17:00 +0000)]
ITS#8175 - Fix missing descriptions for olcDisallows for proxy_authz_non_critical and dontusecopy_non_critical
Howard Chu [Mon, 31 Aug 2020 19:09:52 +0000 (20:09 +0100)]
ITS#9282 more for merge_state
Don't assume si_cookieState is always newer
Howard Chu [Mon, 31 Aug 2020 18:36:10 +0000 (19:36 +0100)]
ITS#9282 fix crash in nonpresent_callback
In a standard Refresh present phase, the provider sends no cookie
since it is only listing the entries that existed as of the time
in the cookie the consumer sent. In this case the consumer only
needs to check entryCSNs against its last sent cookie.
Howard Chu [Mon, 31 Aug 2020 12:33:19 +0000 (13:33 +0100)]
ITS#9327 fix prev commit
Howard Chu [Wed, 19 Aug 2020 15:37:46 +0000 (16:37 +0100)]
ITS#9330 Fully serialize delta-sync
Don't depend on accesslog overlay's serialization
Howard Chu [Fri, 28 Aug 2020 23:39:36 +0000 (00:39 +0100)]
ITS#7639 fix crash in config_delete
Additional fix to
41352ea34da225375b77254efdcde8e6e5a1a515
The overlay must be deleted from the backend before the
callback can execute. In particular, it must be done before
the threadpool is unpaused.
Howard Chu [Fri, 28 Aug 2020 17:43:54 +0000 (18:43 +0100)]
ITS#8427 don't set tls_ctx if TLS wasn't requested
Also, set any remaining TLS options that weren't carried along
in the TLS ctx.
Howard Chu [Fri, 28 Aug 2020 10:08:17 +0000 (11:08 +0100)]
ITS#9054, #9318 document new TLS options in slapd
Quanah Gibson-Mount [Thu, 27 Aug 2020 15:16:38 +0000 (15:16 +0000)]
ITS#9282 - Fix hard coded backend
Howard Chu [Thu, 27 Aug 2020 10:22:12 +0000 (11:22 +0100)]
ITS#9054 fix typo
Quanah Gibson-Mount [Wed, 26 Aug 2020 21:58:05 +0000 (21:58 +0000)]
Last commit was for ITS#8725, not ITS#8845
Quanah Gibson-Mount [Wed, 26 Aug 2020 21:55:39 +0000 (21:55 +0000)]
More for ITS#8845, skip cleanup on async op with extended operations
Quanah Gibson-Mount [Wed, 26 Aug 2020 21:43:21 +0000 (21:43 +0000)]
ITS#9323 - Regenerate configure
Howard Chu [Wed, 26 Aug 2020 12:22:52 +0000 (13:22 +0100)]
ITS#9328 cldap: check for error on connected socket
libldap doesn't use a connected socket for UDP sessions, but 3rd
parties can, passed in with ldap_init_fd().
Howard Chu [Wed, 26 Aug 2020 19:17:41 +0000 (20:17 +0100)]
ITS#9329 Re-fix merge_state
A bit uglier but more straightforward.