Bug #6507
closedLDAP auth unavailable if one source is unreachable
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.
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.
Updated by Daniel Lobato Garcia almost 10 years ago
- Status changed from New to Rejected
Just an error in my setup, carry on..