Red Hat Bugzilla – Bug 1027712
"username" field in IPA webUI login page should be mandatory
Last modified: 2015-03-05 05:09:51 EST
Created attachment 820984 [details] html source Description of problem: On IPA WebUi login page "username" and "password" marked as mandatory fields on the HTML source code. However it is not working for the "username" field. If you keep the "username" filed empty it is not validating in client side. It is taking it to server side for authentication. Version-Release number of selected component (if applicable): ipa-server-3.3.2-3.el7.x86_64 How reproducible: always Steps to Reproduce: 1. navigate on your browser(I used firefox) https://<hostname>/ipa/ui/index.html 2. keep empty "username" field 3. enter some value on "password" field 4. Click on "Login" button. Actual results: If you keep the "username" filed empty it is not validating in client side. It is taking it to server side for authentication. Expected results: These type validation should happen on client side. Additional info: Screen shot and html source code files are attached.
Created attachment 820985 [details] WebUI login Page
Thanks for your report. The ability to enter this form without login++password is intentional - it translates to log in with Kerberos as written in the dialog. When user and password is entered, it logs in with user+password. However, you are right that you should not be able to fill in just password, the dialog should require user to be filled as well. I will open an upstream ticket for that.
Upstream ticket: https://fedorahosted.org/freeipa/ticket/4017
Fixed upstream in RCUE login effort master: https://fedorahosted.org/freeipa/changeset/2680d21402d8ac51146bf03be3c0fd63ab49cada https://fedorahosted.org/freeipa/changeset/f39f4aaae2fef6de6a8312dcc652bcaa5766b22b https://fedorahosted.org/freeipa/changeset/dec7f98aa995b369f022813093ac88d0062e5089 https://fedorahosted.org/freeipa/changeset/642345fd53faabd9183bef1a7667bdb7956d27f7 https://fedorahosted.org/freeipa/changeset/93c4a6388bf05a754403a888e95e4a887180d9b1 https://fedorahosted.org/freeipa/changeset/a1c25122788ec7d9d7953db840ca6067f979432d https://fedorahosted.org/freeipa/changeset/cb486136dbf86d52e75e1684d4876fd46c44aa22 https://fedorahosted.org/freeipa/changeset/0c8b04699b35ea48b897bcd3419a94dd90a07c5d https://fedorahosted.org/freeipa/changeset/efc9e66f4ddff7c0aaae5d460ab41f6026fbd32d https://fedorahosted.org/freeipa/changeset/7c068f036f64b3b5156862fc2fc5855db612ef2e https://fedorahosted.org/freeipa/changeset/2ec5d969a27b91b04a2b424d93800e68a77aa6e8 https://fedorahosted.org/freeipa/changeset/937533c48e27c5a8d4d63978d32990451a10a36a https://fedorahosted.org/freeipa/changeset/ad48697ff9a7a25f52047e3ddf68a551c89b0758 https://fedorahosted.org/freeipa/changeset/466e32f9ec817f0a8102c5dc7881b42b18267df5 https://fedorahosted.org/freeipa/changeset/6b0c6bf34435859a21936ad69d3eb984c27f9d8d More precisely in changeset: https://fedorahosted.org/freeipa/changeset/efc9e66f4ddff7c0aaae5d460ab41f6026fbd32d
Created attachment 976547 [details] Verified WebUI login Page Verified. IPA version: ------------ ipa-server-4.1.0-12.el7.x86_64
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0442.html