Welcome, Guest
Please Login or Register.
Lost Password?
custom change password script (1 viewing)
Post Reply

TOPIC: custom change password script

#9074
chattanoogaonline (User)
Posts: 6
graphgraph
custom change password script 2007/12/18 07:48  
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
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.