Hi all,

I'm currently receiving the following warning within my JBoss log file:

"11:16:49,272 WARN  [EnterpriseContext] no match found for security role
TestUser in the deployment descriptor."

and I'm struggling to understand why! Background info follows, I hope
someone can tell me if I've done something wrong.

Many Thanks
Sujay Jayaram

IT: Interest Rate Derivatives
Royal Bank of Scotland
135 Bishopsgate
London 
EC2M 3UR

------------- Background Info ----------------------------------------------

1. This warning occurs when I call
"sessionContext.isCallerInRole("TestUser")" on a session bean called
"RestrictedAccessEJB"

2. The logged in user is given the "TestUser" role by my custom JAAS login
module:

  protected Group[] getRoleSets() {
    
    // TEST CODE
    Group[] groups = {new SimpleGroup("Roles")};
    if( (getUsername() != null) &&
getUsername().equals("RatesServicesTestUser")){
      SimplePrincipal role = new SimplePrincipal("TestUser");
      groups[0].addMember(role);
    }
    return groups;
  }

3. ejb-jar contains the following lines:

<session >
<ejb-name>RestrictedAccess</ejb-name>
        ...
        <security-role-ref>
                <role-name>TestUserName</role-name>
                <role-link>TestUser</role-link>
        </security-role-ref>
</session>

...

<!-- Assembly Descriptor -->
<assembly-descriptor >
        <security-role>
         <description><![CDATA[description not supported yet by
ejbdoclet]]></description>
         <role-name>TestUser</role-name>
      </security-role>

   <method-permission >
      <role-name>TestUser</role-name>
      <method >
         <description><![CDATA[Authenticate the supplied
user.]]></description>
         <ejb-name>RestrictedAccess</ejb-name>
         <method-intf>Remote</method-intf>
         <method-name>foo</method-name>
         <method-params>
         </method-params>
      </method>

        ...


***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312.  Registered Office: 
36 St Andrew Square, Edinburgh EH2 2YB.                                      
Authorised and regulated by the Financial Services Authority     
 
This e-mail message is confidential and for use by the                      
addressee only. If the message is received by anyone other             
than the addressee, please return the message to the sender          
by replying to it and then delete the message from your                    
computer. Internet e-mails are not necessarily secure. The               
Royal Bank of Scotland plc does not accept responsibility for          
changes made to this message after it was sent.                              
                                                                                       
                 
Whilst all reasonable care has been taken to avoid the                   
transmission of viruses, it is the responsibility of the recipient to        
ensure that the onward transmission, opening or use of this             
message and any attachments will not adversely affect its               
systems or data.  No responsibility is accepted by The Royal           
Bank of Scotland plc in this regard and the recipient should carry   
out such virus and other checks as it considers appropriate.           
                                                                                       
                        Visit our websites at:                                         
                                 
http://www.rbs.co.uk/CBFM                                                        
http://www.rbsmarkets.com                                                         
                                                                                       
                
********************************************************************************



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to