Project

General

Profile

Actions

Bug #6507

closed

LDAP auth unavailable if one source is unreachable

Added by Daniel Lobato Garcia almost 10 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Normal
Category:
Authentication
Target version:
-
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

Description

It's impossible to log in with any non internal auth source when any of the other auth sources are unreachable.
This happens because when you log in with an account from an external service, Foreman iterates through all available external sources, and if one of them is unreachable and it comes up before the right one, it will throw a 500.

Steps to reproduce:

  • Create several LDAP auth sources, with a wrong URL
  • Create one LDAP auth source with the right URL
  • Try to log in as an user of the right LDAP auth source
  • It should throw a 500 host unreachable that is not true, because it tried to contact other LDAP sources first.
Actions #1

Updated by Daniel Lobato Garcia almost 10 years ago

  • Assignee set to Daniel Lobato Garcia

Daniel Lobato Garcia wrote:

It's impossible to log in with any non internal auth source when any of the other auth sources are unreachable.
This happens because when you log in with an account from an external service, Foreman iterates through all available external sources, and if one of them is unreachable and it comes up before the right one, it will throw a 500.

Steps to reproduce:

  • Create several LDAP auth sources, with a wrong URL
  • Create one LDAP auth source with the right URL
  • Try to log in as an user of the right LDAP auth source
  • It should throw a 500 host unreachable that is not true, because it tried to contact other LDAP sources first.

To clarify, it's impossible to auto create new users in any LDAP source, logging in is still possible.

Actions #2

Updated by Daniel Lobato Garcia almost 10 years ago

  • Status changed from New to Rejected

Just an error in my setup, carry on..

Actions #3

Updated by Dominic Cleal almost 10 years ago

  • Target version deleted (1.8.0)
Actions

Also available in: Atom PDF