|
|
@@ -70,10 +70,36 @@ class CreateAccount extends AddonController
|
|
|
*/
|
|
|
protected function kerioRunService($params = null)
|
|
|
{
|
|
|
- $api = new KerioConnectApi('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
+ $domainParams = array(
|
|
|
+ "query" => array(
|
|
|
+ "fields" => array(
|
|
|
+ "id",
|
|
|
+ "name",
|
|
|
+ "description",
|
|
|
+ "aliasList",
|
|
|
+ "userMaxCount",
|
|
|
+ "outgoingMessageLimit",
|
|
|
+ "isPrimary",
|
|
|
+ "renameInfo",
|
|
|
+ "forwardingOptions",
|
|
|
+ "kerberosRealm",
|
|
|
+ "winNtName",
|
|
|
+ "ipAddressBind",
|
|
|
+ "pamRealm",
|
|
|
+ "keepForRecovery",
|
|
|
+ "isDistributed"),
|
|
|
+ "start" => 0,
|
|
|
+ "limit" => -1,
|
|
|
+ "orderBy" => array(array(
|
|
|
+ "columnName" => "name",
|
|
|
+ "direction" => "Asc"
|
|
|
+ ))
|
|
|
+ )
|
|
|
+ );
|
|
|
+ $api = new KerioConnectApi('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
try {
|
|
|
$api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
|
|
|
- $result = $api->sendRequest('Domains.get');
|
|
|
+ $result = $api->sendRequest('Domains.get', $domainParams);
|
|
|
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|