Project

General

Profile

Actions

Bug #4268

closed

Spoof by hostname still searches by an empty IP and returns the wrong host

Added by Dominic Cleal about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When accessing a spoof URL by hostname (e.g. /unattended/PXELinux?hostname=foo.example.com), the code tries to retrieve an IP and hostname from params, then searches by IP and hostname. If only the hostname was given, it does a find_by_ip(nil), which may return a host (not the right one).


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #359: Add support for 'hostname=<hostname>' spoofing for Unattended InstallsClosedDaniel Lobato Garcia07/27/2010Actions
Has duplicate Foreman - Bug #4382: Spoof by hostname does not work if there is a host without an IP addressDuplicateLukas Zapletal02/18/2014Actions
Actions

Also available in: Atom PDF