Added a time out for ldap, and on Authentificatino failure redirect to the original page