User: starksm 
  Date: 01/05/30 09:29:23

  Modified:    tomcat/src/main/org/jboss/tomcat/security Tag: Branch_2_2
                        JBossSecurityMgrRealm.java
  Log:
  Update the not authorized msg
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +6 -6      
contrib/tomcat/src/main/org/jboss/tomcat/security/JBossSecurityMgrRealm.java
  
  Index: JBossSecurityMgrRealm.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/tomcat/src/main/org/jboss/tomcat/security/JBossSecurityMgrRealm.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- JBossSecurityMgrRealm.java        2001/05/24 15:36:40     1.1.2.1
  +++ JBossSecurityMgrRealm.java        2001/05/30 16:29:23     1.1.2.2
  @@ -35,7 +35,7 @@
   @see org.jboss.security.SubjectSecurityManager
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.1.2.1 $
  +@version $Revision: 1.1.2.2 $
   */
   public class JBossSecurityMgrRealm extends BaseInterceptor
   {
  @@ -68,16 +68,16 @@
           this.debug = debug;
       }
   
  -     public int authenticate(Request request, Response response)
  +    public int authenticate(Request request, Response response)
       {
           /* Get the username credentials from the request. We dont check
               that they are null as the security domain may consider this
               a valid indication of an unauthenticated user requesting
               anonymous access.
           */
  -             Hashtable credentialMap = new Hashtable();
  -             SecurityTools.credentials(request, credentialMap);
  -             String username = (String) credentialMap.get("username");
  +        Hashtable credentialMap = new Hashtable();
  +        SecurityTools.credentials(request, credentialMap);
  +        String username = (String) credentialMap.get("username");
           String password = (String) credentialMap.get("password");
   
           /* Make sure the thread context class loader it set ot the servlet
  @@ -180,7 +180,7 @@
               }
               else
               {
  -                System.out.println("User: "+username+" is not authorized");
  +                System.out.println("User: "+username+" is NOT authorized, 
requiredRoles="+requiredRoles);
                   code = 401;
               }
           }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to