openldap.git
19 months agoMerge openldap (2.5.17+dfsg-1) import into refs/heads/workingbranch
Ryan Tandy [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
Merge openldap (2.5.17+dfsg-1) import into refs/heads/workingbranch

19 months agohandle sizeof(time_t) > sizeof(long) in format strings
Steve Langasek [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
handle sizeof(time_t) > sizeof(long) in format strings

Last-Update: 2024-03-11
Forwarded: no

64-bit time_t means that on some architectures, time_t is now larger than
a long, and making some references in format strings incorrect.  To avoid
truncation or other size mismatch issues, always cast to a long long and
read using %lld.

Fixes an assertion failure detected during build-time tests on armhf:
slapd: ../../../../../servers/slapd/overlays/dds.c:422: dds_op_add: Assertion `bv.bv_len < sizeof( ttlbuf )' failed.

Gbp-Pq: Name 64-bit-time-t-compat.patch

19 months agoFix implicit declaration of kadm5_s_init_with_password_ctx
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
Fix implicit declaration of kadm5_s_init_with_password_ctx

Bug-Debian: https://bugs.debian.org/1065633

Gbp-Pq: Name smbk5pwd-implicit-declaration

19 months agoset-maintainer-name
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

19 months agoSwitch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all...
Jan-Marek Glogowski [Tue, 18 May 2010 15:47:05 +0000 (17:47 +0200)]
Switch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all modules with RTLD_GLOBAL, needed so that back_perl can load non-trivial Perl extensions that require symbols from back_perl.so itself.

Bug-Debian: http://bugs.debian.org/327585

Gbp-Pq: Name switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff

19 months agofix-build-top-mk
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
fix-build-top-mk

Gbp-Pq: Name fix-build-top-mk

19 months agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
add-tlscacert-option-to-ldap-conf

Gbp-Pq: Name add-tlscacert-option-to-ldap-conf

19 months agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
ldap-conf-tls-cacertdir

Gbp-Pq: Name ldap-conf-tls-cacertdir

19 months agocontrib-makefiles
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

19 months agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
do-not-second-guess-sonames

Rip out code that second-guesses the libsasl soname / Debian shlibs.  If
cyrus sasl upstream is breaking the ABI, this needs to be fixed upstream
there, not kludged around upstream here!

Debian bug #546885

Upstream ITS #6302 filed.

Gbp-Pq: Name do-not-second-guess-sonames

19 months agogetaddrinfo-is-threadsafe
Steve Langasek [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
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

19 months agosasl-default-path
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
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

19 months agoindex-files-created-as-root
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
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

19 months agowrong-database-location
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
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

19 months agoldapi-socket-place
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
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

19 months agoslapi-errorlog-file
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
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

19 months agoman-slapd
Debian OpenLDAP Maintainers [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
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

19 months agoReplace upstream version with Debian version in version strings
Ryan Tandy [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
Replace upstream version with Debian version in version strings

Forwarded: not-needed

Gbp-Pq: Name debian-version

19 months agoopenldap (2.5.17+dfsg-1) unstable; urgency=medium
Ryan Tandy [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
openldap (2.5.17+dfsg-1) unstable; urgency=medium

  * New upstream release.
    - fixed slapo-dynlist so it can't be global (ITS#10091) (Closes: #1040382)
  * debian/copyright: Exclude doc/guide/admin/guide.html from the upstream
    source, because the tool required to build it from source is not packaged
    in Debian. Fixes a Lintian error (source-is-missing).
  * Update Swedish debconf translation. (Closes: #1056955)
    Thanks to Martin Bagge and Anders Jonsson.
  * debian/salsa-ci.yml: Enable Salsa CI pipeline.

[dgit import unpatched openldap 2.5.17+dfsg-1]

19 months agoImport openldap_2.5.17+dfsg.orig.tar.xz
Ryan Tandy [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
Import openldap_2.5.17+dfsg.orig.tar.xz

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

19 months agoImport openldap_2.5.17+dfsg-1.debian.tar.xz
Ryan Tandy [Fri, 26 Apr 2024 23:09:29 +0000 (16:09 -0700)]
Import openldap_2.5.17+dfsg-1.debian.tar.xz

[dgit import tarball openldap 2.5.17+dfsg-1 openldap_2.5.17+dfsg-1.debian.tar.xz]

2 years agoMerge openldap (2.5.13+dfsg-5) import into refs/heads/workingbranch
Ryan Tandy [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
Merge openldap (2.5.13+dfsg-5) import into refs/heads/workingbranch

2 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

2 years agoSwitch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all...
Jan-Marek Glogowski [Tue, 18 May 2010 15:47:05 +0000 (17:47 +0200)]
Switch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all modules with RTLD_GLOBAL, needed so that back_perl can load non-trivial Perl extensions that require symbols from back_perl.so itself.

Bug-Debian: http://bugs.debian.org/327585

Gbp-Pq: Name switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff

2 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
fix-build-top-mk

Gbp-Pq: Name fix-build-top-mk

2 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
add-tlscacert-option-to-ldap-conf

Gbp-Pq: Name add-tlscacert-option-to-ldap-conf

2 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
ldap-conf-tls-cacertdir

Gbp-Pq: Name ldap-conf-tls-cacertdir

2 years agocontrib-makefiles
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

2 years agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Wed, 8 Feb 2023 01:56:12 +0000 (01:56 +0000)]
do-not-second-guess-sonames

Rip out code that second-guesses the libsasl soname / Debian shlibs.  If
cyrus sasl upstream is breaking the ABI, this needs to be fixed upstream
there, not kludged around upstream here!

Debian bug #546885

Upstream ITS #6302 filed.

Gbp-Pq: Name do-not-second-guess-sonames

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]

2 years agoMerge openldap (2.5.13+dfsg-3) import into refs/heads/workingbranch
Ryan Tandy [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +0000)]
Merge openldap (2.5.13+dfsg-3) import into refs/heads/workingbranch

2 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +0000)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

2 years agoSwitch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all...
Jan-Marek Glogowski [Tue, 18 May 2010 15:47:05 +0000 (17:47 +0200)]
Switch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all modules with RTLD_GLOBAL, needed so that back_perl can load non-trivial Perl extensions that require symbols from back_perl.so itself.

Bug-Debian: http://bugs.debian.org/327585

Gbp-Pq: Name switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff

2 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +0000)]
fix-build-top-mk

Gbp-Pq: Name fix-build-top-mk

2 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +0000)]
add-tlscacert-option-to-ldap-conf

Gbp-Pq: Name add-tlscacert-option-to-ldap-conf

2 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +0000)]
ldap-conf-tls-cacertdir

Gbp-Pq: Name ldap-conf-tls-cacertdir

2 years agocontrib-makefiles
Debian OpenLDAP Maintainers [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +0000)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

2 years agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +0000)]
do-not-second-guess-sonames

Rip out code that second-guesses the libsasl soname / Debian shlibs.  If
cyrus sasl upstream is breaking the ABI, this needs to be fixed upstream
there, not kludged around upstream here!

Debian bug #546885

Upstream ITS #6302 filed.

Gbp-Pq: Name do-not-second-guess-sonames

2 years agogetaddrinfo-is-threadsafe
Steve Langasek [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +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 [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +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 [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +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 [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +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 [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +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 [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +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 [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +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 [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +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-3) unstable; urgency=medium
Ryan Tandy [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +0000)]
openldap (2.5.13+dfsg-3) unstable; urgency=medium

  [ Ryan Tandy ]
  * Disable flaky test test063-delta-multiprovider. Mitigates #1010608.

  [ Gioele Barabucci ]
  * slapd.scripts-common: Avoid double-UTF8-encoding org name (Closes: #1016185)
  * d/slapd.scripts-common: Remove outdated `migrate_to_slapd_d_style`
  * d/slapd.postinst: Remove test for ancient version
  * slapd.scripts-common: Remove unused `normalize_ldif`
  * d/slapd.scripts-common: Use sed instead of perl in `release_diagnostics`

[dgit import unpatched openldap 2.5.13+dfsg-3]

2 years agoImport openldap_2.5.13+dfsg-3.debian.tar.xz
Ryan Tandy [Sat, 14 Jan 2023 00:29:59 +0000 (00:29 +0000)]
Import openldap_2.5.13+dfsg-3.debian.tar.xz

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

3 years agoMerge openldap (2.5.13+dfsg-2) import into refs/heads/workingbranch
Ryan Tandy [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
Merge openldap (2.5.13+dfsg-2) import into refs/heads/workingbranch

3 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

3 years agoSwitch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all...
Jan-Marek Glogowski [Tue, 18 May 2010 15:47:05 +0000 (17:47 +0200)]
Switch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all modules with RTLD_GLOBAL, needed so that back_perl can load non-trivial Perl extensions that require symbols from back_perl.so itself.

Bug-Debian: http://bugs.debian.org/327585

Gbp-Pq: Name switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff

3 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
fix-build-top-mk

Gbp-Pq: Name fix-build-top-mk

3 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
add-tlscacert-option-to-ldap-conf

Gbp-Pq: Name add-tlscacert-option-to-ldap-conf

3 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
ldap-conf-tls-cacertdir

Gbp-Pq: Name ldap-conf-tls-cacertdir

3 years agocontrib-makefiles
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

3 years agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
do-not-second-guess-sonames

Rip out code that second-guesses the libsasl soname / Debian shlibs.  If
cyrus sasl upstream is breaking the ABI, this needs to be fixed upstream
there, not kludged around upstream here!

Debian bug #546885

Upstream ITS #6302 filed.

Gbp-Pq: Name do-not-second-guess-sonames

3 years agogetaddrinfo-is-threadsafe
Steve Langasek [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
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

3 years agosasl-default-path
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
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

3 years agoindex-files-created-as-root
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
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

3 years agowrong-database-location
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
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

3 years agoldapi-socket-place
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
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

3 years agoslapi-errorlog-file
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
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

3 years agoman-slapd
Debian OpenLDAP Maintainers [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
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

3 years agoReplace upstream version with Debian version in version strings
Ryan Tandy [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
Replace upstream version with Debian version in version strings

Forwarded: not-needed

Gbp-Pq: Name debian-version

3 years agoopenldap (2.5.13+dfsg-2) unstable; urgency=medium
Ryan Tandy [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
openldap (2.5.13+dfsg-2) unstable; urgency=medium

  * d/tests/smbk5pwd: Grant slapd access to /var/lib/heimdal-kdc. Fixes the
    autopkgtest failure due to heimdal setting mode 700 on this directory.
    (Closes: #1020442)
  * d/source/lintian-overrides: Add wildcards to make overrides compatible
    with both older and newer versions of lintian.
  * d/slapd-contrib.lintian-overrides: Remove unused
    custom-library-search-path override now that krb5-config no longer sets
    -rpath.

[dgit import unpatched openldap 2.5.13+dfsg-2]

3 years agoImport openldap_2.5.13+dfsg-2.debian.tar.xz
Ryan Tandy [Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)]
Import openldap_2.5.13+dfsg-2.debian.tar.xz

[dgit import tarball openldap 2.5.13+dfsg-2 openldap_2.5.13+dfsg-2.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]

3 years agoMerge openldap (2.5.13+dfsg-1) import into refs/heads/workingbranch
Sergio Durigan Junior [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
Merge openldap (2.5.13+dfsg-1) import into refs/heads/workingbranch

3 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

3 years agoSwitch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all...
Jan-Marek Glogowski [Tue, 18 May 2010 15:47:05 +0000 (17:47 +0200)]
Switch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all modules with RTLD_GLOBAL, needed so that back_perl can load non-trivial Perl extensions that require symbols from back_perl.so itself.

Bug-Debian: http://bugs.debian.org/327585

Gbp-Pq: Name switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff

3 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
fix-build-top-mk

Gbp-Pq: Name fix-build-top-mk

3 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
add-tlscacert-option-to-ldap-conf

Gbp-Pq: Name add-tlscacert-option-to-ldap-conf

3 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
ldap-conf-tls-cacertdir

Gbp-Pq: Name ldap-conf-tls-cacertdir

3 years agocontrib-makefiles
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

3 years agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
do-not-second-guess-sonames

Rip out code that second-guesses the libsasl soname / Debian shlibs.  If
cyrus sasl upstream is breaking the ABI, this needs to be fixed upstream
there, not kludged around upstream here!

Debian bug #546885

Upstream ITS #6302 filed.

Gbp-Pq: Name do-not-second-guess-sonames

3 years agogetaddrinfo-is-threadsafe
Steve Langasek [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
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

3 years agosasl-default-path
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
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

3 years agoindex-files-created-as-root
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
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

3 years agowrong-database-location
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
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

3 years agoldapi-socket-place
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
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

3 years agoslapi-errorlog-file
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
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

3 years agoman-slapd
Debian OpenLDAP Maintainers [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
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

3 years agoReplace upstream version with Debian version in version strings
Ryan Tandy [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
Replace upstream version with Debian version in version strings

Forwarded: not-needed

Gbp-Pq: Name debian-version

3 years agoopenldap (2.5.13+dfsg-1) unstable; urgency=medium
Sergio Durigan Junior [Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)]
openldap (2.5.13+dfsg-1) unstable; urgency=medium

  * d/rules: Remove get-orig-source, now unnecessary.
  * Check PGP signature when running uscan.
  * d/watch: Modernize watch file; use repacksuffix.
  * d/copyright: Update according to DEP-5.
  * d/control: Add myself to Uploaders.
  * New upstream release.

[dgit import unpatched openldap 2.5.13+dfsg-1]

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

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

3 years agoMerge openldap (2.5.12+dfsg-2) import into refs/heads/workingbranch
Ryan Tandy [Mon, 23 May 2022 17:14:53 +0000 (18:14 +0100)]
Merge openldap (2.5.12+dfsg-2) import into refs/heads/workingbranch

3 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Mon, 23 May 2022 17:14:53 +0000 (18:14 +0100)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

3 years agoSwitch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all...
Jan-Marek Glogowski [Tue, 18 May 2010 15:47:05 +0000 (17:47 +0200)]
Switch to lt_dlopenadvise() so back_perl can be opened with RTLD_GLOBAL. Open all modules with RTLD_GLOBAL, needed so that back_perl can load non-trivial Perl extensions that require symbols from back_perl.so itself.

Bug-Debian: http://bugs.debian.org/327585

Gbp-Pq: Name switch-to-lt_dlopenadvise-to-get-RTLD_GLOBAL-set.diff

3 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Mon, 23 May 2022 17:14:53 +0000 (18:14 +0100)]
fix-build-top-mk

Gbp-Pq: Name fix-build-top-mk

3 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Mon, 23 May 2022 17:14:53 +0000 (18:14 +0100)]
add-tlscacert-option-to-ldap-conf

Gbp-Pq: Name add-tlscacert-option-to-ldap-conf

3 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Mon, 23 May 2022 17:14:53 +0000 (18:14 +0100)]
ldap-conf-tls-cacertdir

Gbp-Pq: Name ldap-conf-tls-cacertdir