| Summary: | [ipa webui] Reset password link is enabled for a user without permission to change it | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Namita Soman <nsoman> |
| Component: | ipa | Assignee: | Rob Crittenden <rcritten> |
| Status: | CLOSED ERRATA | QA Contact: | Namita Soman <nsoman> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.2 | CC: | jgalipea, mkosek, mvarun, pvoborni, xdong |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-3.0.0-1.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-21 09:09:35 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Namita Soman
2012-01-25 15:23:39 UTC
Same behaviour in Hosts tab. If user has no permission, links to delete key, unprovision, set otp, and new cert are enabled I don't think it is that easy to check if the logged user has a privilege to reset somebody else's password. WebUI would have to evaluate all configured ACIs in the same way as dirsrv does. CLI does it in the same way - anyone can call command to reset the password, but if the dirsrv rejects the change an appropriate error message is thrown: # klist Ticket cache: FILE:/tmp/krb5cc_0 Default principal: fbar.BOS.REDHAT.COM Valid starting Expires Service principal 01/27/12 04:15:53 01/28/12 04:15:53 krbtgt/IDM.LAB.BOS.REDHAT.COM.BOS.REDHAT.COM [root@vm-068 ~]# ipa passwd fbar2 New Password: Enter New Password again to verify: ipa: ERROR: Insufficient access: Insufficient access rights If the error message given in the WebUI is clear and understandable I'd propose to close this ticket as WONTFIX. The WebUI uses the output of --rights to determine what should be enabled. It may be that we aren't returning rights for userPassword or the UI does not have the Reset Password link tied into that, but it should be possible to know this in advance. Ah, you are right. I will create an upstream ticket so that it can be investigated. Upstream ticket: https://fedorahosted.org/freeipa/ticket/2318 Fixed upstream bf9234dbd1911a6e720470844ad053053144cc45 . Note: 'resete password' link was moved to action panel which is on the right in the same section of the page as original link. regression test is automated Verifying ipa version: ipa-server-3.0.0-8.el6.x86_64 how to verify: 1. Add a permission which has filter='(givenname=xyz)',permissions=write, attr=carlicense 2. Add a privilege with this permission, add a role with this privilege,create a user abc with this role 3. create user xyz with givenname=xyz 4.login as user abc 5.verify that the password reset is disabled for user xyz. 6.login as admin 7.remove user abc xyz 8.remove permission,privilege,role xdong verified using steps above 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. http://rhn.redhat.com/errata/RHSA-2013-0528.html |