-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A password must be supplied for cPanel migrations - make mandatory #927
Comments
The hashed password isn't good enough in most cases though - Virtualmin needs the original so it can be re-hashed for MySQL or the local /etc/shadow file format. |
I should of been more specific, remove |
In some cases we can get the password from the backup though, so I don't think it would make sense to remove that option entirely. |
|
Unfortunately due to the way browser form uploads work, we can't check for the password field until the whole backup file has been uploaded. Unless we were to do it on the form in Javascript... |
That how I thought you did some of the stuff anyway, using Javascript. This would do for me. So if cpanel (maybe plesk and direct admin) was selected then:
Do you not have a client-side validation framework? If not, when a new webmin/virtualmin theme gets done then maybe add one in then. Joomla has a good example, their forms are built with |
No, we can’t reliably do that either! The information is inside the uploaded file, and there’s not much we can do about it. |
You don't need to look in the file, all cpanel archives will need a password. |
You cannot create a backup in cPanel without a password? What format is it? |
When you create cpanel backup it does not need a password. When you import/migrate a cpanel backup into virtualmin and do not give the cpanel account password, the migration will fail because virtualmin says it needs the cpanel password. So that is why I say make the password filed when importing a cpanel account mandatory. |
I've checked in a fix here that should speed up the process by detecting if a password wasn't provided sooner : fbbd72c |
I see, you have added the Password check before the upload, this is a good workaround. |
Why is it acceptable for |
If $parent is set then the domain being migrated is a sub-server of an existing domain, so doesn't need it's own password. |
the issue
If you do not enter a password for cpanel migrations you get this error
proposed solution
Make the password field mandatory when cpanel backup is selected
additional
maybe remove the option to try and figure out the password automatically? most backups will have this hashed nowadays (or should).
The text was updated successfully, but these errors were encountered: