diff --git a/addons/auth_ldap/users_ldap.py b/addons/auth_ldap/users_ldap.py index e253874d33a..6a6414c0037 100644 --- a/addons/auth_ldap/users_ldap.py +++ b/addons/auth_ldap/users_ldap.py @@ -251,7 +251,7 @@ class users(osv.osv): return user_id registry = RegistryManager.get(db) with registry.cursor() as cr: - cr.execute("SELECT id, active FROM res_users WHERE lower(login)=%s", (login,)) + cr.execute("SELECT id FROM res_users WHERE lower(login)=%s", (login,)) res = cr.fetchone() if res: return False