Bug 194247

Summary: Can't get initial kickstart when URL requires auth
Product: Red Hat Enterprise Linux 4 Reporter: Bastien Nocera <bnocera>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0816 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-15 16:35:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 190430    
Attachments:
Description Flags
anaconda-rhel3-initial-ks-auth.patch
none
anaconda-rhel4-initial-ks-auth.patch
none
test.c none

Description Bastien Nocera 2006-06-06 16:14:34 UTC
RHEL3 U7

In the anaconda logs, you might see:
* reverse name lookup worked
* ks location: ftp://ftpuser:redhat@10.0.0.1/home/ftpuser/ks.cfg
* transferring ftp://ftpuser:redhat@10.0.0.1//./home/ftpuser/ks.cfg to a fd
* failed to retrieve http://ftpuser:redhat@10.65.6.242///home/ftpuser/ks.cfg

The attached patch adds support for parsing login and password from the URI
itself. I also attached a test program to see whether there were any regressions
in the parsing.

I'm afraid my patch uses the same lax memory management as the original code
(host and path are never freed).

Comment 1 Bastien Nocera 2006-06-06 16:14:35 UTC
Created attachment 130617 [details]
anaconda-rhel3-initial-ks-auth.patch

Comment 2 Bastien Nocera 2006-06-06 16:16:04 UTC
Created attachment 130618 [details]
anaconda-rhel4-initial-ks-auth.patch

RHEL4 patch, if necessary.

Comment 3 Bastien Nocera 2006-06-06 16:16:50 UTC
Created attachment 130619 [details]
test.c

Parsing testcase.

Comment 6 David Cantrell 2007-04-03 20:08:53 UTC
Patch applied to rawhide.  Flagging for inclusion in RHEL-4.6.

Comment 7 RHEL Program Management 2007-05-09 10:14:04 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 12 errata-xmlrpc 2007-11-15 16:35:07 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0816.html