I have been looking at the remote API and the possibility of creating a custom password change scripttfor Virtualmin. There is already a change-password.pl script that is used my usermin to change the virtualmin users passwords but it does not seem like it is something that can be used by the remote API since it does not have parameters that I can pass into the program. It looks like it checks $ARGV[0] for the username and if it is there it bypasses the prompt to enter the username and goes directly to the Old Password Prompt.
Are there plans to add an updated version that I can pass all this info to using command line parameters like the other scripts in the command line API? Something like
| Code: |
./change-password.pl -user <username> -opass <oldpassword> -pass <newpassword>
|
I am considering writing this so I can develop script using the remote API to allow my users to change their passwords without having to access usermin.
Post edited by: chattanoogaonline, at: 2007/12/18 07:49