Feature #2943
closed
Make it possible to unset a host's root password
Added by Robin Bowes over 11 years ago.
Updated over 6 years ago.
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>';
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.
- Has duplicate Bug #9417: Impossible to see / clear root password from hostgroup added
- Bugzilla link set to 1193310
- Related to Bug #11387: LDAP Account password cannot be empty after edit added
- Status changed from New to Assigned
- Assignee set to Amir Fefer
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2632 added
- Pull request deleted (
)
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Category set to Host creation
- Translation missing: en.field_release set to 63
Also available in: Atom
PDF