login/logout functionality with LDAP user