openldap.git
4 years agoMerge version 2.4.47+dfsg-3+rpi1+deb10u4 and 2.4.47+dfsg-3+deb10u5 to produce 2.4... archive/raspbian/2.4.47+dfsg-3+rpi1+deb10u5 raspbian/2.4.47+dfsg-3+rpi1+deb10u5
Raspbian automatic forward porter [Thu, 4 Feb 2021 17:33:33 +0000 (17:33 +0000)]
Merge version 2.4.47+dfsg-3+rpi1+deb10u4 and 2.4.47+dfsg-3+deb10u5 to produce 2.4.47+dfsg-3+rpi1+deb10u5

4 years agoMerge openldap (2.4.47+dfsg-3+deb10u5) import into refs/heads/workingbranch
Ryan Tandy [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
Merge openldap (2.4.47+dfsg-3+deb10u5) import into refs/heads/workingbranch

4 years ago[PATCH] ITS#9428 fix cancel exop
Howard Chu [Sun, 20 Dec 2020 21:31:15 +0000 (21:31 +0000)]
[PATCH] ITS#9428 fix cancel exop

Gbp-Pq: Name ITS-9428-fix-cancel-exop.patch

4 years ago[PATCH] ITS#9427 fix issuerAndThisUpdateCheck
Howard Chu [Wed, 16 Dec 2020 18:52:42 +0000 (18:52 +0000)]
[PATCH] ITS#9427 fix issuerAndThisUpdateCheck

Gbp-Pq: Name ITS-9427-fix-issuerAndThisUpdateCheck.patch

4 years ago[PATCH] ITS#9425 add more checks to ldap_X509dn2bv
Howard Chu [Mon, 14 Dec 2020 20:05:44 +0000 (20:05 +0000)]
[PATCH] ITS#9425 add more checks to ldap_X509dn2bv

Gbp-Pq: Name ITS-9425-add-more-checks-to-ldap_X509dn2bv.patch

4 years ago[PATCH] ITS#9424 fix serialNumberAndIssuerSerialCheck
Howard Chu [Mon, 14 Dec 2020 19:03:27 +0000 (19:03 +0000)]
[PATCH] ITS#9424 fix serialNumberAndIssuerSerialCheck

Gbp-Pq: Name ITS-9424-fix-serialNumberAndIssuerSerialCheck.patch

4 years ago[PATCH] ITS#9423 ldap_X509dn2bv: check for invalid BER after RDN count
Howard Chu [Sun, 13 Dec 2020 21:48:45 +0000 (21:48 +0000)]
[PATCH] ITS#9423 ldap_X509dn2bv: check for invalid BER after RDN count

Gbp-Pq: Name ITS-9423-ldap_X509dn2bv-check-for-invalid-BER-after-.patch

4 years ago[PATCH] ITS#9413 fix slap_parse_user
Howard Chu [Tue, 1 Dec 2020 19:03:24 +0000 (19:03 +0000)]
[PATCH] ITS#9413 fix slap_parse_user

Gbp-Pq: Name ITS-9413-fix-slap_parse_user.patch

4 years ago[PATCH] ITS#9412 fix AVA_Sort on invalid RDN
Howard Chu [Tue, 1 Dec 2020 18:32:35 +0000 (18:32 +0000)]
[PATCH] ITS#9412 fix AVA_Sort on invalid RDN

Gbp-Pq: Name ITS-9412-fix-AVA_Sort-on-invalid-RDN.patch

4 years ago[PATCH] ITS#9411 fix thisUpdate check
Howard Chu [Tue, 1 Dec 2020 18:02:51 +0000 (18:02 +0000)]
[PATCH] ITS#9411 fix thisUpdate check

Gbp-Pq: Name ITS-9411-fix-thisUpdate-check.patch

4 years ago[PATCH] ITS#9409 saslauthz: use slap_sl_free in prev commit
Howard Chu [Mon, 30 Nov 2020 16:20:18 +0000 (16:20 +0000)]
[PATCH] ITS#9409 saslauthz: use slap_sl_free in prev commit

Gbp-Pq: Name ITS-9409-saslauthz-use-slap_sl_free-in-prev-commit.patch

4 years ago[PATCH 2/2] ITS#9409 saslauthz: use ch_free on normalized DN
Howard Chu [Mon, 30 Nov 2020 11:45:46 +0000 (11:45 +0000)]
[PATCH 2/2] ITS#9409 saslauthz: use ch_free on normalized DN

Gbp-Pq: Name ITS-9409-saslauthz-use-ch_free-on-normalized-DN.patch

4 years ago[PATCH] ITS#9408 fix vrfilter double-free
Howard Chu [Sat, 28 Nov 2020 15:54:17 +0000 (15:54 +0000)]
[PATCH] ITS#9408 fix vrfilter double-free

Gbp-Pq: Name ITS-9408-fix-vrfilter-double-free.patch

4 years ago[PATCH 2/2] ITS#9406 fix debug msg
Howard Chu [Fri, 27 Nov 2020 14:48:26 +0000 (14:48 +0000)]
[PATCH 2/2] ITS#9406 fix debug msg

Gbp-Pq: Name ITS-9406-fix-debug-msg.patch

4 years ago[PATCH 1/2] ITS#9406, #9407 remove saslauthz asserts
Howard Chu [Fri, 27 Nov 2020 14:37:10 +0000 (14:37 +0000)]
[PATCH 1/2] ITS#9406, #9407 remove saslauthz asserts

Gbp-Pq: Name ITS-9406-9407-remove-saslauthz-asserts.patch

4 years ago[PATCH] ITS#9404 fix serialNumberAndIssuerCheck
Howard Chu [Mon, 23 Nov 2020 17:14:00 +0000 (17:14 +0000)]
[PATCH] ITS#9404 fix serialNumberAndIssuerCheck

Tighten validity checks

Gbp-Pq: Name ITS-9404-fix-serialNumberAndIssuerCheck.patch

4 years ago[PATCH] ITS#9384 remove assert in obsolete csnNormalize23()
Howard Chu [Mon, 2 Nov 2020 16:01:14 +0000 (16:01 +0000)]
[PATCH] ITS#9384 remove assert in obsolete csnNormalize23()

Gbp-Pq: Name ITS-9384-remove-assert-in-obsolete-csnNormalize23.patch

4 years ago[PATCH] ITS#9383 remove assert in certificateListValidate
Howard Chu [Mon, 2 Nov 2020 13:12:10 +0000 (13:12 +0000)]
[PATCH] ITS#9383 remove assert in certificateListValidate

Gbp-Pq: Name ITS-9383-remove-assert-in-certificateListValidate.patch

4 years ago[PATCH] ITS#9370 check for equality rule on old_rdn
Howard Chu [Mon, 19 Oct 2020 13:03:41 +0000 (14:03 +0100)]
[PATCH] ITS#9370 check for equality rule on old_rdn

Just skip normalization if there's no equality rule. We accept
DNs without equality rules already.

Gbp-Pq: Name ITS-9370-check-for-equality-rule-on-old_rdn.patch

4 years ago[PATCH] ITS#9202 limit depth of nested filters
Howard Chu [Thu, 16 Apr 2020 00:08:19 +0000 (01:08 +0100)]
[PATCH] ITS#9202 limit depth of nested filters

Using a hardcoded limit for now; no reasonable apps
should ever run into it.

Gbp-Pq: Name ITS-9202-limit-depth-of-nested-filters.patch

4 years ago[PATCH] ITS#8964 Do not free original filter
Ondřej Kuzník [Mon, 17 Jun 2019 10:49:25 +0000 (12:49 +0200)]
[PATCH] ITS#8964 Do not free original filter

Gbp-Pq: Name ITS-8964-Do-not-free-original-filter.patch

4 years ago[PATCH] ITS#9052 zero out sasl_ssf in connection_init
Howard Chu [Wed, 10 Jul 2019 20:29:39 +0000 (21:29 +0100)]
[PATCH] ITS#9052 zero out sasl_ssf in connection_init

Gbp-Pq: Name ITS-9052-zero-out-sasl_ssf-in-connection_init.patch

4 years ago[PATCH] ITS#9038 Another test028 typo
Ondřej Kuzník [Wed, 26 Jun 2019 22:45:29 +0000 (00:45 +0200)]
[PATCH] ITS#9038 Another test028 typo

Gbp-Pq: Name ITS-9038-Another-test028-typo.patch

4 years ago[PATCH] ITS#9038 Fix typo in test script
Ondřej Kuzník [Mon, 24 Jun 2019 14:37:23 +0000 (16:37 +0200)]
[PATCH] ITS#9038 Fix typo in test script

Gbp-Pq: Name ITS-9038-Fix-typo-in-test-script.patch

4 years ago[PATCH] ITS#9038 Update test028 to test this is enforced
Ondřej Kuzník [Wed, 19 Jun 2019 16:47:32 +0000 (18:47 +0200)]
[PATCH] ITS#9038 Update test028 to test this is enforced

Gbp-Pq: Name ITS-9038-Update-test028-to-test-this-is-enforced.patch

4 years ago[PATCH] ITS#9038 restrict rootDN proxyauthz to its own DBs.
Howard Chu [Wed, 19 Jun 2019 11:29:02 +0000 (12:29 +0100)]
[PATCH] ITS#9038 restrict rootDN proxyauthz to its own DBs.

Treat as normal user for any other DB.

Gbp-Pq: Name ITS-9038-restrict-rootDN-proxyauthz-to-its-own-DBs.patch

4 years agoDo not call gnutls_global_set_mutex()
Ryan Tandy [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
Do not call gnutls_global_set_mutex()

Bug-Debian: https://bugs.debian.org/803197
Forwarded: no

Since GnuTLS moved to implicit initialization on library load, calling
this function deinitializes GnuTLS and then re-initializes it.

When GnuTLS uses /dev/urandom as an entropy source (getrandom() not
available, or older versions of GnuTLS), and the application closed all
file descriptors at startup, this could result in GnuTLS opening
/dev/urandom over one of the application's file descriptors when
re-initialized.

Additionally, the custom mutex functions are never reset, so if libldap
is unloaded (for example via dlclose()) after calling this, its code
may be unmapped and the application could crash when GnuTLS calls the
mutex functions.

The default behaviour of GnuTLS, using pthreads, should be suitable on
all Debian systems, and is probably the same as what libldap uses
anyway.

Gbp-Pq: Name no-gnutls_global_set_mutex

4 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

4 years agoITS6035-olcauthzregex-needs-restart
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
ITS6035-olcauthzregex-needs-restart

Gbp-Pq: Name ITS6035-olcauthzregex-needs-restart.patch

4 years agodon't second-guess BDB ABI
Steve Langasek [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
don't second-guess BDB ABI

Bug-Debian: http://bugs.debian.org/651333
Forwarded: not-needed

OpenLDAP upstream conservatively assumes that any change to the version
number of libdb can result in an API-breaking change that could impact
the database.  In Debian, we know that such changes require bumping the
library soname and changing the package name, and demand such rigor from
our package maintainers even when upstreams don't deliver; so any such
check in the source code works against the packaging system by forcing
database upgrades when we know none are required.  Disable this check
so we rely on the packaging system to do its job.

Gbp-Pq: Name no-bdb-ABI-second-guessing

4 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

4 years agodon't use AM_INIT_AUTOMAKE macro when we aren't using automake
Steve Langasek [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
don't use AM_INIT_AUTOMAKE macro when we aren't using automake

Calling AM_INIT_AUTOMAKE() in configure.in serves no purpose if we're not
using automake, and it confuses autoreconf.  Use AC_INIT() instead.

Gbp-Pq: Name no-AM_INIT_AUTOMAKE

4 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
fix-build-top-mk

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

4 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
add-tlscacert-option-to-ldap-conf

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

4 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
ldap-conf-tls-cacertdir

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

4 years agolastbind-makefile-manpage
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
lastbind-makefile-manpage

Gbp-Pq: Name lastbind-makefile-manpage

4 years ago[PATCH] contrib/smbk5pwd: add man page, install it too
Peter Marschall [Sun, 26 Jul 2015 13:04:26 +0000 (15:04 +0200)]
[PATCH] contrib/smbk5pwd: add man page, install it too

Add a manual page slapo-smbk5pwd.5 and update smbk5pwd's Makefile to
install the new manual page.

This patch is derived from the corresponding patch upstreamed in ITS#8205

Gbp-Pq: Name smbk5pwd-makefile-manpage

4 years agocontrib-makefiles
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

4 years agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +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

4 years agogetaddrinfo-is-threadsafe
Steve Langasek [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +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

4 years agolibldap-symbol-versions
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
libldap-symbol-versions

Add symbol versioning to the public LDAP libraries.  This is required for
library transitions, such as the current transition from 2.1 to 2.4,
since programs will sometimes have both libraries loaded by different
dependency chains during the transition.

Not yet contributed upstream.

Upstream ITS #5365 filed requesting symbol versioning for libldap and
libber.

Gbp-Pq: Name libldap-symbol-versions

4 years agosasl-default-path
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +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

4 years agoindex-files-created-as-root
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +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

4 years agowrong-database-location
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +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

4 years agoldapi-socket-place
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +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

4 years agoslapi-errorlog-file
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +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

4 years agoevolution-ntlm
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
evolution-ntlm

Patch from evolution-exchange (2.10.3).  The ldap_ntlm_bind function is
actually called by evolution-data-server, checked at version 1.12.2.
Without this patch, the Exchange addressbook integration uses simple binds
with cleartext passwords.

Russ checked with openldap-software for upstream's opinion on this patch
on 2007-12-21.  Upstream had never received it as a patch submission and
given that it's apparently only for older Exchange servers that can't do
SASL and DIGEST-MD5, it's not very appealing.

Bug#457374 filed against evolution-data-server asking if this support is
still required on 2007-12-21.

Gbp-Pq: Name evolution-ntlm

4 years agoman-slapd
Debian OpenLDAP Maintainers [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +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

4 years agoopenldap (2.4.47+dfsg-3+deb10u5) buster-security; urgency=high
Ryan Tandy [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
openldap (2.4.47+dfsg-3+deb10u5) buster-security; urgency=high

  * Fix slapd crashes in Certificate Exact Assertion processing
    (ITS#9404, ITS#9424) (CVE-2020-36221)
  * Fix slapd assertion failures in saslAuthzTo validation
    (ITS#9406, ITS#9407) (CVE-2020-36222)
  * Fix slapd crash in Values Return Filter control handling
    (ITS#9408) (CVE-2020-36223)
  * Fix slapd crashes in saslAuthzTo processing (ITS#9409, ITS#9412, ITS#9413)
    (CVE-2020-36224, CVE-2020-36225, CVE-2020-36226)
  * Fix slapd assertion failure in X.509 DN parsing
    (ITS#9423) (CVE-2020-36230)
  * Fix slapd crash in X.509 DN parsing (ITS#9425) (CVE-2020-36229)
  * Fix slapd crash in Certificate List Exact Assertion processing
    (ITS#9427) (CVE-2020-36228)
  * Fix slapd infinite loop with Cancel operation (ITS#9428) (CVE-2020-36227)

[dgit import unpatched openldap 2.4.47+dfsg-3+deb10u5]

4 years agoImport openldap_2.4.47+dfsg-3+deb10u5.debian.tar.xz
Ryan Tandy [Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)]
Import openldap_2.4.47+dfsg-3+deb10u5.debian.tar.xz

[dgit import tarball openldap 2.4.47+dfsg-3+deb10u5 openldap_2.4.47+dfsg-3+deb10u5.debian.tar.xz]

5 years agoMerge version 2.4.47+dfsg-3+rpi1+deb10u2 and 2.4.47+dfsg-3+deb10u4 to produce 2.4... archive/raspbian/2.4.47+dfsg-3+rpi1+deb10u4 raspbian/2.4.47+dfsg-3+rpi1+deb10u4
Raspbian automatic forward porter [Thu, 19 Nov 2020 01:41:41 +0000 (01:41 +0000)]
Merge version 2.4.47+dfsg-3+rpi1+deb10u2 and 2.4.47+dfsg-3+deb10u4 to produce 2.4.47+dfsg-3+rpi1+deb10u4

5 years agoMerge openldap (2.4.47+dfsg-3+deb10u4) import into refs/heads/workingbranch
Ryan Tandy [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
Merge openldap (2.4.47+dfsg-3+deb10u4) import into refs/heads/workingbranch

5 years ago[PATCH] ITS#9384 remove assert in obsolete csnNormalize23()
Howard Chu [Mon, 2 Nov 2020 16:01:14 +0000 (16:01 +0000)]
[PATCH] ITS#9384 remove assert in obsolete csnNormalize23()

Gbp-Pq: Name ITS-9384-remove-assert-in-obsolete-csnNormalize23.patch

5 years ago[PATCH] ITS#9383 remove assert in certificateListValidate
Howard Chu [Mon, 2 Nov 2020 13:12:10 +0000 (13:12 +0000)]
[PATCH] ITS#9383 remove assert in certificateListValidate

Gbp-Pq: Name ITS-9383-remove-assert-in-certificateListValidate.patch

5 years ago[PATCH] ITS#9370 check for equality rule on old_rdn
Howard Chu [Mon, 19 Oct 2020 13:03:41 +0000 (14:03 +0100)]
[PATCH] ITS#9370 check for equality rule on old_rdn

Just skip normalization if there's no equality rule. We accept
DNs without equality rules already.

Gbp-Pq: Name ITS-9370-check-for-equality-rule-on-old_rdn.patch

5 years ago[PATCH] ITS#9202 limit depth of nested filters
Howard Chu [Thu, 16 Apr 2020 00:08:19 +0000 (01:08 +0100)]
[PATCH] ITS#9202 limit depth of nested filters

Using a hardcoded limit for now; no reasonable apps
should ever run into it.

Gbp-Pq: Name ITS-9202-limit-depth-of-nested-filters.patch

5 years ago[PATCH] ITS#8964 Do not free original filter
Ondřej Kuzník [Mon, 17 Jun 2019 10:49:25 +0000 (12:49 +0200)]
[PATCH] ITS#8964 Do not free original filter

Gbp-Pq: Name ITS-8964-Do-not-free-original-filter.patch

5 years ago[PATCH] ITS#9052 zero out sasl_ssf in connection_init
Howard Chu [Wed, 10 Jul 2019 20:29:39 +0000 (21:29 +0100)]
[PATCH] ITS#9052 zero out sasl_ssf in connection_init

Gbp-Pq: Name ITS-9052-zero-out-sasl_ssf-in-connection_init.patch

5 years ago[PATCH] ITS#9038 Another test028 typo
Ondřej Kuzník [Wed, 26 Jun 2019 22:45:29 +0000 (00:45 +0200)]
[PATCH] ITS#9038 Another test028 typo

Gbp-Pq: Name ITS-9038-Another-test028-typo.patch

5 years ago[PATCH] ITS#9038 Fix typo in test script
Ondřej Kuzník [Mon, 24 Jun 2019 14:37:23 +0000 (16:37 +0200)]
[PATCH] ITS#9038 Fix typo in test script

Gbp-Pq: Name ITS-9038-Fix-typo-in-test-script.patch

5 years ago[PATCH] ITS#9038 Update test028 to test this is enforced
Ondřej Kuzník [Wed, 19 Jun 2019 16:47:32 +0000 (18:47 +0200)]
[PATCH] ITS#9038 Update test028 to test this is enforced

Gbp-Pq: Name ITS-9038-Update-test028-to-test-this-is-enforced.patch

5 years ago[PATCH] ITS#9038 restrict rootDN proxyauthz to its own DBs.
Howard Chu [Wed, 19 Jun 2019 11:29:02 +0000 (12:29 +0100)]
[PATCH] ITS#9038 restrict rootDN proxyauthz to its own DBs.

Treat as normal user for any other DB.

Gbp-Pq: Name ITS-9038-restrict-rootDN-proxyauthz-to-its-own-DBs.patch

5 years agoDo not call gnutls_global_set_mutex()
Ryan Tandy [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
Do not call gnutls_global_set_mutex()

Bug-Debian: https://bugs.debian.org/803197
Forwarded: no

Since GnuTLS moved to implicit initialization on library load, calling
this function deinitializes GnuTLS and then re-initializes it.

When GnuTLS uses /dev/urandom as an entropy source (getrandom() not
available, or older versions of GnuTLS), and the application closed all
file descriptors at startup, this could result in GnuTLS opening
/dev/urandom over one of the application's file descriptors when
re-initialized.

Additionally, the custom mutex functions are never reset, so if libldap
is unloaded (for example via dlclose()) after calling this, its code
may be unmapped and the application could crash when GnuTLS calls the
mutex functions.

The default behaviour of GnuTLS, using pthreads, should be suitable on
all Debian systems, and is probably the same as what libldap uses
anyway.

Gbp-Pq: Name no-gnutls_global_set_mutex

5 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

5 years agoITS6035-olcauthzregex-needs-restart
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
ITS6035-olcauthzregex-needs-restart

Gbp-Pq: Name ITS6035-olcauthzregex-needs-restart.patch

5 years agodon't second-guess BDB ABI
Steve Langasek [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
don't second-guess BDB ABI

Bug-Debian: http://bugs.debian.org/651333
Forwarded: not-needed

OpenLDAP upstream conservatively assumes that any change to the version
number of libdb can result in an API-breaking change that could impact
the database.  In Debian, we know that such changes require bumping the
library soname and changing the package name, and demand such rigor from
our package maintainers even when upstreams don't deliver; so any such
check in the source code works against the packaging system by forcing
database upgrades when we know none are required.  Disable this check
so we rely on the packaging system to do its job.

Gbp-Pq: Name no-bdb-ABI-second-guessing

5 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

5 years agodon't use AM_INIT_AUTOMAKE macro when we aren't using automake
Steve Langasek [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
don't use AM_INIT_AUTOMAKE macro when we aren't using automake

Calling AM_INIT_AUTOMAKE() in configure.in serves no purpose if we're not
using automake, and it confuses autoreconf.  Use AC_INIT() instead.

Gbp-Pq: Name no-AM_INIT_AUTOMAKE

5 years agofix-build-top-mk
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
fix-build-top-mk

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

5 years agoadd-tlscacert-option-to-ldap-conf
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
add-tlscacert-option-to-ldap-conf

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

5 years agoldap-conf-tls-cacertdir
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
ldap-conf-tls-cacertdir

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

5 years agolastbind-makefile-manpage
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
lastbind-makefile-manpage

Gbp-Pq: Name lastbind-makefile-manpage

5 years ago[PATCH] contrib/smbk5pwd: add man page, install it too
Peter Marschall [Sun, 26 Jul 2015 13:04:26 +0000 (15:04 +0200)]
[PATCH] contrib/smbk5pwd: add man page, install it too

Add a manual page slapo-smbk5pwd.5 and update smbk5pwd's Makefile to
install the new manual page.

This patch is derived from the corresponding patch upstreamed in ITS#8205

Gbp-Pq: Name smbk5pwd-makefile-manpage

5 years agocontrib-makefiles
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
contrib-makefiles

Gbp-Pq: Name contrib-makefiles

5 years agodo-not-second-guess-sonames
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +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

5 years agogetaddrinfo-is-threadsafe
Steve Langasek [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +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

5 years agolibldap-symbol-versions
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
libldap-symbol-versions

Add symbol versioning to the public LDAP libraries.  This is required for
library transitions, such as the current transition from 2.1 to 2.4,
since programs will sometimes have both libraries loaded by different
dependency chains during the transition.

Not yet contributed upstream.

Upstream ITS #5365 filed requesting symbol versioning for libldap and
libber.

Gbp-Pq: Name libldap-symbol-versions

5 years agosasl-default-path
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +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

5 years agoindex-files-created-as-root
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +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

5 years agowrong-database-location
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +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

5 years agoldapi-socket-place
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +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

5 years agoslapi-errorlog-file
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +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

5 years agoevolution-ntlm
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
evolution-ntlm

Patch from evolution-exchange (2.10.3).  The ldap_ntlm_bind function is
actually called by evolution-data-server, checked at version 1.12.2.
Without this patch, the Exchange addressbook integration uses simple binds
with cleartext passwords.

Russ checked with openldap-software for upstream's opinion on this patch
on 2007-12-21.  Upstream had never received it as a patch submission and
given that it's apparently only for older Exchange servers that can't do
SASL and DIGEST-MD5, it's not very appealing.

Bug#457374 filed against evolution-data-server asking if this support is
still required on 2007-12-21.

Gbp-Pq: Name evolution-ntlm

5 years agoman-slapd
Debian OpenLDAP Maintainers [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +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

5 years agoopenldap (2.4.47+dfsg-3+deb10u4) buster-security; urgency=high
Ryan Tandy [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
openldap (2.4.47+dfsg-3+deb10u4) buster-security; urgency=high

  * Fix slapd abort due to assertion failure in Certificate List syntax
    validation (ITS#9383) (CVE-2020-25709)
  * Fix slapd abort due to assertion failure in CSN normalization with invalid
    input (ITS#9384) (CVE-2020-25710)

[dgit import unpatched openldap 2.4.47+dfsg-3+deb10u4]

5 years agoImport openldap_2.4.47+dfsg-3+deb10u4.debian.tar.xz
Ryan Tandy [Tue, 17 Nov 2020 01:23:45 +0000 (01:23 +0000)]
Import openldap_2.4.47+dfsg-3+deb10u4.debian.tar.xz

[dgit import tarball openldap 2.4.47+dfsg-3+deb10u4 openldap_2.4.47+dfsg-3+deb10u4.debian.tar.xz]

5 years agoMerge openldap (2.4.47+dfsg-3+deb10u3) import into refs/heads/workingbranch
Ryan Tandy [Fri, 30 Oct 2020 01:36:26 +0000 (01:36 +0000)]
Merge openldap (2.4.47+dfsg-3+deb10u3) import into refs/heads/workingbranch

5 years ago[PATCH] ITS#9370 check for equality rule on old_rdn
Howard Chu [Mon, 19 Oct 2020 13:03:41 +0000 (14:03 +0100)]
[PATCH] ITS#9370 check for equality rule on old_rdn

Just skip normalization if there's no equality rule. We accept
DNs without equality rules already.

Gbp-Pq: Name ITS-9370-check-for-equality-rule-on-old_rdn.patch

5 years ago[PATCH] ITS#9202 limit depth of nested filters
Howard Chu [Thu, 16 Apr 2020 00:08:19 +0000 (01:08 +0100)]
[PATCH] ITS#9202 limit depth of nested filters

Using a hardcoded limit for now; no reasonable apps
should ever run into it.

Gbp-Pq: Name ITS-9202-limit-depth-of-nested-filters.patch

5 years ago[PATCH] ITS#8964 Do not free original filter
Ondřej Kuzník [Mon, 17 Jun 2019 10:49:25 +0000 (12:49 +0200)]
[PATCH] ITS#8964 Do not free original filter

Gbp-Pq: Name ITS-8964-Do-not-free-original-filter.patch

5 years ago[PATCH] ITS#9052 zero out sasl_ssf in connection_init
Howard Chu [Wed, 10 Jul 2019 20:29:39 +0000 (21:29 +0100)]
[PATCH] ITS#9052 zero out sasl_ssf in connection_init

Gbp-Pq: Name ITS-9052-zero-out-sasl_ssf-in-connection_init.patch

5 years ago[PATCH] ITS#9038 Another test028 typo
Ondřej Kuzník [Wed, 26 Jun 2019 22:45:29 +0000 (00:45 +0200)]
[PATCH] ITS#9038 Another test028 typo

Gbp-Pq: Name ITS-9038-Another-test028-typo.patch

5 years ago[PATCH] ITS#9038 Fix typo in test script
Ondřej Kuzník [Mon, 24 Jun 2019 14:37:23 +0000 (16:37 +0200)]
[PATCH] ITS#9038 Fix typo in test script

Gbp-Pq: Name ITS-9038-Fix-typo-in-test-script.patch

5 years ago[PATCH] ITS#9038 Update test028 to test this is enforced
Ondřej Kuzník [Wed, 19 Jun 2019 16:47:32 +0000 (18:47 +0200)]
[PATCH] ITS#9038 Update test028 to test this is enforced

Gbp-Pq: Name ITS-9038-Update-test028-to-test-this-is-enforced.patch

5 years ago[PATCH] ITS#9038 restrict rootDN proxyauthz to its own DBs.
Howard Chu [Wed, 19 Jun 2019 11:29:02 +0000 (12:29 +0100)]
[PATCH] ITS#9038 restrict rootDN proxyauthz to its own DBs.

Treat as normal user for any other DB.

Gbp-Pq: Name ITS-9038-restrict-rootDN-proxyauthz-to-its-own-DBs.patch

5 years agoDo not call gnutls_global_set_mutex()
Ryan Tandy [Fri, 30 Oct 2020 01:36:26 +0000 (01:36 +0000)]
Do not call gnutls_global_set_mutex()

Bug-Debian: https://bugs.debian.org/803197
Forwarded: no

Since GnuTLS moved to implicit initialization on library load, calling
this function deinitializes GnuTLS and then re-initializes it.

When GnuTLS uses /dev/urandom as an entropy source (getrandom() not
available, or older versions of GnuTLS), and the application closed all
file descriptors at startup, this could result in GnuTLS opening
/dev/urandom over one of the application's file descriptors when
re-initialized.

Additionally, the custom mutex functions are never reset, so if libldap
is unloaded (for example via dlclose()) after calling this, its code
may be unmapped and the application could crash when GnuTLS calls the
mutex functions.

The default behaviour of GnuTLS, using pthreads, should be suitable on
all Debian systems, and is probably the same as what libldap uses
anyway.

Gbp-Pq: Name no-gnutls_global_set_mutex

5 years agoset-maintainer-name
Debian OpenLDAP Maintainers [Fri, 30 Oct 2020 01:36:26 +0000 (01:36 +0000)]
set-maintainer-name

Gbp-Pq: Name set-maintainer-name

5 years agoITS6035-olcauthzregex-needs-restart
Debian OpenLDAP Maintainers [Fri, 30 Oct 2020 01:36:26 +0000 (01:36 +0000)]
ITS6035-olcauthzregex-needs-restart

Gbp-Pq: Name ITS6035-olcauthzregex-needs-restart.patch

5 years agodon't second-guess BDB ABI
Steve Langasek [Fri, 30 Oct 2020 01:36:26 +0000 (01:36 +0000)]
don't second-guess BDB ABI

Bug-Debian: http://bugs.debian.org/651333
Forwarded: not-needed

OpenLDAP upstream conservatively assumes that any change to the version
number of libdb can result in an API-breaking change that could impact
the database.  In Debian, we know that such changes require bumping the
library soname and changing the package name, and demand such rigor from
our package maintainers even when upstreams don't deliver; so any such
check in the source code works against the packaging system by forcing
database upgrades when we know none are required.  Disable this check
so we rely on the packaging system to do its job.

Gbp-Pq: Name no-bdb-ABI-second-guessing

5 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