Make rest work with LDAP login