Make it possible to unset a host's root password
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>';
#2 Updated by Dominic Cleal almost 6 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.