Fixed remember me option for LDAP
The remember me option now  works with LDAP login.