Changes to add realm name (from config) to end of service name for passive authentication.
Add things missing from previous commit to add realm_name to the service name.
Added hostname to configuration and example code.