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:19:21 UTC

svn commit: r1503198 - /manifoldcf/branches/CONNECTORS-737/connectors/ldap/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/ldap/LDAPAuthority.java

Author: kwright
Date: Mon Jul 15 12:19:21 2013
New Revision: 1503198

URL: http://svn.apache.org/r1503198
Log:
Make LDAP authority password secured.

Modified:
    manifoldcf/branches/CONNECTORS-737/connectors/ldap/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/ldap/LDAPAuthority.java

Modified: manifoldcf/branches/CONNECTORS-737/connectors/ldap/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/ldap/LDAPAuthority.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-737/connectors/ldap/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/ldap/LDAPAuthority.java?rev=1503198&r1=1503197&r2=1503198&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-737/connectors/ldap/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/ldap/LDAPAuthority.java (original)
+++ manifoldcf/branches/CONNECTORS-737/connectors/ldap/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/ldap/LDAPAuthority.java Mon Jul 15 12:19:21 2013
@@ -538,6 +538,7 @@ public class LDAPAuthority extends org.a
     } catch (ManifoldCFException ex) {
       //ignore
     }
+    fBindPass = out.mapPasswordToKey(fBindPass);
 
     if (tabName.equals(Messages.getString(locale, "LDAP.LDAP"))) {
       out.print(
@@ -676,7 +677,7 @@ public class LDAPAuthority extends org.a
     copyParam(variableContext, parameters, "ldapBindUser");
     String bindPass = variableContext.getParameter("ldapBindPass");
     if (bindPass != null) {
-      parameters.setParameter("ldapBindPass", ManifoldCF.obfuscate(bindPass));
+      parameters.setObfuscatedParameter("ldapBindPass", variableContext.mapKeyToPassword(bindPass));
     }
 
     return null;