Hi all.

I'm trying to set up the situation where client authentication is NOT required 
(client does not need to supply username/password) but EJB operations are still 
done over SSL.

I have the following config:

in server.policy:


  | grant {
  |    // Allow everything for now
  |    permission java.security.AllPermission;
  | };
  | 

in jboss-service.xml I have configured a security domain


  |    <mbean code="org.jboss.security.plugins.JaasSecurityDomain" 
name="jboss.security:service=JaasSecurityDomain,domain=simpleSecureSB">
  |      <constructor>
  |        <arg type="java.lang.String" value="simpleSecureSB"/>
  |      </constructor>
  |      <attribute name="KeyStoreURL">test.keystore</attribute>
  |      <attribute name="KeyStorePass">test</attribute>
  |    </mbean>
  | 

in login-config.xml I have set up the security domain to NOT require a username 
and password (at least I think I have):


  |     <application-policy name="simpleSecureSB">
  |       <authentication>
  |         <login-module 
code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="optional">
  |           <module-option 
name="unauthenticatedIdentity">anonymous</module-option>
  |         </login-module>
  |       </authentication>
  |     </application-policy>
  | 

and yet when I run the client I get the following error:


  | Insufficient method permissions, principal=null, method=create, 
interface=HOME, requiredRoles=[], principalRoles=[]
  | 

which doesn't make any sense at all.  If there are no required roles, what's 
the problem?

Cheers,

Dave

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3862218#3862218

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3862218


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to