]>
git.ipfire.org Git - thirdparty/openldap.git/log
Quanah Gibson-Mount [Wed, 26 Apr 2023 17:33:19 +0000 (17:33 +0000)]
ITS#10004
Howard Chu [Thu, 2 Feb 2023 15:32:11 +0000 (15:32 +0000)]
ITS#10004: librewrite: plug potential ld leak in ldapmap
Quanah Gibson-Mount [Wed, 26 Apr 2023 17:32:49 +0000 (17:32 +0000)]
ITS#10003
Howard Chu [Thu, 2 Feb 2023 15:28:22 +0000 (15:28 +0000)]
ITS#10003: ldap_open_internal_connection: fix mutex usage
Note: this is a non-standard function with no use cases
Quanah Gibson-Mount [Wed, 26 Apr 2023 17:32:20 +0000 (17:32 +0000)]
ITS#10000
Howard Chu [Thu, 2 Feb 2023 15:19:46 +0000 (15:19 +0000)]
ITS#10000 slapd-watcher: plug potential leak
Quanah Gibson-Mount [Wed, 26 Apr 2023 17:31:39 +0000 (17:31 +0000)]
ITS#9999
Howard Chu [Thu, 2 Feb 2023 15:18:24 +0000 (15:18 +0000)]
ITS#9999 slapd-search: plug potential leak
Quanah Gibson-Mount [Wed, 26 Apr 2023 17:31:08 +0000 (17:31 +0000)]
ITS#9998
Howard Chu [Thu, 2 Feb 2023 15:17:28 +0000 (15:17 +0000)]
ITS#9998 slapd-mtread: plug potential leak
Quanah Gibson-Mount [Wed, 26 Apr 2023 16:44:30 +0000 (16:44 +0000)]
ITS#9997
Howard Chu [Thu, 2 Feb 2023 15:12:55 +0000 (15:12 +0000)]
ITS#9997 syncrepl: plug potential leak in changelog search
Note this is only used with changelog, which is nonstandard and obsolete.
Quanah Gibson-Mount [Wed, 26 Apr 2023 16:43:49 +0000 (16:43 +0000)]
ITS#9996
Howard Chu [Thu, 2 Feb 2023 15:08:34 +0000 (15:08 +0000)]
ITS#9996 librewrite plug potential leak in ldapmap map_ldap_apply()
Howard Chu [Thu, 2 Feb 2023 15:03:51 +0000 (15:03 +0000)]
ITS#9995 ldapdelete: plug potential search leak
Quanah Gibson-Mount [Mon, 24 Apr 2023 18:47:27 +0000 (18:47 +0000)]
ITS#9989
Дилян Палаузов [Wed, 25 Jan 2023 13:26:20 +0000 (15:26 +0200)]
ITS#9989 Keep .pc files on «make clean»
Quanah Gibson-Mount [Mon, 24 Apr 2023 18:45:53 +0000 (18:45 +0000)]
ITS#10011
Quanah Gibson-Mount [Mon, 24 Apr 2023 18:45:40 +0000 (18:45 +0000)]
ITS#10011 - Regenerate configure
Sam James [Thu, 9 Feb 2023 23:20:51 +0000 (23:20 +0000)]
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>
Sam James [Thu, 9 Feb 2023 23:20:32 +0000 (23:20 +0000)]
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>
Sam James [Thu, 9 Feb 2023 23:17:53 +0000 (23:17 +0000)]
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>
Quanah Gibson-Mount [Mon, 17 Apr 2023 18:43:44 +0000 (18:43 +0000)]
ITS#9990
Ondřej Kuzník [Wed, 1 Feb 2023 11:41:36 +0000 (11:41 +0000)]
ITS#9990 Preserve callbacks added already
Quanah Gibson-Mount [Mon, 13 Feb 2023 20:04:22 +0000 (20:04 +0000)]
Return to engineering
Quanah Gibson-Mount [Wed, 8 Feb 2023 18:49:18 +0000 (18:49 +0000)]
Prep for release (2.5.14)
Quanah Gibson-Mount [Wed, 8 Feb 2023 18:46:46 +0000 (18:46 +0000)]
Merge remote-tracking branch 'origin/mdb.RE/0.9' into OPENLDAP_REL_ENG_2_5
Quanah Gibson-Mount [Wed, 8 Feb 2023 18:41:37 +0000 (18:41 +0000)]
Update MDB_VERSION_DATE for the release
Quanah Gibson-Mount [Wed, 8 Feb 2023 18:40:04 +0000 (18:40 +0000)]
Update release date for 0.9.30
Quanah Gibson-Mount [Mon, 30 Jan 2023 23:00:30 +0000 (23:00 +0000)]
ITS#9718 - Fix nonportable sed usage
Quanah Gibson-Mount [Mon, 30 Jan 2023 19:06:27 +0000 (19:06 +0000)]
ITS#9985
Quanah Gibson-Mount [Thu, 19 Jan 2023 16:10:52 +0000 (16:10 +0000)]
ITS#9985 - Fix module name to pw-totp
Quanah Gibson-Mount [Mon, 30 Jan 2023 19:05:03 +0000 (19:05 +0000)]
ITS#9991
Howard Chu [Mon, 30 Jan 2023 13:23:13 +0000 (13:23 +0000)]
ITS#9991 send_ldap_ber: make sure we're only closing our own connection
Quanah Gibson-Mount [Mon, 30 Jan 2023 19:03:08 +0000 (19:03 +0000)]
ITS#8102
Ondřej Kuzník [Mon, 30 Jan 2023 12:06:24 +0000 (12:06 +0000)]
ITS#8102 Do not continue if deconfigured during pause
Ondřej Kuzník [Mon, 30 Jan 2023 10:26:23 +0000 (10:26 +0000)]
ITS#9930 Do not reschedule consumers that are shutting down
Quanah Gibson-Mount [Mon, 30 Jan 2023 18:59:59 +0000 (18:59 +0000)]
ITS#9045
Ondřej Kuzník [Mon, 23 Jan 2023 11:48:33 +0000 (11:48 +0000)]
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?
Quanah Gibson-Mount [Mon, 30 Jan 2023 18:58:16 +0000 (18:58 +0000)]
Revert "Revert "ITS#9045 Do not share cn=config entries with outside code""
This reverts commit
393308ac1c3eb9d65b682c06826d60a0bf856070 .
Ondřej Kuzník [Wed, 18 Jan 2023 12:28:05 +0000 (12:28 +0000)]
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.
Quanah Gibson-Mount [Thu, 19 Jan 2023 17:49:30 +0000 (17:49 +0000)]
ITS#9983
Ondřej Kuzník [Wed, 18 Jan 2023 13:05:47 +0000 (13:05 +0000)]
ITS#9983 Also fix c_refcnt sequencing
Ondřej Kuzník [Wed, 18 Jan 2023 13:03:23 +0000 (13:03 +0000)]
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.
Quanah Gibson-Mount [Thu, 19 Jan 2023 17:47:25 +0000 (17:47 +0000)]
ITS#9984
Ondřej Kuzník [Wed, 18 Jan 2023 12:57:02 +0000 (12:57 +0000)]
ITS#9984 Keep listener base around even if not active
Quanah Gibson-Mount [Wed, 11 Jan 2023 17:03:55 +0000 (17:03 +0000)]
Fix options for olcIndexHash64
Use cn=config format of TRUE/FALSE instead of slapd.conf format on/off
Quanah Gibson-Mount [Thu, 19 Jan 2023 17:45:13 +0000 (17:45 +0000)]
ITS#9976
Howard Chu [Mon, 9 Jan 2023 18:05:36 +0000 (18:05 +0000)]
ITS#9976 doc: ldap_sasl_bind: mention ber_bvfree
Дилян Палаузов [Sun, 18 Dec 2022 12:27:41 +0000 (14:27 +0200)]
typo unsuccesSful, presense/presence, accessSlog
Quanah Gibson-Mount [Thu, 19 Jan 2023 17:43:52 +0000 (17:43 +0000)]
ITS#9957
Howard Chu [Mon, 12 Dec 2022 11:50:43 +0000 (11:50 +0000)]
ITS#9957 slapo-dynlist: more explicit config doc
Quanah Gibson-Mount [Thu, 19 Jan 2023 17:42:26 +0000 (17:42 +0000)]
ITS#9966
Howard Chu [Sun, 25 Dec 2022 11:21:32 +0000 (11:21 +0000)]
ITS#9966 slapo-pcache: fix crash in consistency_check
Quanah Gibson-Mount [Thu, 19 Jan 2023 17:40:00 +0000 (17:40 +0000)]
ITS#9960
Howard Chu [Thu, 15 Dec 2022 10:05:54 +0000 (10:05 +0000)]
ITS#9960 slapo-dynlist: mark internal searches as internal
Quanah Gibson-Mount [Mon, 9 Jan 2023 18:39:12 +0000 (18:39 +0000)]
ITS#9880
Howard Chu [Tue, 22 Nov 2022 19:46:21 +0000 (19:46 +0000)]
ITS#9880 slapo-accesslog: fix reqStart ordering filter
Same as ITS#9358 but for ordering matching rule, not just equality
Howard Chu [Thu, 15 Dec 2022 09:36:58 +0000 (09:36 +0000)]
ITS#9961 LMDB: fix MSVC error
Quanah Gibson-Mount [Mon, 5 Dec 2022 16:33:26 +0000 (16:33 +0000)]
Merge remote-tracking branch 'origin/mdb.RE/0.9' into OPENLDAP_REL_ENG_2_5
Howard Chu [Wed, 30 Nov 2022 19:28:04 +0000 (19:28 +0000)]
ITS#9929 plug memleaks
Howard Chu [Wed, 30 Nov 2022 18:14:15 +0000 (18:14 +0000)]
ITS#9121 dynlist: cleanup unused code
Howard Chu [Mon, 14 Nov 2022 17:48:24 +0000 (17:48 +0000)]
ITS#9929 preserve e_name for memberOf values
Howard Chu [Thu, 3 Nov 2022 17:42:36 +0000 (17:42 +0000)]
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.
Howard Chu [Wed, 19 Oct 2022 15:21:42 +0000 (16:21 +0100)]
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
Quanah Gibson-Mount [Mon, 5 Dec 2022 16:30:44 +0000 (16:30 +0000)]
ITS#9955
Howard Chu [Thu, 24 Nov 2022 21:32:51 +0000 (21:32 +0000)]
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.
Quanah Gibson-Mount [Mon, 5 Dec 2022 16:26:14 +0000 (16:26 +0000)]
ITS#9947
Ondřej Kuzník [Mon, 7 Nov 2022 09:44:12 +0000 (09:44 +0000)]
ITS#9947 Fix race in epoch.c and simplify
Quanah Gibson-Mount [Mon, 5 Dec 2022 16:24:51 +0000 (16:24 +0000)]
ITS#9940
Howard Chu [Tue, 1 Nov 2022 17:13:23 +0000 (17:13 +0000)]
ITS#9940 back-mdb: fully init empty DN in tool_entry_get
Howard Chu [Mon, 28 Nov 2022 23:41:00 +0000 (23:41 +0000)]
ITS#9916
Howard Chu [Tue, 15 Nov 2022 15:33:48 +0000 (15:33 +0000)]
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.
Quanah Gibson-Mount [Mon, 28 Nov 2022 17:51:38 +0000 (17:51 +0000)]
ITS#9806
Howard Chu [Mon, 28 Nov 2022 14:29:53 +0000 (14:29 +0000)]
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.
Quanah Gibson-Mount [Wed, 2 Nov 2022 17:55:37 +0000 (17:55 +0000)]
Remove ITS9045
Quanah Gibson-Mount [Wed, 2 Nov 2022 17:55:29 +0000 (17:55 +0000)]
Revert "ITS#9045 Do not share cn=config entries with outside code"
This reverts commit
ce7a7997833326e3a9fb363b7fb10afe02b7d192 .
Quanah Gibson-Mount [Tue, 1 Nov 2022 17:09:43 +0000 (17:09 +0000)]
Cleanup
Quanah Gibson-Mount [Tue, 1 Nov 2022 17:07:28 +0000 (17:07 +0000)]
ITS#9045
Ondřej Kuzník [Wed, 26 Oct 2022 14:55:18 +0000 (15:55 +0100)]
ITS#9045 Do not share cn=config entries with outside code
config_back_entry_get currently returns the entry directly without
securing the rwlock, which is unsafe. However we can't keep holding it
on return in case the caller decides to hold onto the entry
indefinitely, hence rlock+entry_dup+runlock.
Quanah Gibson-Mount [Tue, 1 Nov 2022 17:05:09 +0000 (17:05 +0000)]
ITS#9942
Howard Chu [Thu, 27 Oct 2022 14:47:00 +0000 (15:47 +0100)]
ITS#9942 back-mdb: always release entries from Add ops
Quanah Gibson-Mount [Tue, 1 Nov 2022 17:03:16 +0000 (17:03 +0000)]
ITS#9941
Nadezhda Ivanova [Thu, 27 Oct 2022 09:58:43 +0000 (12:58 +0300)]
ITS#9941 Fix asyncmeta manpage to clarify that only round-robin scheduling is used for target connections.
Quanah Gibson-Mount [Tue, 1 Nov 2022 16:59:15 +0000 (16:59 +0000)]
ITS#9899
Howard Chu [Wed, 26 Oct 2022 15:33:30 +0000 (16:33 +0100)]
ITS#9899 fix use of non-standard u_char/u_int types
Quanah Gibson-Mount [Tue, 25 Oct 2022 19:13:13 +0000 (19:13 +0000)]
ITS#9935, ITS#9936, ITS#9937
Howard Chu [Thu, 20 Oct 2022 11:38:02 +0000 (12:38 +0100)]
ITS#9937 libldap: fix put_simple_filter() with invalid filter
Add check for trivial input string.
Howard Chu [Thu, 20 Oct 2022 11:27:01 +0000 (12:27 +0100)]
ITS#9936 slapcat/slapschema: fix free of subtree cmdline option
Must dup arg since subtree may also come from parsed URL.
Howard Chu [Thu, 20 Oct 2022 11:20:00 +0000 (12:20 +0100)]
ITS#9935 slapd UTF8StringValidate: fix read past end of string
Harmless, length check at end of routine would have returned an
error anyway.
Quanah Gibson-Mount [Tue, 25 Oct 2022 16:04:40 +0000 (16:04 +0000)]
ITS#9930
Howard Chu [Fri, 14 Oct 2022 14:19:22 +0000 (15:19 +0100)]
ITS#9930 fix cn=config / write_waiter deadlock
If a writer is blocked and a config pause is pending, just
close the blocked connection. Don't wait around for a slow
client to catch up.
Quanah Gibson-Mount [Mon, 17 Oct 2022 16:44:40 +0000 (16:44 +0000)]
Fix description of ITS#9860
Quanah Gibson-Mount [Thu, 13 Oct 2022 16:02:16 +0000 (16:02 +0000)]
ITS#9925
Connor Smith [Mon, 3 Oct 2022 10:11:10 +0000 (11:11 +0100)]
ITS#9925 Fix some ancient #ifdef checks
Use #elif defined(...) for HAVE_WINSOCK and MACOS. All other instances
of these macros use #ifdef or similar. A compiler may warn about them
not being defined.
In libraries/liblber/sockbuf.c, (DOS && PCNFS) and (DOS && NCSA) were
replaced with HAVE_PCNFS and HAVE_NCSA, respectively. It seems logical
to do the same at the only remaining occurrence of DOS, PCNFS, and NCSA.
Use #if HARDCODE_DATA consistently, replacing two instances of #ifdef.
HARDCODE_DATA is always defined, and this way you can set HARDCODE_DATA
to 0 and have it work, rather than it going down the wrong branch and
failing in these two cases.
Howard Chu [Tue, 11 Oct 2022 14:25:29 +0000 (15:25 +0100)]
ITS#9926 test085 additional fix
Git doesn't recreate empty directories, make it explicitly
Quanah Gibson-Mount [Thu, 13 Oct 2022 16:01:15 +0000 (16:01 +0000)]
ITS#9931
Howard Chu [Tue, 11 Oct 2022 16:03:34 +0000 (17:03 +0100)]
ITS#9931 test scripts: fix BSD vs GNU date syntax
Howard Chu [Tue, 11 Oct 2022 14:21:43 +0000 (15:21 +0100)]
ITS#9931 test082 fix sed portability
Howard Chu [Tue, 11 Oct 2022 14:14:54 +0000 (15:14 +0100)]
ITS#9931 test scripts: fix BSD vs GNU date syntax