You guys may want to take a look at the Virtualmin API… there’s the command line API that you can see by running “virtualmin” from the command line". There’s also a remote API, which you can see documented here:
every time I call this function, it return the nomral windows and tells me that I should login.
Furthermor this function can ony be executed as root. It is much much better to let every virtual Server owner to be albe to execute the remote function as a virtual Server onwer, because he has also login and password.
I don’t disagree, but that may be a limitation with the currently available API… you may want to file a feature request using the Support link above, so that Jamie can know that’s something you’re interested in.