Bug 97464 - FQDN determined incorrectly in %post
FQDN determined incorrectly in %post
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: httpd (Show other bugs)
1
All Linux
medium Severity low
: ---
: ---
Assigned To: Joe Orton
: EasyFix
Depends On:
Blocks: EasyFix-Tracker
  Show dependency treegraph
 
Reported: 2003-06-16 07:43 EDT by Nils Philippsen
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-04-18 04:47:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nils Philippsen 2003-06-16 07:43:46 EDT
Description of problem:

To install a server key, the FQDN is determined as the output of `hostname`.
While this works with a standard installation, many people rather have only the
host part as hostname and do the mapping via /etc/hosts or DNS.
This way, only the hostname and not the FQDN is used in the keys/certs.

Version-Release number of selected component (if applicable):

2.0.40-21.3

How reproducible:

Always.

Steps to Reproduce:
1. Set hostname to e.g. 'host', not 'host.domain.tld'
2. Install mod_ssl

Actual results:

See above.

Expected results:

FQDN in keys/certs.

Additional info:

make the line:

FQDN=`hostname`

in %post read:

FQDN=`hostname -f`
Comment 1 Joe Orton 2004-01-05 17:39:37 EST
Looking at this for FC2... hostname -f is more risky, since it
actually does a DNS lookup on the system hostname, and this may all
happen at anaconda-time.  Since the end result is just a self-signed
cert of limited value anyway, I'd be inclined to stick with the status
quo.

Any compelling arguments?
Comment 2 Joe Orton 2004-04-18 04:47:05 EDT
WONTFIX without compelling arguments due to risk of a DNS lookup at
%post time.

Note You need to log in before you can comment on or make changes to this bug.