User only for API

1 post / 0 new
#1 Thu, 05/09/2013 - 09:26
bernardo

User only for API

Hello to all, I'm thinking here a way to create an API to modify all virtual-server (domain) with a new interface.

It is safe to create a specific user to work with the api, example, "userapi, passapi" this in "Webmin - Webmin Users" with specific modules available.

Panel interface would do.

For the first client-server virtual

wget --http-user=userapi --http-passwd=passapi 'https://yourserver:10000/virtual-server/remote.cgi?program=create-user&d...'

For the second client with virtual-server

wget --http-user=userapi --http-passwd=passapi 'https://yourserver:10000/virtual-server/remote.cgi?program=create-user&d...'

will be a user of APi to work with all virtual-server using ssl.

This is very insecure?

excuse my english, I hope you understand;