adding ability to use remote authentication over ldap