ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » Security error when mediation flow calls mediation flow

Post new topic  Reply to topic
 Security error when mediation flow calls mediation flow « View previous topic :: View next topic » 
Author Message
petmor
PostPosted: Fri Apr 16, 2010 11:03 pm    Post subject: Security error when mediation flow calls mediation flow Reply with quote

Apprentice

Joined: 20 Jun 2002
Posts: 45
Location: Pasadena, CA

Within a mediation "sub" flow, we are using the following code to expand a WPS environment variable:

install_root = (String) as.invoke((javax.management.ObjectName) result.iterator().next(), "expandVariable", new Object[] {"${"+"USER_INSTALL_ROOT"+"}"}, new String[] {"java.lang.String"});

This works fine when testing the mediation "sub" flow directly using the WID "Test component" utility. The variable expands and things work as expected.

We have made this mediation flow available to another "master" mediation flow by referencing it through a Library.

The "master" mediation flow has 4 nodes, export, mediation and two imports. We are able to test from the "master" mediation node with no errors ... the "sub" mediation flow is called successfully, and all is good. But when we test from the "master" mediation flow export node, or test from outside WID by sending a request to the "master" mediation using soapUI or LISA, we get the following error when we enter the "sub" mediation and attempt to expand a WPS environment variable:

CWSXM0201E: Exception returned by mediation flow for component ESBM_EIS_Utility in module ESBM_EIS_Utility: javax.management.JMRuntimeException: ADMN0022E: Access is denied for the expandVariable operation on AdminOperations MBean because of insufficient or empty credentials.

Trace log provided the following message:

[4/16/10 23:42:11:501 PDT] 00000372 SystemOut O ESBM_EIS_Utility: Begin process for config file access
[4/16/10 23:42:11:501 PDT] 00000372 RoleBasedAuth A SECJ0305I: The role-based authorization check failed for admin-authz operation AdminOperations:expandVariable:java.lang.String. The user UNAUTHENTICATED (unique ID: unauthenticated) was not granted any of the following required roles: operator, administrator.

We found that we can eliminate the error by turning off Security using the Admin console, but we don't want to turn off security at the server level.

Are there any properties or settings we can modify to allow our "sub" mediation to do it's job when called by another mediation? Not sure if we need to grant "operator" role to the "master" mediaton or the "sub" mediation, or how we would go about doing it.

We are running WID/WPS 6.2 and have the mediation flows built within separate mediation modules. We are experienced with Message Broker but new to WID. Any help would be appreciated. Thanks!

Peter
Back to top
View user's profile Send private message Send e-mail AIM Address
autorun
PostPosted: Fri Apr 23, 2010 3:11 pm    Post subject: Revolved Reply with quote

Apprentice

Joined: 02 Feb 2002
Posts: 29

For the beneift of other MQSeries.net fellows, the issue was resolved based on this IBM article.

http://www.ibm.com/developerworks/websphere/library/techarticles/0602_charpentier/0602_charpentier.html
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » Security error when mediation flow calls mediation flow
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.