Red Hat Bugzilla – Bug 656978
Unable to connect on repository using HTTP basic authentication
Last modified: 2014-01-21 01:19:41 EST
Description of problem:
Man page of yum.con :
You can use HTTP basic auth by prepending "user:password@" to the server name in the baseurl line. For example: "baseurl=http://user:firstname.lastname@example.org/".
If you do that, the repository doesn't work whereas the same repository file on Fedora 14 works.
Version-Release number of selected component (if applicable):
Yum 3.2.22-26.el5 on x86_64
Under CentOS 5.5 (with no update, so like REHL 5.5)
Steps to Reproduce:
1.create a repository who works without http basic authentication
2.In your httpd.conf, add :
AuthName "Password Required"
3.Add a user to htpasswd :
htpasswd -c /../mypasswordsFile user
4.Finally, change your repository file in /etc/yum.repos.d like explain in man page :
just to be sure - you can get to that repo via a web browser, right?
Yes of course, and the exactly same file.repo under Fedora 14 works perfectly !
This may be fixed in later versions of RHEL-5, if not it should be in RHEL-6 (we fixed a number of weird cases for basic auth.)