Commit graph

24151 commits

Author SHA1 Message Date
Howard Chu
12ff3a90d4 ITS#10004: librewrite: plug potential ld leak in ldapmap 2023-02-17 15:52:35 +00:00
Howard Chu
372b40ad18 ITS#10003: ldap_open_internal_connection: fix mutex usage
Note: this is a non-standard function with no use cases
2023-02-17 15:52:35 +00:00
Howard Chu
a359cccbde ITS#10000 slapd-watcher: plug potential leak 2023-02-17 15:52:35 +00:00
Howard Chu
5e15ce57a9 ITS#9999 slapd-search: plug potential leak 2023-02-17 15:52:35 +00:00
Howard Chu
17359b7463 ITS#9998 slapd-mtread: plug potential leak 2023-02-17 15:52:35 +00:00
Howard Chu
4a9e449b24 ITS#9997 syncrepl: plug potential leak in changelog search
Note this is only used with changelog, which is nonstandard and obsolete.
2023-02-17 15:52:35 +00:00
Howard Chu
d9507a834c \ITS#9996 librewrite plug potential leak in ldapmap map_ldap_apply() 2023-02-17 15:52:35 +00:00
Howard Chu
7f0e4ecdaa ITS#9995 ldapdelete: plug potential search leak 2023-02-17 15:52:35 +00:00
Дилян Палаузов
3c284d26cd ITS#9989 Keep .pc files on «make clean» 2023-02-15 18:50:28 +00:00
Quanah Gibson-Mount
9b9434ee4a ITS#10011 -- Regenerate configure 2023-02-15 18:35:50 +00:00
Sam James
b260205fd5 ITS#10011 servers: fix -Wstrict-prototypes
For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2],
or the (new) c-std-porting mailing list [3].

[0] https://lwn.net/Articles/913505/
[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
[2] https://wiki.gentoo.org/wiki/Modern_C_porting
[3] hosted at lists.linux.dev.

Signed-off-by: Sam James <sam@gentoo.org>
2023-02-10 23:22:54 +00:00
Sam James
480be3eec5 ITS#10011 contrib: fix old-style K&R declarations
Removed in C23.

For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2],
or the (new) c-std-porting mailing list [3].

[0] https://lwn.net/Articles/913505/
[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
[2] https://wiki.gentoo.org/wiki/Modern_C_porting
[3] hosted at lists.linux.dev.

Signed-off-by: Sam James <sam@gentoo.org>
2023-02-10 23:22:53 +00:00
Sam James
14f81bc47a ITS#10011 build: fix compatibility with stricter C99 compilers
Fix the following warnings:
- -Wimplicit-int (fatal with Clang 16)
- -Wimplicit-function-declaration (fatal with Clang 16)
- -Wincompatible-function-pointer-types (fatal with Clang 16)
- -Wint-conversion (fatal with Clang 15)
- Old style prototypes (K&R, removed from C23)

These warnings-now-error led to misconfigurations and failure to build
OpenLDAP, as the tests used during configure caused the wrong results
to be emitted.

For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2],
or the (new) c-std-porting mailing list [3].

[0] https://lwn.net/Articles/913505/
[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
[2] https://wiki.gentoo.org/wiki/Modern_C_porting
[3] hosted at lists.linux.dev.

Bug: https://bugs.gentoo.org/871288
Signed-off-by: Sam James <sam@gentoo.org>
2023-02-10 23:22:43 +00:00
Quanah Gibson-Mount
ee5565a600 Merge remote-tracking branch 'origin/mdb.RE/0.9' 2023-02-08 18:46:30 +00:00
Quanah Gibson-Mount
8f44dca45d Update MDB_VERSION_DATE for the release 2023-02-08 18:41:37 +00:00
Quanah Gibson-Mount
05b582ac0c Update release date for 0.9.30 2023-02-08 18:40:04 +00:00
Howard Chu
69f52354d2 ITS#9993 fix online_indexer termination/cleanup 2023-02-01 20:30:22 +00:00
Ondřej Kuzník
fa64703e6c ITS#9990 Preserve callbacks added already 2023-02-01 16:56:37 +00:00
Quanah Gibson-Mount
b220ba1077 ITS#9718 - Fix nonportable sed usage 2023-01-30 22:06:06 +00:00
Quanah Gibson-Mount
6a3a71692a ITS#9985 - Fix module name to pw-totp 2023-01-30 15:41:16 +00:00
Howard Chu
801297cb77 ITS#9991 send_ldap_ber: make sure we're only closing our own connection 2023-01-30 14:44:27 +00:00
Ondřej Kuzník
868309c90d ITS#8102 Do not continue if deconfigured during pause 2023-01-30 12:06:24 +00:00
Ondřej Kuzník
fa030ef8dc ITS#9930 Do not reschedule consumers that are shutting down 2023-01-30 10:26:23 +00:00
Ondřej Kuzník
12bf5a95ba ITS#9045 rlock only if there may be other threads
We can't rlock if we've registered ourselves as a writer. We can only
figure that out by checking if we're the thread that initiated the
pause: is the server paused already?
2023-01-23 11:53:36 +00:00
Ondřej Kuzník
5ccbe63246 ITS#9930 Just wait until si_mutex is ready
We're in a much better place now and there is only a single task active
for a given syncinfo_t plus the task that's just scheduled it and is
wrapping up. Any remaining times this wouldn't be true are probably bugs
to be fixed.
2023-01-19 15:21:05 +00:00
Ondřej Kuzník
e6e42642ca ITS#9983 Also fix c_refcnt sequencing 2023-01-19 03:17:59 +00:00
Ondřej Kuzník
0df9d9156a ITS#9983 Rework op->o_refcnt decref sequencing
epoch_append should be called at the point the object is not reachable
anymore, otherwise a thread from a "future" might still access it post
reclamation.
2023-01-19 03:17:59 +00:00
Ondřej Kuzník
bd3b6b679f ITS#9984 Keep listener base around even if not active 2023-01-18 12:57:02 +00:00
Quanah Gibson-Mount
f58f2160ba Fix options for olcIndexHash64
Use cn=config format of TRUE/FALSE instead of slapd.conf format on/off
2023-01-11 17:03:55 +00:00
Howard Chu
e2727bb8ab ITS#9976 doc: ldap_sasl_bind: mention ber_bvfree 2023-01-10 15:14:16 +00:00
Дилян Палаузов
08e1e2c66c typo unsuccesSful, presense/presence, accessSlog 2023-01-09 17:46:36 +00:00
Howard Chu
192282d987 ITS#9957 slapo-dynlist: more explicit config doc 2023-01-09 16:59:43 +00:00
Howard Chu
3ebe6625c1 ITS#9966 slapo-pcache: fix crash in consistency_check 2022-12-25 11:21:32 +00:00
Howard Chu
0acf148af2 ITS#9960 slapo-dynlist: mark internal searches as internal 2022-12-15 10:07:06 +00:00
Howard Chu
54fae7711f ITS#9961 LMDB: fix MSVC error 2022-12-15 09:38:45 +00:00
Howard Chu
1f251fa4e6 ITS#9880 slapo-accesslog: fix reqStart ordering filter
Same as ITS#9358 but for ordering matching rule, not just equality
2022-12-07 14:58:35 +00:00
Quanah Gibson-Mount
10d4461634 Merge remote-tracking branch 'origin/mdb.RE/0.9' 2022-12-05 16:21:51 +00:00
Howard Chu
c8e039aa15 ITS#9929 plug memleaks 2022-12-01 15:39:03 +00:00
Howard Chu
00610ee886 ITS#9121 dynlist: cleanup unused code 2022-12-01 15:39:03 +00:00
Howard Chu
9d53f7ccbc ITS#9929 preserve e_name for memberOf values 2022-12-01 15:39:03 +00:00
Howard Chu
cc79020b42 ITS#9929: more performance tweaks
For simple (non-nested) member compares, avoid unnecessary fetches
of dyngroups that can't match the filter.
cache filter/entry instance info across multiple dyn entries to
avoid refetching each filter entry for each dyngruop test.
2022-12-01 15:39:03 +00:00
Howard Chu
d337ae751f ITS#9929 slapo-dynlist: more performance tweaks
Minimize cost of dynamic lists while still making them filterable:
require their attrs to be explicitly mapped if filtering is to be supported.

Also check config scope in compare op
2022-12-01 15:39:03 +00:00
Howard Chu
31e6efeb07 ITS#9955 liblunicode: fix buffer size in UTF8bvnormalize
output buffer may overrun 1 byte for specially crafted approxMatch search filters.
Not exploitable, no operational or security impact.
2022-12-01 14:58:37 +00:00
Howard Chu
f16ef18fc9 ITS#9916 2022-11-28 23:41:00 +00:00
Howard Chu
139831a5c0 ITS#9916 liblmdb: use alternate MDB_page2 struct for some accesses
fakepage pointers are only guaranteed to be 2-byte aligned. Use a
2-byte aligned struct definition when referencing 2-byte page members
if a page pointer possibly points to a fakepage.
2022-11-28 23:18:56 +00:00
Quanah Gibson-Mount
0c2168993b ITS#9806 2022-11-28 17:51:38 +00:00
Howard Chu
d2fa5806d8 ITS#9806 LMDB page_split: key threshold depends on page size
32 was chosen for page size of 4KB. Not large nough for 16KB pages.
2022-11-28 14:32:33 +00:00
Ondřej Kuzník
512a99b054 ITS#9951 Postpone releasing a connection reference while in cn=monitor 2022-11-24 10:04:42 +00:00
Ondřej Kuzník
e45869dd7e ITS#9947 Fix race in epoch.c and simplify 2022-11-07 10:00:10 +00:00
Howard Chu
5e2fa8a213 ITS#9940 back-mdb: fully init empty DN in tool_entry_get 2022-11-01 17:13:23 +00:00