Bug 661876
Summary: | subscription-manager: cannot connect through a proxy that requires auth | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | J.C. Molet <jmolet> |
Component: | subscription-manager | Assignee: | Adrian Likins <alikins> |
Status: | CLOSED ERRATA | QA Contact: | J.C. Molet <jmolet> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 6.1 | CC: | alikins |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-05-19 13:38:09 UTC | Type: | --- |
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: | 639436 |
Description
J.C. Molet
2010-12-09 20:52:30 UTC
commit 8405d250762441819b75cc1a19b6f899d0c03012 Author: Adrian Likins <alikins> Date: Fri Dec 10 10:57:57 2010 -0500 661876: fix a bug with cli not using config file proxy auth info Looks like cli wasn't reading the auth info from the config on some commands (like register). [root@x2112 rhsm]# rpm -qa | grep subscription subscription-manager-gnome-0.93.3-1.git.19.7e709b6.fc14.x86_64 subscription-manager-0.93.3-1.git.19.7e709b6.fc14.x86_64 test1: proxying by editing rhsm.conf [root@x2112 rhsm]# subscription-manager unregister System has been un-registered. [root@x2112 rhsm]# cat rhsm.conf | grep proxy proxy_hostname = mgmt5.rhq.lab.eng.bos.redhat.com proxy_user = redhat proxy_password = redhat proxy_port = 3128 [root@x2112 rhsm]# subscription-manager register --username=testuser1 --password=password bff7d25d-ce13-44c7-81cb-5c488d15e93f testuser1 test successful. ======================================= test2: proxying entirely via cli [root@x2112 rhsm]# cat rhsm.conf | grep proxy proxy_hostname = None proxy_user = None proxy_password = None proxy_port = None proxy_hostname = proxy_user = proxy_password = proxy_port = [root@x2112 rhsm]# subscription-manager unregister This system is currently not registered. [root@x2112 rhsm]# subscription-manager register --username=xeops --password=redhat --proxy=mgmt5.rhq.lab.eng.bos.redhat.com --proxyuser=redhat --proxypass=redhat up redhat redhat nl candlepin1.devlab.phx1.redhat.com:443 CONNECT candlepin1.devlab.phx1.redhat.com:443 HTTP/1.1 Host: candlepin1.devlab.phx1.redhat.com:443 Proxy-Authorization: Basic cmVkaGF0OnJlZGhhdA== bf0ed0b4-927c-45d0-8fd5-62f561ef75d3 xeops [root@x2112 rhsm]# ========================== cli proxying works with this commit An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0611.html |