Bug 656978 - Unable to connect on repository using HTTP basic authentication
Summary: Unable to connect on repository using HTTP basic authentication
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum
Version: 5.5
Hardware: x86_64
OS: Linux
low
high
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-24 16:02 UTC by Alexandre Frandemiche
Modified: 2014-01-21 06:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-14 19:26:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alexandre Frandemiche 2010-11-24 16:02:38 UTC
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:passwd@example.com/".


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)


How reproducible:

Ever

Steps to Reproduce:
1.create a repository who works without http basic authentication
2.In your httpd.conf, add :
<Directory /var/www/repo>
    AuthType Basic
    AuthName "Password Required"
    AuthUserFile /etc/apache2/passwords/repo
    Require valid-user
</Directory>
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 :

baseurl=http://user:passwd@www.example.com/
  
Actual results:

Not Working

Comment 1 seth vidal 2010-11-29 20:56:05 UTC
just to be sure - you can get to that repo via a web browser, right?

Comment 2 Alexandre Frandemiche 2010-11-30 07:38:41 UTC
Yes of course, and the exactly same file.repo under Fedora 14 works perfectly !

Comment 3 James Antill 2013-03-14 19:26:52 UTC
 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.)


Note You need to log in before you can comment on or make changes to this bug.