Skip to content
Snippets Groups Projects
  1. Sep 17, 2023
  2. Aug 27, 2023
  3. Aug 06, 2023
  4. Jul 30, 2023
  5. Jul 23, 2023
  6. Jul 16, 2023
  7. Mar 20, 2023
  8. Dec 19, 2022
  9. May 25, 2022
  10. Mar 22, 2022
    • Abdelouahab (abla)'s avatar
      [FIX] auth_ldap : add system parameter to disable referral chasing · 7b366a88
      Abdelouahab (abla) authored
      
      To reproduce
      ============
      
      - Using ldap server with Microsoft Active Directory
      - Set up ldap authentication on Odoo
      - Trying to log with a username/password from ldap on Odoo doesn't work
      
      Purpose
      =======
      
      Because referral chasing is enabled by default, python-ldap ends up requesting
      a completely different unrelated server.
      
      Specification
      =============
      
      To solve the issue, a system parameter `disable_ldap_chase_ref` must be created
      to have the possibility to disable referral chasing by setting its value to `True`.
      
      opw-2724800
      
      closes odoo/odoo#86993
      
      X-original-commit: f40a98ee
      Signed-off-by: default avatarOlivier Dony <odo@odoo.com>
      Signed-off-by: default avatarabla001 <abla@odoo.com>
      7b366a88
  11. Jul 26, 2021
    • Xavier-Do's avatar
      [FIX] *: add explicit license to all manifest · 288595f5
      Xavier-Do authored
      
      The license is missing in most enterprise manifest so
      the decision was taken to make it explicit in all cases.
      When not defined, a warning will be triggered starting from
      14.0 when falling back on the default LGPL-3.
      
      closes odoo/odoo#74245
      
      Related: odoo/design-themes#48
      Related: odoo/enterprise#19862
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      288595f5
  12. Jul 12, 2021
  13. Jun 21, 2021
    • MANALIMALPANI's avatar
      [FIX] auth_ldap: fix LDAP error handling · 8a0dd298
      MANALIMALPANI authored
      
          In order to ensure consistent results of all error conditions returned
          by the LDAP server, the _authenticate() method should return `False`
          for every kind of exception, not just for INVALID_CREDENTIALS.
      
          This is not actually relevant in 12.0 as the result is exactly the
          same, due to the way the `entry` variable is being initialized, but it
          will make the code path "visibly consistent" across all supported
          versions
      
      closes odoo/odoo#72484
      
      X-original-commit: 24a3f669
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      8a0dd298
  14. May 11, 2021
  15. Jan 28, 2021
  16. Jan 12, 2021
  17. Aug 15, 2020
  18. Aug 14, 2020
    • Xavier Morel's avatar
      [IMP] core: add env to various auth methods · 950d962d
      Xavier Morel authored
      Allows accessing various keys, especially whether this is an
      interactive login or not.
      
      Also have the xml-rpc `login` delegate to `authenticate` instead of
      having its own half-assed implementation.
      
      And remove some dead code: as far as I can tell, Session.authenticate
      is never called with a uid.
      950d962d
  19. Apr 24, 2020
    • Denis Ledoux's avatar
      [ADD] auth_ldap: give possibility to users to change their ldap password · e050d915
      Denis Ledoux authored
      
       - A user using ldap to sign in can now changes his password,
         providing hid old password.
       - When the ldap password is changed, empty the possible
         value for the password set in database so
         it can no longer be used.
       - Usually, in all res.users methods auth_ldap replaces,
         we first try to call `super` before fallbacking to
         ldap if the call to super fails.
         e.g. when authenticating,
         we first check the regular (super) credentials,
         before fallbacking to ldap if it fails.
         In this case, we do the opposite on purpose,
         to give the priority to ldap in case a user changes of password.
         e.g. a user has the same password in ldap and in database,
         when he changes, we rather like changing the ldap password
         and then empty the internal password.
      
      closes odoo/odoo#50144
      
      X-original-commit: 8bff93fe
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      Signed-off-by: default avatarDenis Ledoux (dle) <dle@odoo.com>
      e050d915
  20. Mar 05, 2020
  21. Jan 22, 2020
    • Martin Trigaux's avatar
      [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
  22. Dec 10, 2019
  23. Nov 25, 2019
  24. Oct 07, 2019
  25. Oct 01, 2019
  26. Sep 29, 2019
  27. Sep 25, 2019
  28. Sep 15, 2019
  29. Sep 03, 2019
  30. Sep 01, 2019
  31. Aug 25, 2019
  32. Sep 01, 2019
  33. Aug 18, 2019
  34. Aug 13, 2019
  35. Aug 11, 2019
Loading