pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/py-ldap



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue May 10 16:58:03 UTC 2022

Modified Files:
        pkgsrc/databases/py-ldap: Makefile distinfo
Added Files:
        pkgsrc/databases/py-ldap/patches: patch-Lib_slapdtest___slapdtest.py

Log Message:
py-ldap: updated to 3.4.0

Released 3.4.0 2021-11-26

This release requires Python 3.6 or above,
and is tested with Python 3.6 to 3.10.
Python 2 is no longer supported.

New code in the python-ldap project is available under the MIT licence
(available in ``LICENCE.MIT`` in the source). Several contributors have agreed
to apply this licence their previous contributions as well.
See the ``README`` for details.

The following undocumented functions are deprecated and scheduled for removal:
- ``ldap.cidict.strlist_intersection``
- ``ldap.cidict.strlist_minus``
- ``ldap.cidict.strlist_union``

Security fixes:
* Fix inefficient regular expression which allows denial-of-service attacks
  when parsing specially-crafted LDAP schema.
  (GHSL-2021-117)

Changes:
* On MacOS, remove option to make LDAP connections from a file descriptor
  when built with the system libldap (which lacks the underlying function,
  ``ldap_init_fd``)
* Attribute values of the post read control are now ``bytes``
  instead of ISO8859-1 decoded ``str``
* ``LDAPUrl`` now treats urlscheme as case-insensitive
* Several OpenLDAP options are now supported:
  * ``OPT_X_TLS_REQUIRE_SAN``
  * ``OPT_X_SASL_SSF_EXTERNAL``
  * ``OPT_X_TLS_PEERCERT``

Fixes:
* The ``copy()`` method of ``cidict`` was added back. It was unintentionally
  removed in 3.3.0
* Fixed getting/setting ``SASL`` options on big endian platforms
* Unknown LDAP result code are now converted to ``LDAPexception``,
  rather than raising a ``SystemError``.

slapdtest:
* Show stderr of slapd -Ttest
* ``SlapdObject`` uses directory-based configuration of ``slapd``
* ``SlapdObject`` startup is now faster

Infrastructure:
* CI now runs on GitHub Actions rather than Travis CI.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 pkgsrc/databases/py-ldap/Makefile
cvs rdiff -u -r1.48 -r1.49 pkgsrc/databases/py-ldap/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/databases/py-ldap/patches/patch-Lib_slapdtest___slapdtest.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/py-ldap/Makefile
diff -u pkgsrc/databases/py-ldap/Makefile:1.90 pkgsrc/databases/py-ldap/Makefile:1.91
--- pkgsrc/databases/py-ldap/Makefile:1.90      Tue Jan  4 20:52:42 2022
+++ pkgsrc/databases/py-ldap/Makefile   Tue May 10 16:58:03 2022
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.90 2022/01/04 20:52:42 wiz Exp $
+# $NetBSD: Makefile,v 1.91 2022/05/10 16:58:03 adam Exp $
 
-DISTNAME=      python-ldap-3.3.1
+DISTNAME=      python-ldap-3.4.0
 PKGNAME=       ${DISTNAME:S/python/${PYPKGPREFIX}/}
-PKGREVISION=   1
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-ldap/}
 
@@ -11,6 +10,8 @@ HOMEPAGE=     https://www.python-ldap.org/
 COMMENT=       LDAP client API for Python
 LICENSE=       python-software-foundation
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 .include "../../mk/bsd.prefs.mk"
 .if !empty(MACHINE_PLATFORM:MNetBSD-[56789].*) && \
     empty(MACHINE_PLATFORM:MNetBSD-9.99.*)

Index: pkgsrc/databases/py-ldap/distinfo
diff -u pkgsrc/databases/py-ldap/distinfo:1.48 pkgsrc/databases/py-ldap/distinfo:1.49
--- pkgsrc/databases/py-ldap/distinfo:1.48      Tue Oct 26 10:09:50 2021
+++ pkgsrc/databases/py-ldap/distinfo   Tue May 10 16:58:03 2022
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.48 2021/10/26 10:09:50 nia Exp $
+$NetBSD: distinfo,v 1.49 2022/05/10 16:58:03 adam Exp $
 
-BLAKE2s (python-ldap-3.3.1.tar.gz) = 1fb1ada40aa898ff7def79e4f088a106fae2d2536858e0fd39a620a8cbf9e98c
-SHA512 (python-ldap-3.3.1.tar.gz) = 2a1222bf5bbc1d885611fc4f2a25d0b1b64b49ae379f1212f1b3b70fc12fdc547eb6c4af4060a20bf082547b7df8f1824bb1fdfafa37ab21acf2f1e231c4d2d1
-Size (python-ldap-3.3.1.tar.gz) = 379810 bytes
+BLAKE2s (python-ldap-3.4.0.tar.gz) = 44b9c665ecb72c279d0c89d45193bb53bab10a1e854f4b50e1774e6df02c36a0
+SHA512 (python-ldap-3.4.0.tar.gz) = d10c10f1d416a0f67e7669c6c0b5460a3484bc31f4af471d581a9207689e5687c08d1ad78ba8d47e0ce0c35d24d79e4b848b4c503534f211a36c1b882bee3605
+Size (python-ldap-3.4.0.tar.gz) = 376169 bytes
+SHA1 (patch-Lib_slapdtest___slapdtest.py) = d2f024e735106e97f0b5d48b667e9a40794d3c35
 SHA1 (patch-Makefile) = ef130a8711a94cc070f11baf0d481bbc69ff3910

Added files:

Index: pkgsrc/databases/py-ldap/patches/patch-Lib_slapdtest___slapdtest.py
diff -u /dev/null pkgsrc/databases/py-ldap/patches/patch-Lib_slapdtest___slapdtest.py:1.1
--- /dev/null   Tue May 10 16:58:03 2022
+++ pkgsrc/databases/py-ldap/patches/patch-Lib_slapdtest___slapdtest.py Tue May 10 16:58:03 2022
@@ -0,0 +1,15 @@
+$NetBSD: patch-Lib_slapdtest___slapdtest.py,v 1.1 2022/05/10 16:58:03 adam Exp $
+
+Fix test: look for slapadd in sbin.
+
+--- Lib/slapdtest/_slapdtest.py.orig   2022-05-10 16:52:41.000000000 +0000
++++ Lib/slapdtest/_slapdtest.py
+@@ -259,7 +259,7 @@ class SlapdObject:
+         self.PATH_LDAPDELETE = self._find_command('ldapdelete')
+         self.PATH_LDAPMODIFY = self._find_command('ldapmodify')
+         self.PATH_LDAPWHOAMI = self._find_command('ldapwhoami')
+-        self.PATH_SLAPADD = self._find_command('slapadd')
++        self.PATH_SLAPADD = self._find_command('slapadd', in_sbin=True)
+ 
+         self.PATH_SLAPD = os.environ.get('SLAPD', None)
+         if not self.PATH_SLAPD:



Home | Main Index | Thread Index | Old Index