This discussion is archived
2 Replies Latest reply: Apr 12, 2013 2:20 AM by rukbat RSS

Weblogic JAAS - Role to Principal Mapping - how to do it dynamically

1002613 Newbie
Currently Being Moderated
Hello All,

We are using Weblogic 11g.
We create role to principal mapping in weblogic.xml as below
---------
<wls:security-role-assignment>
<wls:role-name>role1</wls:role-name>
<wls:principal-name>principal1</wls:principal-name>
</wls:security-role-assignment>
-------------------

What we need is to move this role assignment out of the xml config and do it at start up time as we need to pull this information from an external data source.
Right now, for every build we pull the info from external data source and create this file and push it to the war to be deployed.

We want to find out that can we do so programatically like we do for our Custom Authentication Provider?

If so, what is the interface in weblogic 11g?

I think it might be possible using Role Mapping Provider but i was not able to find enough info abt it.

Thanks in advance
Bobby.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points