Bug 2105316

Summary: wsmancli: Improve handling of HTTP 401 Unauthorized
Product: Red Hat Enterprise Linux 8 Reporter: Stepan Broz <sbroz>
Component: wsmancliAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED CURRENTRELEASE QA Contact: Evgeny Fedin <efedin>
Severity: medium Docs Contact: Šárka Jana <sjanderk>
Priority: urgent    
Version: 8.6CC: efedin, fkrska, ovasik, sjanderk, vcrhonek, yoliynyk
Target Milestone: rcKeywords: EasyFix, Patch, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: wsmancli-2.6.0-11.el8 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:
: 2124890 2124891 (view as bug list) Environment:
Last Closed: 2023-02-14 11:56:27 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:
Bug Depends On:    
Bug Blocks: 2124890, 2124891    
Deadline: 2023-02-20   

Comment 4 Stepan Broz 2022-07-08 14:18:15 UTC
*** Bug 2105315 has been marked as a duplicate of this bug. ***