Extend the configuration to support Agent
Add support for login with domain name specified.