Usemin API would be great

I think a remote API for Usermin will be very useful.

Making remote authentication with the e-mail and password. as: wget --http-user=love@webmin.com --http-passwd=loveforever 'https://yourserver:20000/usermin/remote.cgi?program=filter&autoreply-add="message"'

Ever thought, control functions of SpamAssassin Mail Filter, auto reply, forwarding. by usermin api? :)

The purpose of this API is to create third-party plugins like Roundcube and User Interface own.

2 days I'm trying to create an auto-reply feature for Roundcube without success.

My attempts. * Remote API, calls the user administrator. * Iframe to usermin Roundube in the works. * Curl, HTTP_Request2 shows error "No cookies"

Sorry an error in words, English is not my official language.

Status: 
Closed (fixed)

Comments

That's a good idea .. I can see how it would be useful to allow apps like Roundcube to setup autoreplies.

However, this would be a lot of work to implement, so probably isn't going to happen any time soon.

Jamie, know of any alternative. where I can make a remote connection, example Curl or pear HTTP_Request. Do you know if it works?

wget should work - but to bypass Usermin's cookie-based authentication, use the flag -U Webmin to force the user agent to be "Webmin"

You have an example with "wget" ?

What operation are you trying to perform?

It is the operation of auto-reply would be an example. http://192.168.1.66:20000/filter/edit_auto.cgi

Log error: IN: /var/usermin/miniserv.error

"[05/jan/2013:12:31:26 -0200] [192.168.1.64] /session_login.cgi : No cookies : You browser does not support cookies, which are required for this web server to work in session authentication mode."

You could try a command like :

wget -O - -U Webmin "https://user:password@server:20000/file/save_auto.cgi?enabled=1&period_def=1&charset_def=1&reply=Your+message+here

Automatically closed -- issue fixed for 2 weeks with no activity.