Bug #21353
closedUnable to change the default Satellite username "admin-username"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1490969
Description of problem:
-After initial setup I attempted to change the default user
name and password from "admin-username" and "admin-password"
-From the GUI I can change the username and password but as soon as I hit submit the username returns to "admin-username"
Version-Release number of selected component (if applicable):
Satellite 6.2.11
How reproducible:
Easily Reproducible
Steps to Reproduce:
1. After new install of RedHat Satellite 6.2.11 using the installer with --foreman-admin-username gk-admin attempt to change username
2. Hit Submit when username and password changed
3. The username returns to the old "admin-username"
Actual results:
Expected results:
Expected the username to update to the new name.
Logging out and logging back in does not matter.
Additional info:
The problem is that installer allows user to modify the default admin username while in UI it's not properly detected as default admin and the username field is not disabled. The reason is we hardcode 'admin' login in app/views/users/_form.html.erb
<%= text_f f, :login, :disabled => f.object.login == 'admin' %>
Updated by Marek Hulán over 7 years ago
- Subject changed from Unable to change the default Satellite username "admin-username" to Unable to change the default Satellite username "admin-username"
- Category set to 218
- Difficulty set to easy
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4966 added
Updated by Daniel Lobato Garcia over 7 years ago
- Translation missing: en.field_release set to 296
Updated by Shira Maximov over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Updated by Ivan Necas over 7 years ago
- Related to Bug #21849: Login field disabled with "External user login can not be changed" added
Updated by Tomer Brisker almost 5 years ago
- Category changed from 218 to Users, Roles and Permissions