Hi Peter,
On Thursday 11 January 2001 00:26, Peter Braswell wrote:
> Oleg,
> YOU'RE a GENIUS!!
>
> It worked!!!
:-)
I am glad that it worked for you at long last.
Thank you for adding security test, I hope that the number of
security related questions will now decrease.
If you also wrote/compiled JBoss security docs for the web site...
:-)
> Okay, now how do you set the role on the client-side?
The role mapping is set on server, no way to set it on client side.
SimpleServerLoginModule that is used in the test now
assigns to each user one or two roles:
if user == password
roles = {"user", "guest"}
else if password == null
roles = {"guest"}
else
authentication fails
(wow, I have invented a new programming language!
Looks like Python though :)
Frankly speaking, I didn't test if the role mapping works, because I
don't use it.
If you added a role mapping test, that would be really great.
> Last question, I promise!
:-)
Oh, ask more questions, no problem.
Regards,
Oleg
> cheers, (and thanks!)
> peter
>
> --- Oleg Nitz <[EMAIL PROTECTED]> wrote:
> > Peter,
> >
> > No problem, just put jboss-client.jar from
> > JBOSS_RELEASE_2.0 to
> > jbosstest/src/lib and build tests. Should work.
> > I guess the problem is that you haven't
> > jboss-client.jar in jbosstest.
> >
> > Oleg
> >
> > Peter Braswell wrote:
> > > Oleg,
> > > I understand what you are saying here. I did
> >
> > notice
> >
> > > that quite a bit of security stuff has been
> >
> > modified
> >
> > > in CVS lately... however!
> > >
> > > I'm trying to stick with a pure JBOSS_RELEASE_2.0
> > > environment, thus all my client side .jars as well
> >
> > as
> >
> > > the server implementation is purely 2_0.
> > >
> > > So downloading the latest/greatest server/jars may
> > > well solve the problem but my goal is really to
> >
> > see
> >
> > > what level of EJB 1.1 conformity 2.0 has reached
> >
> > and
> >
> > > then document any issues... so,
> > >
> > > What I'll do is test against the latest version of
> > > jboss and see what happens. If the problem goes
> >
> > away
> >
> > > I'll just chalk it up to a bug in 2.0 and that
> >
> > will be
> >
> > > that.
> > >
> > > Oleg, thanks so much for your help. I hope I'm
> >
> > not
> >
> > > being too burdensome!
> > >
> > > cheers,
> > > peter
> > >
> > > --- Oleg Nitz <[EMAIL PROTECTED]> wrote:
> > >> Hi Peter,
> > >>
> > >> During the first commit I haven't added
> > >> jboss-client.jar to jbosstest
> > >> module, because my version of it didn't
> >
> > correspond
> >
> > >> to jboss module
> > >> state in CVS. I hoped that you have it.
> > >> Later I have updated jboss module and then added
> > >> jboss-client.jar to
> > >> jbosstest module. Please, update both modules and
> > >> try once more.
> > >>
> > >> Oleg
> > >>
> > >> Peter Braswell wrote:
> > >> > A bit closer with the JAAS stuff. Now I get
> >
> > the
> >
> > >> > following on the client side. I've got a
> > >>
> > >> full-open
> > >>
> > >> > policy file and I tried instantiating an
> > >>
> > >> RMISecurity
> > >>
> > >> > object in the client. No luck.
> > >> >
> > >> > Oleg: The container configuration in the
> >
> > jboss.xml
> >
> > >> > didn't work, I got an unsupported container
> > >> > configuration exception??? Moved the two lines
> >
> > in
> >
> > >> the
> > >>
> > >> > .xml relating to security into the
> > >>
> > >> jbossstandard.xml
> > >>
> > >> > and I got a bit further. EJX seemed to be a
> >
> > bit
> >
> > >> > hostile for me...?
> > >> >
> > >> > Here's the exception:
> > >> >
> > >> > Checking for an RMI security manager...
> > >> > Setting LoginContext callback...
> > >> > Setting userid to jcts
> > >> > Setting password to jcts
> > >> > Obtain home interface
> > >> > java.lang.reflect.UndeclaredThrowableException:
> > >> > java.lang.ClassNotFoundException
> > >> > .SimplePrincipal (no security manager: RMI
> >
> > class
> >
> > >> > loader disabled)
> > >> > at
>
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unkn
>ow
>
> > >> > at
>
> sun.rmi.transport.StreamRemoteCall.executeCall(Unknown
>
> > >> > Source)
> > >> > at
> > >>
> > >> sun.rmi.server.UnicastRef.invoke(Unknown
> > >>
> > >> > Source)
> > >> > at
>
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeH
>om
>
> > >> > at
>
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.ja
>va
>
> > __________________________________________________
> >
> > >> > Do You Yahoo!?
> > >> > Yahoo! Photos - Share your holiday photos
> >
> > online!
> >
> > >> > http://photos.yahoo.com/
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Photos - Share your holiday photos online!
> > > http://photos.yahoo.com/
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/