Commit Graph

13020 Commits

Author SHA1 Message Date
Howard Chu
c2d546704b ITS#9825 dynlist: don't lose earlier filter elements 2022-04-22 15:39:46 +00:00
Ondřej Kuzník
1f5f97d69e ITS#9802 Fix argv handling 2022-04-21 16:30:44 +00:00
Ondřej Kuzník
f7bdf7aaf4 ITS#9818 Duplicate substring filters correctly 2022-04-11 16:57:59 +01:00
Howard Chu
f0a6465f23 ITS#9802 slapd-ldap/meta/async-meta: plug memleak in keepalive config 2022-03-21 20:21:20 +00:00
Howard Chu
e9b11154ee ITS#9802 slapd-meta: fix rewrite config ordering 2022-03-21 20:21:20 +00:00
Howard Chu
d878ebc3d2 ITS#9802 slapd-meta: fix rewrite config SEGV 2022-03-21 20:21:20 +00:00
Howard Chu
e29ba72c56 ITS#9809: pcache, mdb: fix SEGV in monitor shutdown 2022-03-15 17:04:42 +00:00
Ondřej Kuzník
a9d98407d2 ITS#9808 Store the correct value in olcLastBind 2022-03-14 09:35:12 +00:00
Ondřej Kuzník
34ebfac7ef ITS#9799 Drop a bind connection if there's a timeout 2022-03-07 15:39:09 +00:00
Ondřej Kuzník
fbfb5454cd ITS#9343 Allow Compare to check pwdPolicySubentry 2022-03-07 14:54:39 +00:00
Ondřej Kuzník
6a903a8cf1 ITS#9343 Switch ppolicy_get to rely on ppolicy_operational 2022-03-07 14:54:39 +00:00
Ondřej Kuzník
db9da05171 ITS#9343 Provide effective value of pwdPolicySubentry 2022-03-07 14:54:39 +00:00
Ondřej Kuzník
950ff8a5f0 ITS#9343 Allow a list of default policies 2022-03-07 14:54:39 +00:00
Ondřej Kuzník
1fac13d239 ITS#9343 Let backend_attribute read operational attributes
back-mdb checks requested attribute is present in the entry which
can obstruct the fallback to backend_operational.
2022-03-07 14:54:39 +00:00
Howard Chu
4996d42277 ITS#9801 syncrepl/dsee init punlock 2022-02-22 17:11:45 +00:00
Ondřej Kuzník
0806f69c8c ITS#9799 Clear c_n_ops_pending after we've flushed c_pending_ops 2022-02-14 17:32:01 +00:00
Ondřej Kuzník
1800a1f10c ITS#9794 Synchronise how Adds and Modifies are handled 2022-02-08 17:04:40 +00:00
Howard Chu
62bf31e966 ITS#9584 bconfig: protect cf entries with rwlock
Since not all config writes pause the server, must prevent
searches from seeing intermediate states.
2022-02-03 18:40:39 +00:00
Howard Chu
868c7953d7 ITS#9436 OpenSSL 3.0 compat 2022-02-03 16:42:44 +00:00
Ondřej Kuzník
87ffc60006 ITS#9584 Do not rely on retry=.* to reschedule new syncrepl sessions 2022-01-28 17:49:30 +00:00
Ondřej Kuzník
ca19a774f6 ITS#9785 clear runqueue task as soon as it's getting started 2022-01-27 15:59:39 +00:00
Ondřej Kuzník
f5d86968c7 ITS#9789 slapd-asyncmeta: Reset op->o_counters every time we migrate to a new thread 2022-01-26 18:55:41 +00:00
Ondřej Kuzník
ebc7369727 ITS#9789 slapo-syncprov: Reset op->o_counters every time we migrate to a new thread 2022-01-26 18:55:41 +00:00
Ondřej Kuzník
ebfbf8281a ITS#9789 Expose operation_counter_init 2022-01-26 18:55:41 +00:00
Howard Chu
38e16e3b39 ITS#9787 init global_host earlier so tools see it too 2022-01-23 14:08:24 +00:00
Ondřej Kuzník
7e923c723e ITS#7239 Do not log internal ops 2022-01-18 20:11:46 +00:00
Ondřej Kuzník
a6c110d16d ITS#7080 cn=config postread support for modrdn when back-ldif not used 2022-01-18 18:31:32 +00:00
Ondřej Kuzník
67f7f98ca5 ITS#7080 Fix debug message 2022-01-18 18:31:32 +00:00
Ondřej Kuzník
6ccc0974e1 ITS#8039 Free resinfo even if opcookie is the last owner 2022-01-18 16:46:09 +00:00
Howard Chu
e73cdc55e0 ITS#9779 slapo-dynlist: fix static group filter with multiple members 2022-01-18 15:11:28 +00:00
Ondřej Kuzník
2443e986d1 ITS#9772 Allow objectClass edits that don't actually change them 2022-01-18 05:12:53 +00:00
Ondřej Kuzník
4b18c2be00 ITS#5972 Consider all deletes for syncInfo messages
A delete of an entry that didn't match filter would be skipped
altogether and the cookie would never be sent to that consumer.
2022-01-18 03:34:27 +00:00
Ondřej Kuzník
6f31d73dc0 ITS#9776 Fix check on what backend we're operating on 2022-01-11 08:45:44 +00:00
Ondřej Kuzník
414866b888 ITS#9580 Propagate a present-phase cookie flush into accesslog 2022-01-11 06:47:00 +00:00
Ondřej Kuzník
bc28e7950d ITS#9538 Actually skip internal searches 2022-01-10 22:25:33 +00:00
Ondřej Kuzník
87b78f2060 ITS#9538 Do not attach csn on (internal) searches 2022-01-10 22:25:33 +00:00
Ondřej Kuzník
95df37d101 ITS#9538 Populate op2.o_hdr earlier 2022-01-10 22:25:33 +00:00
Ondřej Kuzník
70e6bd6777 ITS#9751 Do not drop out of order deletes completely 2022-01-10 18:44:28 +00:00
Quanah Gibson-Mount
788e9592ba Happy New Year! 2022-01-07 18:40:00 +00:00
Ondřej Kuzník
3ca8d6d388 ITS#9770 slapo-constraint: Maintain values in order of insertion 2022-01-06 16:28:52 +00:00
Ondřej Kuzník
2bf59ff63a ITS#7080 Find config entry before processing pre-read on delete 2022-01-06 03:05:45 +00:00
Ondřej Kuzník
d8331e1b81 ITS#9768 Enforce single name per olcTranslucentLocal/olcTranslucentRemote value 2022-01-05 21:24:07 +00:00
Ondřej Kuzník
711ebba53c ITS#9767 Enforce single name per olcUniqueIgnore/olcUniqueAttribute value 2022-01-05 19:21:17 +00:00
Ondřej Kuzník
0ecaa025d2 ITS#9764 slapo-valsort: Maintain values in order of insertion 2022-01-05 05:07:34 +00:00
Ondřej Kuzník
52bba704e7 ITS#9763 Make sure we keep cn=config values separate 2022-01-04 22:34:32 +00:00
Ondřej Kuzník
e87569f983 ITS#9763 Maintain values in order of insertion 2022-01-04 22:34:32 +00:00
Ondřej Kuzník
a5e7fdce48 ITS#9762 slapo-dyngroup: Maintain values in order of insertion 2022-01-04 20:10:01 +00:00
Ondřej Kuzník
a8467b8b15 ITS#9761 Fix olcSyncrepl position based insertion 2022-01-04 17:53:26 +00:00
HAMANO Tsukasa
30917b984c ITS#9760 back-wt: SLAP_DBFLAG_CLEAN is always set. 2022-01-03 18:00:00 +00:00
Ondřej Kuzník
edf7ef4948 ITS#9642 Lloadd standalone doesn't use rq 2021-12-15 20:40:53 +00:00
Ondřej Kuzník
bc37a9fdfa ITS#9642 Remove redundant calls to slap_wake_listener() 2021-12-15 20:40:53 +00:00
Ondřej Kuzník
19d4a69882 ITS#9642 Notify runner of any changes to the runqueue 2021-12-15 20:40:53 +00:00
Ondřej Kuzník
fbd4f9abdd ITS#9556 Send INVALID_SYNTAX for invalid schema elements 2021-12-15 18:39:46 +00:00
Ondřej Kuzník
def3a958ec ITS#9556 Allow handlers to set result code 2021-12-15 18:39:46 +00:00
Ondřej Kuzník
9e3184763c ITS#9691 Allow empty DB to host a persistent syncrepl session 2021-12-15 16:50:43 +00:00
Ondřej Kuzník
75636a407e ITS#9584 Track refreshing status explicitly
A refresh can jump across multiple threads, we cannot just lock a
mutex, we need to track who that is and clear when finished.

In addition to that, fix our internal syncrepl session tracking pulling
it closer to RFC 4533, refreshDone now represents the receipt of
refreshDone flag. Refreshing status is maintained for plain refreshes
(and times when we might be starting one but don't know for sure).

We still reschedule a new sync with a delay if there is another one
running but tracking refreshes this way paves the way to being able to
wake them up if we start tracking them somehow.
2021-12-15 01:22:38 +00:00
Ondřej Kuzník
e6347bc1b8 ITS#9729 Allow multiprovider to be set before syncrepl stanzas 2021-12-14 21:10:17 +00:00
Ondřej Kuzník
1a92f417a6 ITS#9576 Populate ca_desc for EMIT too 2021-12-14 19:22:48 +00:00
Ondřej Kuzník
b7390f1710 ITS#9596 Let others wait on the startup readiness indication 2021-12-14 16:30:54 +00:00
Ondřej Kuzník
544a7c8839 ITS#9596 Allow slapd to listen on port 0
And have it update the listening socket names as the port gets assigned.
2021-12-14 16:30:54 +00:00
Ondřej Kuzník
e96bfd088e ITS#9750 olcPasswordHash can only be made global in cn=config 2021-12-14 00:19:17 +00:00
Ondřej Kuzník
c51320a6f6 ITS#9742 Reject a refresh if we can't do a precise resync 2021-12-13 19:20:58 +00:00
Ondřej Kuzník
af2f89102e ITS#9493 Ensure we can process cn=config deletes 2021-12-13 17:01:22 +00:00
Ondřej Kuzník
4252900537 ITS#9493 Accesslog cn=config fixes 2021-12-13 17:01:22 +00:00
Ondřej Kuzník
3d908bcd89 ITS#9758 Make sure we don't end up with duplicates in entry 2021-12-10 19:13:40 +00:00
Ondřej Kuzník
da73c184b2 ITS#9758 Fix slapd-sock value add/delete 2021-12-10 19:13:40 +00:00
Ondřej Kuzník
d094cf2cb5 ITS#9759 Honour requested insert position in olcRetcodeItem 2021-12-10 16:54:54 +00:00
Ondřej Kuzník
ba37508f80 ITS#9647 Find correct sid in compare_csns() more of the time 2021-12-09 20:50:02 +00:00
Ondřej Kuzník
e8f1038de0 ITS#9647 Treat glue entries as missing
We're using MANAGE_DSAIT control so we get to see them, but they don't
really exist (except for their CSN sometimes).
2021-12-09 20:50:02 +00:00
Ondřej Kuzník
8d514517cc ITS#9647 Record delete's CSN in the glue entry 2021-12-09 20:50:02 +00:00
Ondřej Kuzník
5357c9ef7f ITS#9756 Generate a more accurate accesslog query 2021-12-09 18:04:27 +00:00
Howard Chu
453799eb97 ITS#9707 also: don't log null cookie 2021-12-09 17:51:39 +00:00
Howard Chu
bb17e23f28 ITS#9707 syncrepl: don't set lastCookie if none present 2021-12-09 17:40:35 +00:00
Ondřej Kuzník
a73ddda533 ITS#9282 Skip old accesslog entries even in delta-refresh 2021-12-08 17:15:57 +00:00
Ondřej Kuzník
8d428f3163 ITS#9282 Do not resuscitate entries we already deleted 2021-12-08 17:15:57 +00:00
Ondřej Kuzník
da610c050c ITS#9282 Short-circuit cookie comparison in non-present check 2021-12-08 17:15:57 +00:00
Howard Chu
739081f217 ITS#9753 back-mdb: Fix index updating for replace ops 2021-11-23 17:29:31 +00:00
Howard Chu
f476a06391 ITS#9752 accesslog: fix inconsistently normalized minCSN 2021-11-19 05:17:52 +00:00
Howard Chu
510c95af74 ITS#9745 more for prev commit 2021-11-16 23:37:54 +00:00
Howard Chu
a1799a6e5e ITS#9745 add config keyword for logfile format 2021-11-16 18:57:54 +00:00
Howard Chu
bc659074ee ITS#9747 dynlist: fix Compare for static groups
Fallback to static check if static groups are configured and
dynamic group check returns false.
2021-11-15 17:36:40 +00:00
Ondřej Kuzník
30baa30bce ITS#9738 Remove code deprecated by ITS#9538 2021-11-11 20:06:01 +00:00
Ondřej Kuzník
eb989be408 ITS#9733 Only use libltdl when SLAPD_MODULES is defined 2021-11-11 18:19:09 +00:00
Howard Chu
eab4ece0c2 ITS#9730 fix logging config uninit'd rc 2021-10-29 14:24:45 +01:00
Howard Chu
8dcf12f7da ITS#9715 Fix loglevel regression
Only set loglevel in server mode, not tool mode
2021-10-26 15:45:06 +00:00
Ondřej Kuzník
6ca85aa3a8 ITS#9720 Import missing minCSNs from inside DB
We might also ignore them, but if minCSN/contextCSN were not managed
properly, might as well make the effort to approach the actual value at
some point.
2021-10-21 12:10:34 +01:00
Ondřej Kuzník
8f35dc45f2 ITS#9720 Manage the purge task properly 2021-10-21 12:10:14 +01:00
Howard Chu
9b03a1ec88 ITS#9715 allow setting both debug and loglevel in cn=monitor 2021-10-18 17:49:52 +01:00
Howard Chu
d76b8cbbef ITS#9715 consolidate logging functionality into logging.c 2021-10-18 17:49:47 +01:00
Ondřej Kuzník
90fc349654 ITS#9715 Deduplicate verbmasks implementation from slapd/lloadd 2021-10-18 17:49:38 +01:00
Howard Chu
7c20ca922f ITS#9713 log fatal config errors at LDAP_DEBUG_ANY
and make sure logfile_only doesn't mute failures to open logfile
2021-10-07 17:11:53 +01:00
Howard Chu
2995da7e8d ITS#9712 back-mdb: better fix 2021-10-07 01:42:38 +01:00
Howard Chu
74a5a3a474 ITS#9712 back-mdb: fix multival delete 2021-10-07 01:22:34 +01:00
Ondřej Kuzník
397e30a5e7 ITS#9620 Fix deadlocks between searches and register_entry
The cache is again protected by a simple mutex and mp_children/mp_next
is protected by mp_mutex. Each monitor_send_children is called holding
the corresponding mp_mutex meaning the whole path from search base to
the current entry is off limits - cn=monitor searches cannot run in
parallel right now.
2021-10-05 11:05:25 +01:00
Ondřej Kuzník
ef60ec1df6 ITS#9600 Protect connection while interacting with it 2021-10-05 11:05:25 +01:00
Ondřej Kuzník
6cc6ec2f72 ITS#9600 Do not hold locks while calling into back-monitor 2021-10-05 11:05:25 +01:00
Ondřej Kuzník
8968d13163 ITS#9599 Switch to xorshift for random numbers 2021-10-05 01:11:30 +00:00
Ondřej Kuzník
3c07544b2a ITS#6949 Port rest of the features to lloadd 2021-10-04 14:46:26 +01:00
Ondřej Kuzník
8894f00fe4 ITS#6949 Remove dead code from lloadd 2021-10-04 14:46:26 +01:00
Ondřej Kuzník
a3dea08ccd ITS#6949 Fix and emit error messages 2021-10-04 14:46:22 +01:00