Re: [JBoss-user] JUnit test of a EJB using JAAS

2002-07-02 Thread Emerson Cargnin - MSA
I did it... >- auth.conf file : > >other >{ > org.jboss.security.ClientLoginModule required; >}; code: >lc = new LoginContext("other", handler); but it don't work... I read in JBoss3.0QuickStart page 54 the following : "Note that thi

Re: [JBoss-user] JUnit test of a EJB using JAAS

2002-07-02 Thread marius
You probably need a client login module spesified in auth.conf, but it seems like you have one. But I think the file has to refer to the sec. domain you want to login to, like the file we use: // Connect client's login module, that infects the // EJB transport layer with the application caller

Re: [JBoss-user] JUnit test of a EJB using JAAS

2002-07-02 Thread Emerson Cargnin - MSA
[EMAIL PROTECTED] wrote: > Is the callback called? Do you have a security domain set up? yes, in tomcat embedded it works all right... do I have to refer from the junit test to the security domain??? jboss-security.xml: java:/jaas/sicredi > > On Mon, Jul 01, 2002 at 06:39:24PM -0300, Em

Re: [JBoss-user] JUnit test of a EJB using JAAS

2002-07-02 Thread marius
Is the callback called? Do you have a security domain set up? On Mon, Jul 01, 2002 at 06:39:24PM -0300, Emerson Cargnin - MSA wrote: > no sugestion? > > Emerson Cargnin - MSA wrote: > > > My problem is to make a junit test to access the EJB's using security. I > > tried to use the tests from CV

Re: [JBoss-user] JUnit test of a EJB using JAAS

2002-07-01 Thread Emerson Cargnin - MSA
no sugestion? Emerson Cargnin - MSA wrote: > My problem is to make a junit test to access the EJB's using security. I > tried to use the tests from CVS. My server uses ldap to authenticate > users. From embbeded tomcat it works allright, i did the following to > access through junit task : > >

[JBoss-user] JUnit test of a EJB using JAAS

2002-07-01 Thread Emerson Cargnin - MSA
My problem is to make a junit test to access the EJB's using security. I tried to use the tests from CVS. My server uses ldap to authenticate users. From embbeded tomcat it works allright, i did the following to access through junit task : - ant build.xml file that calls junit test: