hgomez      2002/09/19 02:03:15

  Modified:    src/share/org/apache/tomcat/modules/config
                        MxInterceptor.java
  Log:
  Set the user/pwd for authentification
  
  Revision  Changes    Path
  1.5       +7 -2      
jakarta-tomcat/src/share/org/apache/tomcat/modules/config/MxInterceptor.java
  
  Index: MxInterceptor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/config/MxInterceptor.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MxInterceptor.java        19 Sep 2002 07:58:07 -0000      1.4
  +++ MxInterceptor.java        19 Sep 2002 09:03:15 -0000      1.5
  @@ -154,9 +154,14 @@
               
               mserver.setAttribute(serverName, new Attribute("Port", new 
Integer(port)));
   
  +                     // use authentication if user/password set
               if( auth!=null && user!=null && password!=null) 
                   mserver.setAttribute(serverName, new 
Attribute("AuthenticationMethod", auth));
  -                        
  +
  +                     // add user names
  +                     mserver.invoke(serverName, "addAuthorization", new Object[] 
{user, password}, 
  +                                    new String[] {"java.lang.String", 
"java.lang.String"});
  +
                ObjectName processorName = new ObjectName("Http:name=XSLTProcessor");
               mserver.createMBean("mx4j.adaptor.http.XSLTProcessor", processorName, 
null);
                        mserver.setAttribute(serverName, new 
Attribute("ProcessorName", processorName));
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to