[FIX] auth_ldap: fix LDAP error handling

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: 24a3f669e5199c35849dabbf7b0d37f43b684538
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
This commit is contained in:
MANALIMALPANI
2021-06-21 17:50:25 +00:00
parent 8603b89a52
commit 8a0dd29899
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
Ireland, 2021-06-18
I hereby agree to the terms of the Odoo Individual Contributor License
Agreement v1.0.
I declare that I am authorized and able to make this agreement and sign this
declaration.
Signed,
Manali Malpani manali.malpani@ibm.com https://github.com/manali-malpani