Skip to content
Snippets Groups Projects
  • Martin Trigaux's avatar
    9aef423d
    [FIX] auth_ldap: replace the deprecated library by one up to date · 9aef423d
    Martin Trigaux authored
    At 795c7b0a 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: 1afd0ccf
    Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
    9aef423d
    History
    [FIX] auth_ldap: replace the deprecated library by one up to date
    Martin Trigaux authored
    At 795c7b0a 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: 1afd0ccf
    Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
control 1.80 KiB
Source: odoo
Section: net
Priority: optional
Maintainer: Odoo S.A. <info@odoo.com>
Uploaders: Aaron Bohy <aab@odoo.com>, Simon Lejeune <sle@odoo.com>
Build-Depends: debhelper (>= 9.2), dh-python, python3, rsync, python3-setuptools
Standards-Version: 3.9.8
Homepage: http://www.odoo.com/
Vcs-Git: https://github.com/odoo/odoo

Package: odoo
Architecture: all
Depends:
 ${misc:Depends},
 ${python3:Depends},
 adduser,
 lsb-base,
 postgresql-client,
 python3-babel,
 python3-chardet,
 python3-dateutil,
 python3-decorator,
 python3-docutils,
 python3-feedparser,
 python3-html2text,
 python3-pil,
 python3-jinja2,
 python3-libsass,
 python3-lxml,
 python3-mako,
 python3-mock,
 python3-passlib,
 python3-polib,
 python3-psutil,
 python3-psycopg2,
 python3-pydot,
 python3-pyparsing,
 python3-pypdf2,
 python3-qrcode,
 python3-reportlab,
 python3-requests,
 python3-suds,
 python3-tz,
 python3-vatnumber,
 python3-vobject,
 python3-werkzeug,
 python3-xlsxwriter,
 python3-xlrd,
Conflicts: tinyerp-server, openerp-server, openerp-web, openerp
Replaces: tinyerp-server, openerp-server, openerp-web, openerp
Recommends:
 ${python3:Recommends},
 postgresql,
 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
 applications covers all business needs, from Website/Ecommerce down to
 manufacturing, inventory and accounting, all seamlessly integrated. Odoo's
 technical features include a distributed server, flexible workflows, an object
 database, a dynamic GUI, customizable reports, and an XML-RPC interface. Odoo
 is the most installed business software in the world. It is used by 2.000.000
 users worldwide ranging from very small companies (1 user) to very large ones
 (300 000 users).