Project

General

Profile

Actions

Feature #2943

closed

Make it possible to unset a host's root password

Added by Robin Bowes over 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

If a root password is set at a the host level it is not possible to unset it without munging the database directly.

Add some way to clear the password that has been set in the host interface.

FWIW, the SQL required to clear the root password is as follows:

update hosts set root_pass = null where name = '<your host name here>';


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #11387: LDAP Account password cannot be empty after edit ClosedAmir Fefer08/17/2015Actions
Has duplicate Foreman - Bug #9417: Impossible to see / clear root password from hostgroupDuplicateOhad Levy02/17/2015Actions
Actions #1

Updated by Steve Traylen about 10 years ago

Indeed there looks to have been a regression on - http://projects.theforeman.org/issues/1392

Actions #2

Updated by Dominic Cleal about 10 years ago

Steve Traylen wrote:

Indeed there looks to have been a regression on - http://projects.theforeman.org/issues/1392

Yes, this happened in #2484 - a combination of password fields no longer having their current value preset in Rails (which is good for security), and then in response we changed the form not to overwrite a host's password with a blank value from the form when you edit a host. This means you can no longer deliberately reset it by deleting the value, as there is no current value - but also means users don't inadvertently reset it just by editing a host.

I think to implement this (again), we would introduce something like a checkbox to the side of the password field which you'd tick if you wanted to remove it entirely.

Actions #3

Updated by Dominic Cleal about 9 years ago

  • Has duplicate Bug #9417: Impossible to see / clear root password from hostgroup added
Actions #4

Updated by Bryan Kearney about 9 years ago

  • Bugzilla link set to 1193310
Actions #5

Updated by Dominic Cleal over 8 years ago

  • Related to Bug #11387: LDAP Account password cannot be empty after edit added
Actions #6

Updated by Amir Fefer over 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Amir Fefer
Actions #7

Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2632 added
  • Pull request deleted ()
Actions #8

Updated by Amir Fefer over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #9

Updated by Dominic Cleal over 8 years ago

  • Category set to Host creation
  • translation missing: en.field_release set to 63
Actions

Also available in: Atom PDF