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?
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.
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).