show authentication error in web-ui

Instead of 'Internal Server error', the web-ui should show a better
message. Currently this is only the case if the LDAP server is
unavailable.