Configure LDAP to best embedded or hosted