https://bugs.openldap.org/show_bug.cgi?id=10573
Issue ID: 10573
Summary: OpenLDAP 2.7.0 fails to build with MSVC when
preprocessing symbol version maps
Product: OpenLDAP
Version: 2.7.0
Hardware: All
OS: Windows
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: build
Assignee: bugs(a)openldap.org
Reporter: openldap-msvc-673e3a64ee4f43(a)emalupe.com
Target Milestone: ---
OpenLDAP 2.7.0 fails to build with MSVC while generating the liblber symbol
version map. The regression appears to have been introduced by commit
8651f98a08c37bea6ee9be78acececd52bac66a0 (ITS#9739).
The new rules in libraries/liblber/Makefile.in and
libraries/libldap/Makefile.in invoke:
$(CPP) -x c -o $@ $(LT_CPPFLAGS) $(srcdir)/$(SYMBOL_VERSION_SCRIPT).in
The -x c option is specific to GCC/Clang. When Autoconf's configured C
preprocessor is MSVC (cl -E), cl ignores -x and treats the following c as an
input filename:
cl : Command line warning D9002 : ignoring unknown option '-x'
c1: fatal error C1083: Cannot open source file: 'c': No such file or
directory
make[2]: *** [Makefile:301: lber.map] Error 2
This was reproduced with OpenLDAP 2.7.0 and Visual Studio 2026/MSVC 14.51 on
Windows. OpenLDAP 2.6.13 builds successfully with the same compiler setup
because it does not preprocess these map files.
The same non-portable invocation is present in both the liblber and libldap
map-generation rules and remains in the current OPENLDAP_REL_ENG_2_7 and master
branches.
Could the hard-coded compiler language option be removed or replaced with a
configure-detected, compiler-portable way to preprocess the .map.in files?
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10614
Issue ID: 10614
Summary: On old PowerPC Mac with macOS High Sierra, Version
10.13.6 test suite fails in
test050-syncrepl-multiprovider
Product: OpenLDAP
Version: 2.6.14
Hardware: x86_64
OS: Mac OS
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: test suite
Assignee: bugs(a)openldap.org
Reporter: Peter_Dyballa(a)Web.DE
Target Milestone: ---
This is the actual report:
>>>>> 00:10:56 Failed test050-syncrepl-multiprovider for mdb after 115 seconds
How to debug?
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10613
Issue ID: 10613
Summary: On old PowerPC Mac with Mac OS X 10.5.8 (Leopard) test
suite fails in test017-syncreplication-refresh
Product: OpenLDAP
Version: 2.6.14
Hardware: All
OS: Mac OS
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: test suite
Assignee: bugs(a)openldap.org
Reporter: Peter_Dyballa(a)Web.DE
Target Milestone: ---
This is the actual report:
>>>>> 00:07:04 Failed test017-syncreplication-refresh for mdb after 47 seconds
How to debug?
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10656
Issue ID: 10656
Summary: No mmap address hint to map above 47-bit (128TiB)
window
Product: LMDB
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: liblmdb
Assignee: bugs(a)openldap.org
Reporter: coder-wangzhen(a)qq.com
Target Milestone: ---
Created attachment 1242
--> https://bugs.openldap.org/attachment.cgi?id=1242&action=edit
Patch: add mdb_env_set_maphint() (git format-patch)
Description:
Overview:
On x86-64 hosts with 5-level paging (LA57) enabled, the kernel still
defaults to a 47-bit (128 TiB) user virtual-address window: mmap() is not
placed above 2^47 unless the caller passes an explicit hint address >= 2^47.
LMDB always calls mmap(NULL, ...) in mdb_env_map(), so a process mapping
several large environments can exhaust the 128 TiB window and get ENOMEM,
even though the workload fits in the 56-bit address space. There is no
sysctl/prctl/rlimit that lifts this default; it is opt-in per mmap call.
See https://www.kernel.org/doc/html/v5.4/x86/x86_64/5level-paging.html
Proposed:
Add a per-environment, non-persistent, advisory mmap address hint:
int mdb_env_set_maphint(MDB_env *env, void *addr);
- Default (never called, or addr == NULL): unchanged, mmap(NULL, ...).
- Set to e.g. (void *)(1ULL << 47): passed as the mmap hint so the kernel
can place the map in the full 56-bit address space.
Distinct from MDB_FIXEDMAP, which persists the address into data.mdb and is
a multi-process fixed-address scheme. The hint is advisory: the kernel may
ignore it and the environment still opens normally.
Expected:
With mdb_env_set_maphint(env, (void *)(1ULL << 47)) set before
mdb_env_open(), a single process can map environments above 2^47 and its
total VSZ can exceed 128 TiB.
Windows:
Windows x64 uses 48-bit virtual addresses (128 TiB user space) and does not
support 5-level paging, so the motivating use case (mapping above 2^47) is
Linux-only. The patch nonetheless implements the Windows path
(NtMapViewOfSection, with fallback to OS-chosen placement when the requested
address is occupied) for API consistency. Given Windows cannot map above
128 TiB anyway, is the Windows portion still wanted, or should the change be
POSIX-only?
Additional Information:
Patch attached (git format-patch against mdb.master3). Discussed on
openldap-devel:
https://lists.openldap.org/hyperkitty/list/openldap-devel@openldap.org/thre…
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10645
Issue ID: 10645
Summary: ldapsearch -E vlv behaviour is near useless
Product: OpenLDAP
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: client tools
Assignee: bugs(a)openldap.org
Reporter: ondra(a)mistotebe.net
Target Milestone: ---
It pretends to walk the filter when asked to continue but there are issues:
- there is no way to stop it (EOF is the same as Enter and no other options
available)
- setting "after" count to 0 has it keep issuing the same search over and over
- no end of list detection, so it happily overshoots and then fails with
rangeError
- ignores the returned position that the server sent so can't resume after
re-positioning (e.g. with value based search)
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10473
Issue ID: 10473
Summary: syncprov leaks response controls
Product: OpenLDAP
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: overlays
Assignee: bugs(a)openldap.org
Reporter: ondra(a)mistotebe.net
Target Milestone: ---
syncprov_state_ctrl and syncprov_done_ctrl add controls to the response, but
noone cares to free them afterwards assuming they are allocated from the slab.
If there are many messages sent in a single run, this takes up fresh memory
that's leaked eventually.
See its8800 regression test for an example where this happens.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10654
Issue ID: 10654
Summary: slapo-auditlog writes password values (hashed or
cleartext) to the log
Product: OpenLDAP
Version: 2.7.2
Hardware: x86_64
OS: Linux
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: slapd
Assignee: bugs(a)openldap.org
Reporter: dns.spiros(a)gmail.com
Target Milestone: ---
Created attachment 1241
--> https://bugs.openldap.org/attachment.cgi?id=1241&action=edit
proposed patch for this ITS to apply with git-am.
slapo-auditlog records every value of every attribute in Add and Modify
operations, including the internal Modify issued by the Password Modify
extended operation. As a result userPassword hashes are written to the
audit log, and cleartext passwords too when a client sends them (absent
ppolicy hash_cleartext).
The database protects userPassword with ACLs (typically "by self write
by anonymous auth"), but the audit log is a plain file that is commonly
readable by a log group, rotated, backed up and shipped to SIEMs. Fast
schemes such as {SSHA} make the logged hashes cheap to crack offline.
This conflicts with widely used security requirements:
- CWE-532 "Insertion of Sensitive Information into Log File":
"Do not write secrets into the log files."
https://cwe.mitre.org/data/definitions/532.html
- NIST SP 800-63B-4, sec. 3.1.1.2: "Verifiers SHALL store passwords in
a form that is resistant to offline attacks." A copy of the hashes in
a log file defeats the protection given to the stored form.
https://pages.nist.gov/800-63-4/sp800-63b/authenticators/
- OWASP ASVS 5.0, req. 16.2.5 (L2): logging must not include data such
as credentials or payment details (4.0.3: req. 7.1.1).
https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-…
- DISA Application Security and Development STIG, V-222444
(APSC-DV-000650, CCI-000169): "The application must not write
sensitive data into the application logs"; logging passwords is a
finding.
https://www.stigviewer.com/stigs/application_security_and_development/2025-…
Other directory servers: 389-DS stopped logging cleartext passwords in
its audit log (Ticket 365, CVE-2010-3282) and since Issue 6884 (2025)
also masks password hashes (userPassword, nsslapd-rootpw, replication
credentials) in both LDIF and JSON audit logs, unconditionally.
The attached patch adds a multi-valued auditlogmask / olcAuditlogMask
option. Values of the listed attributes (and their subtypes) are
replaced by a "# <attr>: (masked)" comment line; the attribute name and
modification type are still logged, so password changes remain
auditable. A comment is used rather than a placeholder value so that
replaying the log can never set a password to a known string.
The default is empty, so behaviour is unchanged unless configured;
masking userPassword by default could be considered.
test090-auditlog and slapo-auditlog(5) are updated.
The patch is a single commit for git am. As I am not yet familiar with
the current contribution practices, its subject still carries an
ITS#XXXXX placeholder; please amend the commit message as you see fit
when applying it.
The attached patch file is derived from OpenLDAP Software. All of the
modifications to OpenLDAP Software represented in the following
patch(es) were developed by Elia Pinto <gitter.spiros(a)gmail.com>.
I have not assigned rights and/or interest in this work to any party.
I, Elia Pinto, hereby place the following modifications to OpenLDAP
Software (and only these modifications) into the public domain. Hence,
these modifications may be freely used and/or redistributed for any
purpose with or without attribution and/or other notice.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10655
Issue ID: 10655
Summary: Add a commit() that keeps the write mutex
Product: LMDB
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: enhancement
Priority: ---
Component: liblmdb
Assignee: bugs(a)openldap.org
Reporter: hyc(a)openldap.org
Target Milestone: ---
Add an mdb_txn_commit2() function that doesn't free the txn handle. This allows
callers to cleanup if the commit fails, while keeping the write lock.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10651
Issue ID: 10651
Summary: argon2 pwmod: hashed value includes trailing NUL byte
when built with libargon2
Product: OpenLDAP
Version: 2.6.16
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: slapd
Assignee: bugs(a)openldap.org
Reporter: hamano(a)osstech.co.jp
Target Milestone: ---
With libargon2 (`HAVE_LIBARGON2`), `slapd_argon2_hash()` sets
```c
hash->bv_len = scheme->bv_len + encoded_length;
```
but `argon2_encodedlen()` includes the terminating NUL, so the stored
`{ARGON2}` value ends with `\0` (and is shown base64-encoded in LDIF). The
libsodium path uses `strlen()` and is not affected.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10650
Issue ID: 10650
Summary: A lot of tests return 0 on error
Product: OpenLDAP
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: test suite
Assignee: bugs(a)openldap.org
Reporter: ondra(a)mistotebe.net
Target Milestone: ---
Many tests contain this idiom (or, rarer, its `case $RC in` equivalent):
RC=$?
if $RC != number; then
...
exit $RC
fi
--
You are receiving this mail because:
You are on the CC list for the issue.