r17646: Use authentication if specified.