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.
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:
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.