openldap.git
2 years agogetaddrinfo-is-threadsafe
Steve Langasek [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
getaddrinfo-is-threadsafe

OpenLDAP upstream conservatively assumes that certain resolver functions
(getaddrinfo, getnameinfo, res_query, dn_expand) are not re-entrant; but we
know that the glibc implementations of these functions are thread-safe, so
we should bypass the use of this mutex.  This fixes a locking problem when
an application uses libldap and libnss-ldap is also used for hosts
resolution.

Closes Debian bug #340601.

Not suitable for forwarding upstream; might be made suitable by adding a
configure-time check for glibc and disabling the mutex only on known
thread-safe implementations.

Gbp-Pq: Name getaddrinfo-is-threadsafe

2 years agosasl-default-path
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
sasl-default-path

Add /etc/ldap/sasl2 to the SASL configuration search path.

Not submitted upstream.  Somewhat Debian-specific and probably not of
interest upstream.

Gbp-Pq: Name sasl-default-path

2 years agoindex-files-created-as-root
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
index-files-created-as-root

Document in the man page that slapindex should be run as the same user
as slapd, and print a warning if it's run as root (since Debian defaults
to running slapd as openldap).

Not suitable for upstream in this form.  This patch needs to be reworked
to check the BerkeleyDB database ownership and only warn if running as
root with a database that's not owned by root.

Upstream ITS #5356 filed requesting better handling of this.  Current
upstream discussion leans towards putting the check into the database
backend and aborting if slapd is run as a different user than the database
owner, which is an even better fix.

Gbp-Pq: Name index-files-created-as-root

2 years agowrong-database-location
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
wrong-database-location

Move the default slapd database location to /var/lib/ldap instead of
/var/openldap-data.

Debian-specific.

Gbp-Pq: Name wrong-database-location

2 years agoldapi-socket-place
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
ldapi-socket-place

Move the ldapi socket to /var/run/slapd from /var/run, since /var/run
is only writable by root and slapd runs as openldap.

Debian-specific.

Gbp-Pq: Name ldapi-socket-place

2 years agoslapi-errorlog-file
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
slapi-errorlog-file

The slapi error log file defaults to /var/errors given our setting
of --localstatedir.  Move it to /var/log/slapi-errors instead.

Debian-specific.

Gbp-Pq: Name slapi-errorlog-file

2 years agoman-slapd
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
man-slapd

Patch the slapd man page to not refer to a header file that isn't
installed with the slapd package and to reference the correct path
for slapd.

Debian-specific.

Gbp-Pq: Name man-slapd

2 years agoReplace upstream version with Debian version in version strings
Ryan Tandy [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
Replace upstream version with Debian version in version strings

Forwarded: not-needed

Gbp-Pq: Name debian-version

2 years agoopenldap (2.5.13+dfsg-5) unstable; urgency=medium
Ryan Tandy [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
openldap (2.5.13+dfsg-5) unstable; urgency=medium

  * Fix sha2-contrib autopkgtest failure. Call slappasswd using its full path.
    (Closes: #1030814)
  * Disable flaky test test069-delta-multiprovider-starttls.

[dgit import unpatched openldap 2.5.13+dfsg-5]

2 years agoImport openldap_2.5.13+dfsg-5.debian.tar.xz
Ryan Tandy [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
Import openldap_2.5.13+dfsg-5.debian.tar.xz

[dgit import tarball openldap 2.5.13+dfsg-5 openldap_2.5.13+dfsg-5.debian.tar.xz]

3 years agoImport openldap_2.5.13+dfsg.orig.tar.xz
Sergio Durigan Junior [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
Import openldap_2.5.13+dfsg.orig.tar.xz

[dgit import orig openldap_2.5.13+dfsg.orig.tar.xz]