Bug 1122549
Summary: | LDAP user registration screen does not appear when 'Enable Login Without Roles' has value 'No' | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Sunil Kondkar <skondkar> | ||||
Component: | Core Server | Assignee: | Jirka Kremser <jkremser> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sunil Kondkar <skondkar> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | JON 3.2 | CC: | gkhachik, hrupp, jkremser, lzoubek, mfoley | ||||
Target Milestone: | ER01 | ||||||
Target Release: | JON 3.3.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1122648 (view as bug list) | Environment: | |||||
Last Closed: | 2014-12-11 14:04:54 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1122648 | ||||||
Attachments: |
|
Description
Sunil Kondkar
2014-07-23 13:30:35 UTC
Created attachment 920226 [details]
stacktrace
branch: master link: https://github.com/rhq-project/rhq/commit/12c727d8b time: 2014-07-29 17:48:51 +0200 commit: 12c727d8b96694fb60cb119b95aceeeeece02190 author: Jirka Kremser - jkremser message: [BZ 1122549] - LDAP user registration screen does not appear when 'Enable Login Without Roles' has value 'No' - SubjectManagerBean.processSubjectForLdap() was calling the SubjectManagerBean.login() where the exception was thrown, but the roles get assigned after this step. Now the login method is called with additional parameter that says 'don't do the role checking'. There was also a logical error that actually caused that no RHQ roles (based on LDAP group) were assigned at all (it was done correctly only when the log level was set to DEBUG) btw. why 2 JON bugs for the same thing? (see bug 1122648), I guess 1 should be marked as project one or a dupe. in release branch commit ca1dc3d0c072a1505c05fd9159e4ec98c0c24418 Author: Jirka Kremser <jkremser> Date: Tue Jul 29 17:48:51 2014 +0200 [BZ 1122549] - LDAP user registration screen does not appear when 'Enable Login Without Roles' has value 'No' - SubjectManager (cherry picked from commit 12c727d8b96694fb60cb119b95aceeeeece02190) Signed-off-by: Libor Zoubek <lzoubek> cc-ed # COMMENT for QA whoever will check this fix please: do check also the CLI remote connection as well as REST API (the last one is optional). e.g. `./rhq-cli.sh -u vijay -p <password> -s <jon-server>` *** Bug 1122648 has been marked as a duplicate of this bug. *** Moving to ON_QA as available to test in the following brew build: https://brewweb.devel.redhat.com//buildinfo?buildID=379025 Verified on Version : 3.3.0.ER01 Build Number : 23b3476:f3aa7e7 Works as expected. Also verified that LDAP login works as expected in CLI for registered ldap users with/without a JBoss ON mapped role. There is an issue with unregistered ldap user login with CLI. Opened another bug#1133947 for the issue. Marking this bug as verified. |