Project

General

Profile

Actions

Bug #4167

closed

Password length verification doesn't work

Added by Stephen Benjamin over 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Security
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

In app/models/host/managed.rb:

validates :root_pass, :length => {:minimum => 8, :message => _('should be 8 characters or more')}

The length verification doesn't actually work. In host_common.rb, root_pass assignment is overridden so by the time it validates root_pass, it's already a hash (and over 8 chars).


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #3725: Make default root password more explicit and configurable at install timeClosedStephen Benjamin11/22/2013Actions
Actions

Also available in: Atom PDF