Project

General

Profile

Actions

Patch #21137

closed

Rescue network level errors with LDAP auth

Patch #21137: Rescue network level errors with LDAP auth

Added by Holger Just about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Category:
LDAP
Target version:

Description

Right now, only a small number of possible error cases is rescue inside the AuthSourceLdap model are rescued, namely errors happening on the LDAP protocol itself. This results in plain (and not really helpful) 500 errors on login for many common transient network errors, including an unstable connection between the app and the LDAP server, TLS certificate issues, DNS issues, changed firewalls...

The attached patch against current trunk at r14793 provides a list of exceptions that are explicitly rescued to show a nice error message to the user instead of just failing with an HTTP 500. This should result in much more pleasant experience for people using LDAP auth.

This patch was extracted from Planio.


Files


Related issues 2 (0 open — 2 closed)

Related to Redmine - Defect #5592: Better error page on LDAP Authentication errorClosedActions
Related to Redmine - Defect #44526: 500 error when the LDAP server is unreachable on macOS 26.7ClosedGo MAEDAActions

Updated by Toshi MARUYAMA about 11 years ago Actions #1

  • Target version set to 3.2.0

Updated by Jean-Philippe Lang about 11 years ago Actions #2

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang

Thanks.

Updated by Go MAEDA almost 5 years ago Actions #3

  • Related to Defect #5592: Better error page on LDAP Authentication error added

Updated by Go MAEDA 2 months ago Actions #4

  • Related to Defect #44526: 500 error when the LDAP server is unreachable on macOS 26.7 added
Actions

Also available in: PDF Atom