These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Changing passwords using the remote API on the new forum.
Just wondering if anyone has managed to modify the change password script to support this? I understand that it should be easy to just pass command line args to the perl script but I'm not sure how to go about making this script available to the remote API.
Does anyone have any experience/suggestions?
Thanks!
Howdy,
You should be able to do that using the "modify-user" option.
Using the command line tools, that looks like this:
virtualmin modify-user --user USERNAME --pass NEW_PASSWORD
Those same parameters should work in the remote API.
-Eric
Hi Eric,
Sorry, I should have been more clear - I mean a virtual server's admin password, hence the "change-password" script. I already have standard user password changes working :-)
Howdy,
You can use "modify-domain" for that... there's details here:
https://www.virtualmin.com/documentation/developer/cli/modify_domain
You can pass in the "pass" parameter to modify-domain to change the Virtual Server owner's password.
-Eric
Thanks Eric, that did the trick.