I lost and then recreated users.properties - I probably missed a step as I get 
a security error.  I guess I dont really understand the full relationships for 
security between the client and the server...

I have the users.properties and roles.properties in the .ear file

java.rmi.AccessException: SecurityException; nested exception is: 
        java.lang.SecurityException: Insufficient method permissions, 
principal=200, ejbName=SecurityBean, method=find, interface=HOME, 
requiredRoles=[osrmtAdmin], principalRoles=[]   at 
org.jboss.ejb.plugins.LogInterceptor.handleException

auth.conf
client-login {
    org.jboss.security.ClientLoginModule required;
};


client jndi.properties
java.naming.factory.initial=org.jboss.security.jndi.LoginInitialContextFactory
#org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://127.0.0.1:1099
java.naming.factory.url.pkgs=org.jboss.naming.client
java.naming.security.principal=200
java.naming.security.credentials=j2ee
java.naming.security.protocol=client-login
j2ee.clientName=osrmt-client


users.properties
200=j2ee

roles.properties
200=JBossAdmin,HttpInvoker
,osrmtAdmin


ejb-jar.xml snippet

- <method-permission>
  <role-name>osrmtAdmin</role-name> 
- 
  <ejb-name>SystemBean</ejb-name> 
  <method-name>*</method-name> 
  
  </method-permission>

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945153#3945153

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945153


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to