[Yum-devel] Re: enable yum to pass http data to repository

Scott Russell lnxgeek at us.ibm.com
Sat Nov 19 02:49:22 UTC 2005


Alan Milligan wrote:
> The HTTP protocol already supports user authentication in the
> AUTHORIZATION header.  There is no need to even *consider* putting this
> information into a request payload.
> 
> Even more wonderful for you, is that URLGrabber supports basic http
> authentication url extensions.
> 
> Thus, you'd do something like the following in your repo file:
> 
> [base]
> name=BastionLinux $releasever - $basearch - Base
> baseurl=https://username:password@linux.last-bastion.net/RPC2/up2date/server

Gotta chime in here and say that I would love to see userid and password 
config options for yum repos. That said, the above while it works is 
less than ideal. The idea of storing a password in the yum config file 
isn't the best practice.

-- 
Scott Russell <lnxgeek at us.ibm.com>
IBM Linux Technology Center System Admin




More information about the Yum-devel mailing list