Find the right server name when using basic auth