Disabling external authentication


#1

We have Rancher2 configured to use OpenLDAP auth. Our LDAP server seems to be available to other applications as normal, but our Rancher2 instance has started giving us ‘Server error while authenticating’ when logging in.

How can we further debug the cause of the error, or disable external authentication and manage local users to regain admin access?


Ross


#2

I used this to enable debug logging for the Rancher container.

https://rancher.com/docs/rancher/v2.x/en/faq/technical/#how-can-i-enable-debug-logging

Now I see more information about the authentication failure.

In the end, it turned I was authenticating successfully as far as the back-end logs were concerned, but something in the JS UI was directing me back to the login page with the error. I cleared my cookies and local storage and things started working as usual again.


Ross