DirectAdmin migration of MySQL password hashes fail

When migrating backups created in DirectAdmin 1.50.1, they successfully import but have this error:

Failed to migrate virtual server : SQL set password for 'dbuser'@'localhost' = '*B1DFB503E89D3BEDEAB2386570D000510B9E3162&references_priv' failed : Password hash should be a 41-digit hexadecimal number

As a result the mysql passwords need recreating.

I can provide sample backups as required.

Status: 
Closed (fixed)

Comments

Howdy -- Jamie may have some additional questions for you, but just to ensure he has all the information he needs --

What MySQL version is it that you're migrating both to and from?

And what distro/version are you using on your new server?

Yeah, this could be due to a MySQL version mismatch. Directadmin's backups contain only the hashed password .... but the hashing format isn't consistent across all MySQL releases.

Sorry I didn't see these replies before. Versions were the same actually, MariaDB 10.1 on both. Also Centos 7x64 on both too.

This isn't an issue for me anymore as we are not rolling Virtualmin out anymore, happy to work with you to resolve this for the greater good though :)

If I could get a copy of the problem backup file, that would be really useful.

Thanks, I have applied your patch and will include it in the next Virtualmin.

Status: Active » Fixed
Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.