[jboss-dev-forums] [JBoss AS 7 Development] - Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default"
Darran Lofthouse
do-not-reply at jboss.com
Fri Mar 16 13:09:09 EDT 2012
Darran Lofthouse [https://community.jboss.org/people/dlofthouse] created the discussion
"Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default""
To view the discussion, visit: https://community.jboss.org/message/724386#724386
--------------------------------------------------------------
Michael,
Would it be possible for you to show me your current realm and jaas configuration again? I have just tested this again using the latest code and can not reproduce repeated calls to the login module.
My realm definition is now: -
<security-realm name="ApplicationRealm">
<authentication>
<jaas name="other"/>
</authentication>
</security-realm>
And my domain defintiion is still: -
<security-domain name="other" cache-type="default">
<authentication>
<login-module code="Remoting" flag="optional">
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="RealmUsersRoles" flag="required">
<module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>
<module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>
<module-option name="realm" value="ApplicationRealm"/>
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
</authentication>
</security-domain>
However I am running with slightly modified code to output a stack trace each and every time the module is called at the moment I am only seeing it called twice: -
1 - As the connection is authenticated.
2 - For the first EJB call.
Updating the connection authentication to ensure that it also uses the cache is the task I am currently working on so that will be reduced down to just a single call but there must be something else we are missing if you are still seeing multiple calls so I would like to make sure we understand that so that your scenario is covered.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/724386#724386]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120316/4edd25b8/attachment.html
More information about the jboss-dev-forums
mailing list