Thank you for the reply.
This passwords should than be used for the databases of client accounts?
If I understand you correctly, you can send hashed passwords through the KeyHelp API - you just need to enable "Configuration -> API -> Options -> Use password hashes". Than you can utilize the "password_hash" field in requests to get or set the passwords by a password hash.
Be aware that the password hash of other control panels may use a weaker algorithm than KeyHelp. But it should work.
Sorry for the confusion, I want to restore the hashed password for the user databases from Directadmin. For HestiaCP we can write a db.cnf file in the user home folder, so it uses that file for the hashed password. But I don't know how this works in Keyhelp. When I check the database create API
Code: Select all
{
"id_user": 2,
"database_name": "alex_db1",
"database_username": "alex_db1",
"password": "qwertz",
"description": "This is the database for my Wordpress installation.",
"remote_hosts": [
"93.152.27.25",
"120.237.75.141"
],
"password_hash": "*3B501FC38B83F25B219D020656A7C104960C33E7"
}
I can see that there is a password_hash, do I leave password empty or do I not need this line when using password_hash? We already use password_hash for creating the email boxes in the migration, this works. I can see I also have password in there and password_hash does the password_hash overwrite the password when used both?
At this time, I got the following migration script functions working, transferring the files to the user www folder, migrating the mailboxes with data with orginal password from DA. Creating the databases with migration data ( only password needs some work )