Storing MD5 hash of user passwords

Hi,

I’m trying to use OpenNebula’s API to extract users and VMs and output a user-mappings file suitable for use with Guacamole. The problem is that OpenNebula’s core authentication stores passwords as a SHA1 hash (I think), and Guacamole’s default authentication uses MD5 hashes.

Does anyone know a way to store the MD5 hash of each user’s password within the database at the time the account is created? Perhaps within the Attributes (Template) section since that is accessible with the API?

Thanks