Use HTTP Basic authentication with GeoNetwork.
Version 2.4.0