SERVER-12621 narrow the localhost exception when auth is enabled