web services - Cannot see WebService Role in WebLogic Console -


i trying automate following steps through wls console :

a. in weblogic console's home page, click on deployments link form left, find "gateway-management-service"

b. expand, "gateway-management-service" , click on "gatewaymanagementservice" ( webservice module )

c. click on security tab roles tab.

d. click "new" in "web service module scoped roles" section.

e. in new windows, set name "special ws role enforcement" , click ok.

f. click on link "special ws role enforcement".

g. in new page, click on "add conditions" , select "user" in new page , click next.

h. in new page, enter "csr.gatewaywsuser" in "user argument name", click "add"

i. click on finish.

j. save.

i have test.py as:

connect('weblogic', 'welcome123', 'localhost:7001'); realm=cmo.getsecurityconfiguration().getdefaultrealm(); xacmlatz = realm.lookupauthorizer('xacmlauthorizer'); xacmlrm = realm.lookuprolemapper('xacmlrolemapper'); resourceid = 'type=<webservices>, application=gateway-management-service, contextpath=gwy_management_service, webservice=gatewayoidmanagerservice' xacmlatz.createpolicy(resourceid, "rol(special ws role enforcement )"); xacmlrm.createrole(resourceid, "special ws role enforcement ", "usr(csr.obigatewaywsuser )") 

i run script :

$mw_home/oracle_common/common/bin/wlst.sh test.py 

my problem : after executing above script, when go console -> deployments -> gateway-management-service -> gatewaymanagementservice -> security tab -> roles subtab, don't see role. if try run script again fail weblogic.management.utils.alreadyexistsexception: [security:090320]failed create role

what doing wrong?

i have tried bouncing both managed , admin server after running test.py see if helps, no success.

you might doing correctly. have same problem (roles not being displayed in console when set wlst script). think weblogic bug.

that said, still have method verify role has been set correctly.

in weblogic console go to:

security realms -> myrealm -> migration -> export 

and export directory of choice. can open xacmlauthorizer.dat , xacmlrolemapper.dat , see if role exists. you'll want open xml editor or browser it's hard read.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -