Bug 795892

Summary: RFE: Support username/password authenticated repos
Product: [Retired] Pulp Reporter: Chris St. Pierre <cstpierr>
Component: user-experienceAssignee: pulp-bugs
Status: CLOSED UPSTREAM QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: edgars.m, rbarlow, skarmark
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-19 00:48:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chris St. Pierre 2012-02-21 18:31:13 UTC
Description of problem:

Some repos (e.g., Novell's SLES repos) require a username and password to access them.  It would be swell if Pulp could support this; as it stands, there's no obvious way to sync, e.g., https://username:password@nu.novell.com/repo/$RCE/SLE11-SDK-SP1-Pool/sle-11-x86_64/rpm/x86_64/.

I tried entering the feed URL with https://username@password@... in it, but that didn't work.

Version-Release number of selected component (if applicable):

0.0.254-8

How reproducible:

Every time.

Steps to Reproduce:
1. Try to sync a repo that requires username/password authn.
2. Fail.
3. Cry in your whiskey.
  
Actual results:

Alcoholism.

Expected results:

Sync.

Additional info:

Comment 1 Edgars Mazurs 2014-11-20 08:48:11 UTC
Hi

I also wanted to sync SLES repos and here is what worked for me in case anyone else need it:

pulp-admin rpm repo create --repo-id=SLE11-SDK-SP3-Pool-x86_64 --feed="https://user:password@nu.novell.com/repo/\$RCE/SLE11-SDK-SP3-Pool/sle-11-x86_64/"

Note that you need to escape $ character in feed url. Also url must contain path to directory which contains repodata folder.

BR
Edgars

Comment 2 Brian Bouterse 2015-02-19 00:48:05 UTC
Moved to https://pulp.plan.io/issues/163