I am trying to migrate a Web App to run on JBoss from WebSphere. We have everything working except the security roles.
In WebSphere, we had the security roles setup in an ibm-application-bnd.xmi file that was located in the applicationEAR\META-INF folder.
Does anyone know how to manage the LDAP security roles for the JBoss server?
An sample of the ibm-application-bnd.xmi file follows:
<?xml version="1.0" encoding="UTF-8"?> <applicationbnd:ApplicationBinding xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:applicationbnd="applicationbnd.xmi" xmi:id="ApplicationBinding_1103565947194"> <authorizationTable xmi:id="AuthorizationTable_1103565947194"> <authorizations xmi:id="RoleAssignment_1108662566127"> <groups xmi:id="Group_1159457809140" name="App.Prod.~~~.BranchManager"/> <groups xmi:id="Group_1159457809141" name="App.Prod.~~~.BranchManager"/> <groups xmi:id="Group_1159457809142" name="App.Prod.~~~.BranchManager"/>
If you are using jboss 5, take a look at the jboss-app_5_0.dtd . This can be bundled under EAR/META-INF. Check out the elements in that dtd especially security domain and the security role elements.