Redhat – rhn_register through HTTP Proxy with Authentication

redhatyum

Is there any limitation to the proxy authentication support of rhn_register?

The proxy of the network I'm on sends the follow 407:

HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Via: 1.1 VANESSA
Proxy-Authenticate: Negotiate
Proxy-Authenticate: Kerberos    
Proxy-Authenticate: NTLM

It seems that rhn_register is not able to any of the authentication schemes above.

Any advise?

Best Answer

  • RedHat Network

    1. Open /etc/sysconfig/rhn/up2date for editing

    2. Change the following:

    From:

    enableProxy=0

    To:

    +enableProxy=1

    1. Add Following missing lines, if you use user name and password authentication enableProxyAuth[comment]=To use an authenticated proxy or not enableProxyAuth=1

    2. Enter the user's password for the http proxy where it states the following:

      proxyPassword=

    3. Enter the user's username for the http proxy where it states the following:

      proxyUser=

    4. Enter the URL for the proxy server, in host:port format, in the following line:

      httpProxy=

    5. Save the file.

  • Wget

    1. Open /root/.bach_profile for editing

    2. Add the following:

      export http_proxy="http://proxyUser:proxyPassword@httpProxy"

  • Yum

    1. Open /etc/yum.conf for editing

    2. Add the following:

      proxy=http://httpProxy proxy_username=proxyUser proxy_password=proxyPassword