LDAP authenticiation stops working after a while