Disabling external authentication

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

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

FTR, I still get this regularly, and it seems that this is related to the ‘backTo’ localStorage entry, which somehow gets set to ‘…login?errorMsg=unknown’. So it logs in successfully, but then redirects the user back to the login page (even though they are logged in).

I’ve filed a bug report about it here:


Ross

I have the same exact issue after a fresh install. Any ideas?