R Red Verified User Joined Nov 8, 2009 Messages 14 Feb 26, 2011 #1 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 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.
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,189 Location GMT +7.00 Feb 26, 2011 #2 Hello, Sure, it's possible: http://directadmin.com/api.html#showusers http://directadmin.com/api.html#user_apis
Hello, Sure, it's possible: http://directadmin.com/api.html#showusers http://directadmin.com/api.html#user_apis
R Red Verified User Joined Nov 8, 2009 Messages 14 Feb 26, 2011 #3 Hello, but how should I use the API from a plugin? Using the HTTPSocket class?
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,189 Location GMT +7.00 Feb 26, 2011 #4 For more information on usage API you'd better read this thread (the link from API page)
R Red Verified User Joined Nov 8, 2009 Messages 14 Feb 27, 2011 #5 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.
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.
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,189 Location GMT +7.00 Feb 27, 2011 #6 Search forum for "wrapper". It will help you to switch from an user to desired one.
R Red Verified User Joined Nov 8, 2009 Messages 14 Feb 27, 2011 #7 Hello, thank you, I've created my own very simple wrapper in C++. Thanks.