#1  
Old 13th February 2011, 17:56
germinator germinator is offline
Member
 
Join Date: Nov 2010
Location: /root
Posts: 51
Thanks: 7
Thanked 15 Times in 9 Posts
Default remote api problem

Hello Community,

since I can't wait for the billing module to be finished I am going to have to make a temporary alternative for now and started working myself into the remote framework .. first I wanted to go through the examples that are given and just tried to add a new user .. however .. wenn i tried to add a user using the given soap-client-add.php there is a new user that is created, but there are NO parameter set for some reason .. only the default limits.

im gonna post the code of my soap-client-add.php to see if there is a problem

Code:
<?php

require('soap_config.php');

$client = new SoapClient(null, array('location' => $soap_location,
                                     'uri'      => $soap_uri));

try {
	if($session_id = $client->login($username,$password)) {
		echo 'Login successfull. SessionID:'.$session_id.'<br />';
	}
	
	$params = array(        'server_id' => 1,
        					'company_name' => 'Company',
        					'contact_name' => 'John Doe',
        					'username' =>'john',
        					'password' =>'test',
        					'language' =>'en',
        					'usertheme' =>'default',
        					'street' =>'mainstreet 10',
        					'zip' =>'12345',
        					'city' =>'Homecity',
        					'state' =>'non-US',
        					'country' =>'EN',
        					'telephone' =>'',
        					'mobile' =>'',
       						'fax' =>'',
       						'email' =>'',
        					'internet' =>'',
        					'icq' =>'',
 		      				'notes' =>'',  
        					'template_master' => '1',
                            'template_additional' =>'',
                            'default_mailserver' =>'1',
                            'limit_maildomain' =>'1',
                            'limit_mailbox' =>'50',
						    'limit_mailalias' =>'-1',
                            'limit_mailforward' =>'-1',
                            'limit_mailcatchall' =>'-1',
        					'limit_mailrouting' => '-1',
        					'limit_mailfilter' =>'-1',
                   		    'limit_fetchmail' =>'-1',
                            'limit_mailquota' =>'-1',
                            'limit_spamfilter_wblist' =>'-1',
                            'limit_spamfilter_user' =>'-1',
        					'limit_spamfilter_policy' =>'-1',
        					'default_webserver' =>'1',
        					'limit_web_domain' =>'-1',
       						'web_php_options' =>"SuPHP",
        					'limit_web_aliasdomain' =>'-1',
        					'limit_web_subdomain' =>'-1',
        					'limit_ftp_user' =>'-1',
        					'limit_shell_user' =>'-1',
        					'ssh_chroot' =>'None',
        					'default_dnsserver' =>'1',
        					'limit_dns_zone' =>'-1',
        					'limit_dns_record' =>'-1',
        					'limit_client' =>'0',
        					'default_dbserver' =>'1',
        					'limit_database' =>'-1',
        					'limit_cron' =>'0',
        					'limit_cron_type' =>'',
       						'limit_cron_frequency' =>'-1');


	$reseller_id = 3;
	$domain_id = $client->client_add($session_id, $reseller_id, $params);
	
	
	
	if($client->logout($session_id)) {
		echo 'Logout.<br />';
	}
	
	
} catch (SoapFault $e) {
	die('SOAP Error: '.$e->getMessage());
}

?>
maybe the code is wrong .. ?!

Hope you can help me !

Thanks,

GerminatoR

//edit
user and pass of the remote user are set in the soap_config.php and work
Reply With Quote
Sponsored Links
  #2  
Old 13th February 2011, 21:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
 
Default

You selcted the use a master template for the user with the ID "1". So all limits get overridden by this master template. If you want to specify limits manually in the client add command, then do not set a master templater:

'template_master' => '0'
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
germinator (14th February 2011)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
postfix/cleanup: warning: virtual_alias_maps map lookup problem penkku Server Operation 1 11th February 2011 13:48
remote framework - is it customer or admin side? alipanick Developers' Forum 2 8th October 2009 20:35
Newb: Result of nessus scan Slowhand Installation/Configuration 12 4th June 2009 15:31
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20


All times are GMT +2. The time now is 17:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.