Use API into a plugin

Red

Verified User
Joined
Nov 8, 2009
Messages
14
Hello all,

I'm experimenting and I need a method to list all the users and domains directly from a plugin.

Is that possible? How?

Thanks.
 
Hello,

but how should I use the API from a plugin?
Using the HTTPSocket class?
 
Hello,

thanks, may I ask you another thing?

The plugin is executed as the user logged in, I need to gain access as "diradmin" or switch to root to execute "chown" for some directories/files.

Do you have any idea?

Thanks.
 
Search forum for "wrapper". It will help you to switch from an user to desired one.
 
Hello,

thank you, I've created my own very simple wrapper in C++.

Thanks.
 
Back
Top