I am trying to get jbossmq to use my EJB's Security information to create,
write and read topics. I have 2 Security Domains:
1. MyEJBSecurityDomain configured with an LdapLoginModule
|
| 2. jbossmq configured with
|
| | <application-policy name="jbossmq">
| | <authentication>
| | <login-module
code="com.brockhousecooper.tw.ejb.server.authentication.CallerIdentityLoginModule"
flag="required">
| | <module-option name =
"managedConnectionFactoryName">jboss.jca:name=JmsXA,service=TxCM</module-option>
| | </login-module>
| | </authentication>
| | </application-policy>
| |
|
|
|
| I use this code to login from within an MBean and create a TopicConnection
|
| | lc = new LoginContext("client-login", handler);
| | lc.login();
| | log.info("principal before: " + SecurityAssociation.getPrincipal());
| | connection = conFactory.createTopicConnection();
| |
|
| the log prints "principal before: admin" before creating the topic,
however, jbossmq's Security Interceptor reports:
| [ServerSecurityInterceptor] Autenticating user null/null
| and the calls GetPrincipalInfoAction.getPrincipal() and
GetPrincipalInfoAction.getCredential() inside CallerIndentityLoginModule both
return null.
|
| Are my login modules badly configured or is this a bug in
CallerIdentityLoginModule?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857900#3857900
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857900
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user