Fixed issue with authentication by conf/agent.conf