]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1599] NTLM proxy no longer works
authorOlivier Lamy <olamy@apache.org>
Sat, 4 Feb 2012 22:04:51 +0000 (22:04 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 4 Feb 2012 22:04:51 +0000 (22:04 +0000)
add bean attribute and modify ui.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1240622 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-configuration/pom.xml
archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/NetworkProxy.java
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/include/networkProxyForm.jspf
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/networkProxies.jsp

index 0f206357c98287509095825e820aef5cfcdbcbe8..b50657070f425edd47a4ef027ea2fca046cf98a7 100644 (file)
           </execution>
         </executions>
         <configuration>
-          <version>1.4.0</version>
+          <version>1.4.1</version>
           <models>
             <model>src/main/mdo/configuration.mdo</model>
           </models>
index 7a0982aa4e80820e5b5ef5a16718b69299a06132..2158d809ec7169d0440ab1e24d83ccbdcc7f0bda 100644 (file)
           </description>
           <type>String</type>
         </field>
+        <field>
+          <name>useNtlm</name>
+          <version>1.0.0+</version>
+          <description>
+            Use ntlm authentification.
+          </description>
+          <type>boolean</type>
+          <defaultValue>false</defaultValue>
+        </field>
       </fields>
       <codeSegments>
         <codeSegment>
index 6cc9f7974affedc2256757f3f6fad16baf3d8122..7df353dc05cf127a9750417cef1b3246b1fba8ab 100644 (file)
@@ -57,6 +57,13 @@ public class NetworkProxy
      */
     private String password;
 
+    /**
+     * @since 1.4-M3
+     *
+     * use NTLM proxy
+     */
+    private boolean useNtlm;
+
     public NetworkProxy()
     {
         // no op
@@ -132,6 +139,16 @@ public class NetworkProxy
         this.password = password;
     }
 
+    public boolean isUseNtlm()
+    {
+        return useNtlm;
+    }
+
+    public void setUseNtlm( boolean useNtlm )
+    {
+        this.useNtlm = useNtlm;
+    }
+
     @Override
     public boolean equals( Object o )
     {
@@ -173,6 +190,7 @@ public class NetworkProxy
         sb.append( ", port=" ).append( port );
         sb.append( ", username='" ).append( username ).append( '\'' );
         sb.append( ", password='" ).append( password ).append( '\'' );
+        sb.append( ", useNtlm=" ).append( useNtlm );
         sb.append( '}' );
         return sb.toString();
     }
index 9446e36ecaf7ea36d460da55d018bd1e8a727435..725eebbc7d288e79feea090500d54d69f16f42d1 100644 (file)
@@ -25,3 +25,4 @@
 <s:textfield name="proxy.port" label="Port" size="5" required="true" />
 <s:textfield name="proxy.username" label="Username" size="25" required="false" />
 <s:password name="proxy.password" label="Password" size="25" required="false" />
+<s:checkbox name="proxy.useNtlm" label="Use ntlm"/>
index 05bff902d13499ad3a3f021ce114b3cb9e620de6..e17719cfabdbdfea9bae2ca8c3da465bceea7150 100644 (file)
             </tr>
           </c:if>
         </c:if>
+        <tr>
+          <th>Use NTLM</th>
+          <td><c:out value="${proxy.useNtlm}" /></td>
+        </tr>
       </table>
 
       </div>