| Summary: | When proxy password has a '#' character, yum doesn't work | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Dimitar Yordanov <dyordano> | ||||
| Component: | rhn-client-tools | Assignee: | Milan Zázrivec <mzazrivec> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Jan Hutař <jhutar> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.1 | CC: | dyordano, jhutar, jlau, jwest, mmello, mmraka, pnovotny, slukasik | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | rhn-client-tools-1.0.0-71.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 650520 | Environment: | |||||
| Last Closed: | 2011-12-06 16:49:51 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | 650520 | ||||||
| Bug Blocks: | 743047 | ||||||
| Attachments: |
|
||||||
Hi,
I come a cross the same problem on RHEL6.1.
yum-rhn-plugin-0.9.1-26.el6_1.1.noarch
I have set two testing HTTP Proxy Squid configurations with Authentication:
NCSA Authentication
PAM Authentication
I have tested with those User names and Passwords.
PROXY_USER="proxy_user_${RANDOM}"
PROXY_PASS='proxy_password'
NCSA PASS
PAM PASS
PROXY_USER="proxy_user_${RANDOM}"
PROXY_PASS='#proxypassword'
NCSA - FAIL
PAM - FAIL
PROXY_USER="proxy_user_${RANDOM}"
PROXY_PASS='proxy#password'
NCSA - FAIL
PAM - FAIL
I have just noticed one weird scenario:
1. Register to rhn.errata.stage.redhat.com
2. Sqiud Configuration /etc/squid/squid.conf -- See attachment
3. Restart Squid: service squid restart
4. Configure yum - /etc/sysconfig/rhn/up2date
enableProxy=1
httpProxy=localhost:3128
enableProxyAuth=1
htpasswd -cb /etc/squid/passwd proxy_1 'ddddddd#'
yum remove zsh -y
sed -i.bak 's|^\(proxyPassword=\).*|\1ddddddd#|;s|^\(proxyUser=\).*|\1proxy_1|'
/etc/sysconfig/rhn/up2date;
diff /etc/sysconfig/rhn/up2date{.bak,}
yum install zsh -y
FAIL
---
htpasswd -cb /etc/squid/passwd proxy_2 'dddddddd#'
yum remove zsh -y
sed -i.bak
's|^\(proxyPassword=\).*|\1dddddddd#|;s|^\(proxyUser=\).*|\1proxy_2|'
/etc/sysconfig/rhn/up2date;
diff /etc/sysconfig/rhn/up2date{.bak,}
yum install zsh -y
PASS
It seems it is somehow depends on the Password length.
If the password length is more than 8 it passes.
I think the problem could be in "htpasswd".
satellite.git CLIENT-RHEL-6: d1a16251bbd171ed0db1fb07dc2eab81267abc57 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, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1664.html |
Created attachment 519154 [details] NCSA Auth Configuration Squid