VERIFIED SOLUTION i

How to use encrypted password while integrating with LDAP in E-messaging for EngageOne



 

E-messaging allows users to login using LDAP authentication. The configuration for the same needs to be set in security.xml. To enable LDAP with E-messaging, please view How to configure E-messaging with LDAP.

In security.xml we can either give plain text as password for LDAP server or as encrypted text. To provide encrypted password, ensure to use 1.4M3 or higher before following steps:

1) Use AESEncryption.bat file to produce encrypted text. This batch is made available along with E-messaging. Refer "How to use AESEncryption.bat".

 <bean id="initialDirContextFactory"
        class="org.acegisecurity.ldap.DefaultInitialDirContextFactory">
        <constructor-arg value="LDAP://eocomm:389"/>
        <property name="managerDn">
            <value>CN=Administrator,CN=Users,DC=Support,DC=noida,DC=com</value>
        </property>
        <property name="managerPassword">
            <value>Password1</value>
        </property>
    </bean>

2) Use generated password text and replace the same with plain text in security.xml.

 <bean id="initialDirContextFactory"
        class="org.acegisecurity.ldap.DefaultInitialDirContextFactory">
        <constructor-arg value="LDAP://eocomm:389"/>
        <property name="managerDn">
            <value>CN=Administrator,CN=Users,DC=Support,DC=noida,DC=com</value>
        </property>
        <property name="managerPassword">
            <value>uCDMA2EHAIgrDf/crZyTsvQiLozlWR4uLu39wwMVRZCmMBgjhUGLoW51titoJSTsC+qv2hQ52kBm</value>
        </property>
    </bean>


Restart E-messaging server to enable changes. 

UPDATED:  September 13, 2017