manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1503223 - /manifoldcf/branches/CONNECTORS-737/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java
Date Mon, 15 Jul 2013 13:03:54 GMT
Author: kwright
Date: Mon Jul 15 13:03:54 2013
New Revision: 1503223

URL: http://svn.apache.org/r1503223
Log:
Make wiki connector UI-password-secure

Modified:
    manifoldcf/branches/CONNECTORS-737/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java

Modified: manifoldcf/branches/CONNECTORS-737/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-737/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java?rev=1503223&r1=1503222&r2=1503223&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-737/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java
(original)
+++ manifoldcf/branches/CONNECTORS-737/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java
Mon Jul 15 13:03:54 2013
@@ -1012,6 +1012,8 @@ public class WikiConnector extends org.a
     String pass = parameters.getObfuscatedParameter(WikiConfig.PARAM_PASSWORD);
     if (pass == null) {
       pass = "";
+    } else {
+      pass = out.mapPasswordToKey(pass);
     }
     String domain = parameters.getParameter(WikiConfig.PARAM_DOMAIN);
     if (domain == null) {
@@ -1031,6 +1033,8 @@ public class WikiConnector extends org.a
     String accessPassword = parameters.getObfuscatedParameter(WikiConfig.PARAM_ACCESSPASSWORD);
     if (accessPassword == null)
       accessPassword = "";
+    else
+      accessPassword = out.mapPasswordToKey(accessPassword);
 
     // Email tab
     if (tabName.equals(Messages.getString(locale,"WikiConnector.Email")))
@@ -1183,7 +1187,7 @@ public class WikiConnector extends org.a
 
     String pass = variableContext.getParameter("serverpass");
     if (pass != null) {
-      parameters.setObfuscatedParameter(WikiConfig.PARAM_PASSWORD, pass);
+      parameters.setObfuscatedParameter(WikiConfig.PARAM_PASSWORD, variableContext.mapKeyToPassword(pass));
     }
 
     String domain = variableContext.getParameter("serverdomain");
@@ -1198,7 +1202,7 @@ public class WikiConnector extends org.a
 
     String accessPassword = variableContext.getParameter("accesspassword");
     if (accessPassword != null) {
-      parameters.setObfuscatedParameter(WikiConfig.PARAM_ACCESSPASSWORD, accessPassword);
+      parameters.setObfuscatedParameter(WikiConfig.PARAM_ACCESSPASSWORD, variableContext.mapKeyToPassword(accessPassword));
     }
 
     String accessRealm = variableContext.getParameter("accessrealm");



Mime
View raw message