[JBoss-user] [Security & JAAS/JBoss] - Re: JAAS Subject Based Authorization

2005-05-26 Thread nmuralid
Get the following exception [java] Exception in thread "main" javax.naming.NameNotFoundException: comp not bound [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:491) [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:499) Btw, I'm trying this

[JBoss-user] [Security & JAAS/JBoss] - Re: JAAS Subject Based Authorization

2005-05-25 Thread nmuralid
Thanks for the reply I tried this using chap8-ex2 from the JBoss Guide. JNDIView only shows me the following == java:comp namespace of the EchoBean2 bean: +- env (class: org.jnp.interfaces.NamingContext) | +- security (class: org.jnp.interfaces.NamingCo

[JBoss-user] [Security & JAAS/JBoss] - JaasSecurityManangerService Mbean

2005-05-24 Thread nmuralid
As described in 8.4.2 of the Jboss examples guide, I'm trying to get hold of the current SecurityManager instance. InitialContext iniCtx = new InitialContext(); Object ref = iniCtx.lookup("java:/jaas/chap8-ex2"); I get a "jaas not bound" exception. I'm not able to find it in the JNDIView ei

[JBoss-user] [Security & JAAS/JBoss] - Re: JAAS Subject Based Authorization

2005-05-23 Thread nmuralid
Looks like setting "SubjectAttributeName" works for a Servlet, is there something similar for EJBs? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878709#3878709 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878709

[JBoss-user] [Security & JAAS/JBoss] - JAAS Subject Based Authorization

2005-05-20 Thread nmuralid
My application does Subject-based JAAS authorization calls in a standard way (Subject.doAsPriv + checkPermission). I'm looking at porting such an application into JBoss What APIs must I use to get hold of the current Subject in an EJB / WebApp? Is there any configuration using which the Subje