[Yum] Using Basic HTTP authentication with a port other than 80

Zdenek Pavlas zpavlas at redhat.com
Tue Apr 17 08:36:52 UTC 2012

> baseurl=http://user:password@<my-ip>:<my-non-80-port>/yum/RHEL/7/base/$basearch/
> ..
> When I set the listening port on the server back to 80, and remove
> the port specification in the client’s repo file, it works. This
> indicates to me that the extra ":" specifying the port confuses
> yum’s parsing of my URL.

AFAIK Yum does very little with that- it just appends relative
URL and passes full URL to libcurl.  user/pass parsing is certainly
done there, but I'm not 100% sure Yum does not mangle the baseurl
part in some way, and don't have EL5 at hands atm.

Try replacing the ':' between user and pass with '%3a', maybe
that helps.

More information about the Yum mailing list