Bug 2127416

Summary: wsmancli: Improve handling of HTTP 401 Unauthorized
Product: Red Hat Enterprise Linux 9 Reporter: Vitezslav Crhonek <vcrhonek>
Component: wsmancliAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED ERRATA QA Contact: Evgeny Fedin <efedin>
Severity: unspecified Docs Contact: Šárka Jana <sjanderk>
Priority: unspecified    
Version: 9.1CC: efedin, sjanderk
Target Milestone: rcKeywords: Triaged
Target Release: 9.2Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: wsmancli-2.6.0-16.el9 Doc Type: Bug Fix
Doc Text:
.`wsmancli` handles HTTP 401 Unauthorized statuses correctly The `wsmancli` utility for managing systems using Web Services Management protocol now handles authentication to better conform to RFC 2616. Previously, when connecting to a service that requires authentication, the `wsmancli` command returned the error message `Authentication failed, please retry` immediately after receiving an HTTP 401 Unauthorized response, for example, because of incomplete credentials. To proceed, `wsmancli` prompted you to provide both the username and the password, even in situations where you had already provided a part of your credentials. With this update, `wsmancli` requires only credentials that were not previously provided. As a result, the first authentication attempt does not display any error message. An error message is displayed only after you provide the complete credentials and authentication fails.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:45:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 9 errata-xmlrpc 2023-05-09 07:45:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (wsmancli bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2311