You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2013/07/15 14:58:47 UTC

svn commit: r1503218 - /manifoldcf/branches/CONNECTORS-737/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java

Author: kwright
Date: Mon Jul 15 12:58:47 2013
New Revision: 1503218

URL: http://svn.apache.org/r1503218
Log:
Make SharePoint connector UI-password-secure

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

Modified: manifoldcf/branches/CONNECTORS-737/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-737/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java?rev=1503218&r1=1503217&r2=1503218&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-737/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java (original)
+++ manifoldcf/branches/CONNECTORS-737/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java Mon Jul 15 12:58:47 2013
@@ -2103,6 +2103,8 @@ public class SharePointRepository extend
     String password = parameters.getObfuscatedParameter("password");
     if (password == null)
       password = "";
+    else
+      password = out.mapPasswordToKey(password);
 
     String keystore = parameters.getParameter("keystore");
     IKeystoreManager localKeystore;
@@ -2263,7 +2265,7 @@ public class SharePointRepository extend
 
     String password = variableContext.getParameter("password");
     if (password != null)
-      parameters.setObfuscatedParameter("password",password);
+      parameters.setObfuscatedParameter("password",variableContext.mapKeyToPassword(password));
 
     String keystoreValue = variableContext.getParameter("keystoredata");
     if (keystoreValue != null)