• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Command Line Interfase to SB anyone?

J

JRios

Guest
I am not too familiar with SB yet, i am looking for a way to auto create users con SB, perhpas as in PLESK by a command line, or in this case is it as simple as adding the user directable to the database table??? ... any help would be appreciated ! ;)
 
thanks....i e?

Thanks for the response, i can almost figure out what to do, care to give me and example? i mean how do i send that command? thru a web page? do i just put it in a http request? should i run it from the server? :( any help appreciated

BTW, i am using SB for Linux ...
 
SiteBuilder implements SOAP-based API (http://en.wikipedia.org/wiki/SOAP)

Here is the simple code that invokes CreateAccountWithNewPlan to create reseller. Note that in practice one should use a combination of CreatePlan and CreateAccountFull instead of CreateAccountWithNewPlan.

Code:
#!/usr/bin/env perl

use SOAP::Lite +trace => [ qw (all) ];

my $soap = SOAP::Lite
    -> proxy('http://sitebuilder.yourserver/ServiceFacade/AccountWebService.asmx')
    -> ns('http://swsoft.com/SiteBuilder/AccountService/v_3_2');

my @headers = (SOAP::Header->name("CredentialsSoapHeader" =>
                \SOAP::Data->value(
					SOAP::Header->name("Login" => "admin"),
					SOAP::Header->name("Password" => "admin")
                )
));
$headers[0]->uri("http://swsoft.com/SiteBuilder/AccountService/v_3_2");

my @data = (
        SOAP::Data->name("username", "test"),
        SOAP::Data->name("password", "test"),
        SOAP::Data->name("firstName", "john"),
        SOAP::Data->name("lastName", "doe"),
        SOAP::Data->name("email", 'john@nowhere.com'),
        SOAP::Data->name("role", "Reseller"),
);

$soap->CreateAccountWithNewPlan(@data, @headers);

You'll need sitebuilder-remote_admin package installed as well as perl with SOAP::Lite to run this code.
 
Back
Top