Bug 1380706 - JBoss ON user's roles do not match LDAP mapping if user is logged in using JBoss ON CLI
Summary: JBoss ON user's roles do not match LDAP mapping if user is logged in using JB...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Security
Version: JON 3.3.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR02
: JON 3.3.10
Assignee: Simeon Pinder
QA Contact: Filip Brychta
URL:
Whiteboard:
Depends On: 1380709
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-30 11:49 UTC by bkramer
Modified: 2019-12-16 06:57 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-02-16 03:16:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1542125 0 high CLOSED JBoss ON user's roles do not match LDAP mapping if user is logged in using REST API 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2018:0325 0 normal SHIPPED_LIVE Red Hat JBoss Operations Network 3.3.10 bug fix update 2018-02-16 08:16:27 UTC

Internal Links: 1542125

Description bkramer 2016-09-30 11:49:56 UTC
Description of problem:
The user's roles should match the LDAP mapping regardless of how users are logged in. This is the case with user logged in using JBoss ON UI. However, if the user is logged in using JBoss ON CLI or REST API this will not be the case.

Version-Release number of selected component (if applicable):
JBoss ON 3.3.6

How reproducible:
Always

Steps to Reproduce:
1. Create LDAP user (for instance: myTest) that does not belong to JON LDAP Group but belongs to some other LDAP groups;
2. In JBoss ON UI, logged in as "rhqadmin" user, change "All Resources" role to include JON LDAP Group (JON UI -> Administration -> Roles -> LDAP Group);
3. Also, add newly created LDAP user to "All Resources" role (JON UI -> Administration -> Roles -> Users;
4. Save the changes and log out;
5. Using newly created LDAP user and JBoss ON CLI log in to JBoss ON and try something like:

******************************************
myTest@localhost:7080$ var criteria = ResourceCriteria();
myTest@localhost:7080$ criteria.clearPaging();
myTest@localhost:7080$ criteria.addFilterPluginName("JBossAS7");
myTest@localhost:7080$ criteria.addFilterResourceTypeName('JBossAS7 Standalone Server');
myTest@localhost:7080$ var resources = ResourceManager.findResourcesByCriteria(criteria);
myTest@localhost:7080$ resources.size();
2
******************************************

6. Confirm that LDAP user can see resources;
7. Using the same user (myTest) try to log in to JBoss ON UI;
8. Confirm that this user (myTest) does not have permission to see any of the resources;

Actual results:
JBoss ON user's roles match LDAP mapping only when user is logged in through JBoss ON UI; For users logged in via JBoss ON CLI or REST API this is not a case.


Expected results:
JBoss ON user's roles have to match LDAP mapping regardless of how user's are logged in.

Additional info:

Comment 9 Simeon Pinder 2018-01-30 15:37:20 UTC
Moving to ON_QA.

JON 3.3.10 CR01 artifacts are available for test from here:
http://download.eng.bos.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/166/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip
 *Note: jon-server-patch-3.3.0.GA.zip maps to CR01 build of
 jon-server-3.3.0.GA-update-10.zip.

Comment 22 Filip Brychta 2018-02-05 15:39:57 UTC
Triage: Larry, Simeon, Filip: Because of time pressure and REST API issues which are still visible, this BZ will address only CLI issues. Fix for REST will be tracked in new bz targeted for JON 3.3.11

Comment 25 Simeon Pinder 2018-02-06 11:13:14 UTC
Moving to ON_QA.

JON 3.3.10 CR02 artifacts are available for test from here:
http://download.eng.bos.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/169/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip
 *Note: jon-server-patch-3.3.0.GA.zip maps to CR02 build of
 jon-server-3.3.0.GA-update-10.zip.

Comment 29 errata-xmlrpc 2018-02-16 03:16:33 UTC
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://access.redhat.com/errata/RHBA-2018:0325


Note You need to log in before you can comment on or make changes to this bug.