> What I am saying is, since I have declared a domain called myDomain using
the user
> database of my system, I think it is reasonable to expect that both the
Swing client
> and the MBean client could log in using the "myDomain". As mentioned, if
my MBean
> carries out a login on the "myDomain" using, say, the same credentials as
my Swing
> client, the log in is of course successful, however, due to the way JBoss
works my
> MBean still does not get access to my EJBs. For my MBean to get access to
EJBs it
> has to use a different log in module configuration, namely the
"client-login"
> referring to the "ClientLoginModule".
But this is required for all client access, whether it comes from a swing
client
or not. The ClientLoginModule does not do any authentication, it is used by
JBoss
to assign security credentials to the current thread (or application in the
case
of your swing client). This information is then retrieved from the context
by
the invokers when they call the EJB.
You can still use your own authentication module but it must be WITH the
ClientLoginModule. If you do not use ClientLoginModule then JBoss has no
security context to pass via the invokers.
> Unfortunately I have not yet contributed code to JBoss, so I cannot tell
whether
> there is a sound design reason for the way this is. All I am saying is, I
find it
> reasonable for JBoss users to expect that when a Swing client can log in
and get
> access to the EJBs using "myDomain", so can any other client - including
MBeans.
And that should happen if they are both configured the same. Are you
certain the
credentials obtained on your client side are the ones you are seeing on the
server?
Is it possible that you have called the ClientLoginModule via another
domain?
If you are not in a server environment then the same security context is
assumed for
every thread (unless you specify the 'multi-threaded' option).
The technical reason is that JAAS does not provide any way of associating
the security
context with the current thread (or application). The ClientLoginModule
allows JBoss
to capture this information and store it for later use.
HTH,
Kev
Kevin Conner
Orchard Information Systems Limited
Newcastle Technopole, Kings Manor
Newcastle Upon Tyne, NE1 6PA. United Kingdom
Registered in England, Number 1900078
Tel: +44 (0) 191-2032536 Fax: +44 (0) 191 2302515
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user