A MD5 password encoder for GeoNetwork, which has been developed and tested for version 2.10.3. It is probable that it works with other versions as well.
- Clone the repository
git clone https://github.com/webrian/GeoNetworkMd5PasswordEncoder.git - or download it from GitHub
- Open the NetBeans project included in the repository and
Clean and Build (Shift+F11)it - Copy the resulting
GeoNetworkMd5PasswordEncoderto the/WEB-INF/libdirectory in the GeoNetwork webapp - Update the configuration settings in
/WEB-INF/config-security-core.xml
Replace the following lines
<bean class="org.springframework.security.crypto.password.StandardPasswordEncoder" id="geonetworkEncoder">
<constructor-arg value="SHA-256"/>
<constructor-arg value="${passwordSalt}"/>
</bean>
with
<bean class="ch.unibe.cde.geonet.kernel.security.Md5PasswordEncoder" id="geonetworkEncoder"/>
- Restart Tomcat