05-23-2020 11:52 AM
We are currently on Alfresco 5.2.3 connected to 2 differant LDAP servers and need to encrypt the password at the sub level. Is there a way to do 2 differat LDAP servers? We understand that encryption can be set at the Global level for 1 LDAP Server.
05-23-2020 01:27 PM
As encryption of alfresco-global.properties is a feature of Alfresco Enterprise (5.2.3 is an Enterprise version after all) you should contact Alfresco Support with that inquiry. From my past experiences and the code handling subsystems such as LDAP in Alfresco, I seriously doubt that such a use case is supported at all. It may be possible to create a workaround though using Spring property placeholders so that you can reference the password config setting in the unencrypted LDAP configuration properties while its value is actually stored in the encrypted global properties file.
E.g. in ../webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/ldap/additional.properties file you could define the following (empty) default properties:
ldap.synchronization.server1.password=
ldap.synchronization.server2.password=
Then, in the encrypted global properties file you can actually set values for thsee properties.
Finally, in the LDAP subsystem instances (e.g. ../shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/custom-additional.properties) you can then set
ldap.synchronization.java.naming.security.credentials=${ldap.synchronization.server1.password}
Explanation:
Explore our Alfresco products with the links below. Use labels to filter content by product module.