|
Problem solved! As written in earlier posts I tried to use my own JAAS login module configuration “myDomain” for the MBean login. This is NOT in accordance with page 276 of the JBossBook_30x (see below… “the only supported mechanism”).
Solution: I simply switched from “myDomain” to “client-login” when creating my LoginContext.
However, I am curious why my original solution is not allowed by JBoss… is that a bug or a feature? – I must admit that the JBoss way works, so no problem there… still, why can’t I use my own login module configuration which carries out _real_ authentication rather than just setting the Principal (as the client-login module configuration does).
Randahl
Extract from JBossBook_30x:
The ClientLoginModule is an implementation of LoginModule for use by JBoss clients for the estab-lishment of the caller identity and credentials. This simply sets the org.jboss.security.SecurityAssoci-ation.principal to the value of the NameCallback filled in by the CallbackHandler, and the org.jboss.security.SecurityAssociation.credential to the value of the PasswordCallback filled in by the CallbackHandler. This is the only supported mechanism for a client to establish the current thread's caller.
-----Original Message-----
Post a testcase to sourceforge attached to a bug report.
xxxxxxxxxxxxxxxxxxxxxxxx
|
- [JBoss-user] How to log in from an MBean Randahl Fink Isaksen
- Re: [JBoss-user] How to log in from an MBean Scott M Stark
- RE: [JBoss-user] How to log in from an MBean Randahl Fink Isaksen
- Re: [JBoss-user] How to log in from an M... Scott M Stark
- Re: [JBoss-user] How to log in from ... Randahl Fink Isaksen
- Re: [JBoss-user] How to log in ... Scott M Stark
- RE: [JBoss-user] How to log... Randahl Fink Isaksen
- Re: [JBoss-user] How to... Scott M Stark
- RE: [JBoss-user] How to... Randahl Fink Isaksen
- RE: [JBoss-user] How to log in from an MBean Randahl Fink Isaksen
- RE: [JBoss-user] How to log in from an MBean Kevin Conner
