From 9aef423d4da93af97385e2bce8140ed789a00679 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 14 Nov 2019 10:12:22 +0000 Subject: [FIX] auth_ldap: replace the deprecated library by one up to date At 795c7b0a9415d04 the external dependencies was changed from trying to import 'ldap' to checking than 'pyldap' package was installed. The problem is that pyldap is a unmaintained library that should no longer be used, as explained on the package page: https://pypi.org/project/pyldap/ "The pyldap fork was merged back into python-ldap, and released as python-ldap 3.0.0." Having pyldap version >= 3.0 installs python-ldap automatically and will not cause any issue. The Debian control file package name is adapted to use the latest. The "ldap" externalm dependency defined in __manifest__.py will cause pkg_resources.get_distribution() to fail in both case ("python-lap" or "pyldap"), but the "import" fallback will succeed. For that reason, the log warning is turned into a log info. closes odoo/odoo#43769 Note: This library should be replaced by the pure python "ldap3" library. X-original-commit: 1afd0ccf20881ba97e3c07dffb33e9a3a0b2cda4 Signed-off-by: Christophe Monniez (moc) --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian/control') diff --git a/debian/control b/debian/control index 629c52aa05a..0530ba7ace6 100644 --- a/debian/control +++ b/debian/control @@ -51,7 +51,7 @@ Replaces: tinyerp-server, openerp-server, openerp-web, openerp Recommends: ${python3:Recommends}, postgresql, - python3-pyldap, + python3-ldap, Description: Open Source Apps To Grow Your Business Odoo, formerly known as OpenERP, is a suite of open-source business apps written in Python and released under the LGPLv3 license. This suite of -- cgit v1.2.3