HTTPS and Basic Auth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to create a yum repository which is accessible through HTTPS
and protected by basic auth. I've put the user:pass into the baseurl in
the .repo file I created, and indexes download properly, but when I
attempt to actually download a package, it fails.  The URLs shown do not
contain the user and pass, although I'm not sure if they aren't
displayed for security reasons, or because they've gone missing.  Any
ideas what's going on?  (user and pass have been changed to protect the
innocent)

yum conf:
---(snip!)---
[opennms-1.0-common-noarch]
name=Architecture-Independent Common OpenNMS LTS Packages (1.0)
baseurl=https://user:pass@xxxxxxxxxxxxxxxxxxx/lts/download/rpm/1.0/common/noarch
gpgcheck=1
gpgkey=http://yum.opennms.org/OPENNMS-GPG-KEY

[opennms-1.0-common-$basearch]
name=Architecture-Specific Common OpenNMS LTS Packages (1.0)
baseurl=https://user:pass@xxxxxxxxxxxxxxxxxxx/lts/download/rpm/1.0/common/$basearch
gpgcheck=1
gpgkey=http://yum.opennms.org/OPENNMS-GPG-KEY

[opennms-1.0-rhel5]
name=Distribution-Specific OpenNMS LTS Packages (rhel5)
baseurl=https://user:pass@xxxxxxxxxxxxxxxxxxx/lts/download/rpm/1.0/rhel5/$basearch
gpgcheck=1
gpgkey=http://yum.opennms.org/OPENNMS-GPG-KEY
---(snip!)---

But when I try to install from this repo, I get errors:

---(snip!)---
[root@localhost ~]# yum list iplike\*
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirror.flhsi.com
 * extras: mirror.rackspace.com
 * updates: mirror.wiredtree.com
base                                                                                                                                                                                                          
| 1.1 kB     00:00    
base/primary                                                                                                                                                                                                  
| 961 kB     00:01    
base                                                                                                                                                                                                                       
2705/2705
extras                                                                                                                                                                                                        
| 2.1 kB     00:00    
extras/primary_db                                                                                                                                                                                             
| 153 kB     00:00    
opennms-1.0-common-i386                                                                                                                                                                                       
| 2.8 kB     00:00    
opennms-1.0-common-i386/primary_db                                                                                                                                                                            
| 4.0 kB     00:00    
opennms-1.0-common-noarch                                                                                                                                                                                     
| 2.8 kB     00:00    
opennms-1.0-common-noarch/primary_db                                                                                                                                                                          
| 1.2 kB     00:00    
opennms-1.0-rhel5                                                                                                                                                                                             
| 2.8 kB     00:00    
opennms-1.0-rhel5/primary_db                                                                                                                                                                                  
| 7.0 kB     00:00    
updates                                                                                                                                                                                                       
| 1.9 kB     00:00    
updates/primary_db                                                                                                                                                                                            
| 134 kB     00:00    
Available Packages
iplike.i386                                                                                                
2.0.2-1                                                                                                 
opennms-1.0-rhel5
[root@localhost ~]# yum -y install iplike
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.flhsi.com
 * extras: mirror.rackspace.com
 * updates: mirror.wiredtree.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package iplike.i386 0:2.0.2-1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================================================================
 Package                                             
Arch                                              
Version                                               
Repository                                                       Size
======================================================================================================================================================================================================================================
Installing:
 iplike                                              
i386                                              
2.0.2-1                                               
opennms-1.0-rhel5                                                14 k

Transaction Summary
======================================================================================================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 14 k
Downloading Packages:
iplike-2.0.2-1.i386.rpm                                                                                                                                                                                       
|  14 kB     00:00    
https://connect.opennms.com/lts/download/rpm/1.0/rhel5/i386/opennms/iplike-2.0.2-1.i386.rpm:
[Errno -1] Package does not match intended download
Trying other mirror.

Error Downloading Packages:
  iplike-2.0.2-1.i386: failure: opennms/iplike-2.0.2-1.i386.rpm from
opennms-1.0-rhel5: [Errno 256] No more mirrors to try.

[root@localhost ~]# curl -L -O
https://user:pass@xxxxxxxxxxxxxxxxxxx/lts/download/rpm/1.0/rhel5/i386/opennms/iplike-2.0.2-1.i386.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time 
Current
                                 Dload  Upload   Total   Spent    Left 
Speed
100 14645  100 14645    0     0  35243      0 --:--:-- --:--:--
--:--:--  155k
[root@localhost ~]# rpm -qilp iplike-2.0.2-1.i386.rpm
Name        : iplike                       Relocations: (not relocatable)
Version     : 2.0.2                             Vendor: (none)
Release     : 1                             Build Date: Tue 03 May 2011
07:11:12 PM EDT
Install Date: (not installed)               Build Host:
localhost.localdomain
Group       : Applications/Databases        Source RPM:
iplike-2.0.2-1.src.rpm
Size        : 23268                            License: GPL
Signature   : DSA/SHA1, Wed 01 Jun 2011 05:21:17 PM EDT, Key ID
062b8a684c4cbbd9
Summary     : PostgreSQL complex IP Address text field query
Description :
PostgreSQL function for doing complex IP address queries
on a text field.
/usr/lib/pgsql/iplike.la
/usr/lib/pgsql/iplike.so
/usr/sbin/install_iplike.sh
---(snip!)---

-- 
Benjamin Reed
The OpenNMS Group
http://www.opennms.org/

_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux