Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd October 2012, 17:00
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default API & Interface Inconsistency

I realized that when creating a client through the API am expected to pass the reseller_id to which this client will belong to. (The Idea is good!)

However, creating the same client through the web interface, am not required to to select a reseller to whom this client should belong to. This is also not the case when editing the client ...(as admin)

Isn't this inconsistency?
Reply With Quote
Sponsored Links
  #2  
Old 3rd October 2012, 17:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Thats not a inconsistency as clients that belong to a reseller are created in the interface by the reseller and get assigned to this reseller automatically.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 3rd October 2012, 17:34
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Thanks for that response ...

Till am developing a module for AWBS.com billing system with which accounts should be created instantly through API. (I will share it here when its done). I kindly request you to offer me help when ever I will need it.

If I ask foolish or already answered questions, please have mercy

Also, where do we post suggestions for I know I will have many in this course ...
Reply With Quote
  #4  
Old 3rd October 2012, 17:37
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Question #1:

If I provide template_master can I then NOT pass the rest of the limit varibles? ie

limit_maildomain (int(11))
limit_mailbox (int(11))
limit_mailalias (int(11)) and etc ...
Reply With Quote
  #5  
Old 3rd October 2012, 17:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Quote:
Also, where do we post suggestions for I know I will have many in this course ...
Please post feature requests in the bugtracker:

http://bugtracker.ispconfig.org

Quote:
If I provide template_master can I then NOT pass the rest of the limit varibles? ie

limit_maildomain (int(11))
limit_mailbox (int(11))
limit_mailalias (int(11)) and etc ...
You should be able to payy any variable that is available in the corresponding database table.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 3rd October 2012, 18:06
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Till I just realized that despite these 2 being already defined in the template_master I am required (MUST) pass them in the API:

'web_php_options' & 'ssh_chroot'

However, all of the variables (including those 2 above) are set to the default of template_master which is good, but again renders those 2 must define variables useless. Thus I think they must be optional just like the rest of the limit variables.

Last edited by abdi; 3rd October 2012 at 18:20.
Reply With Quote
  #7  
Old 3rd October 2012, 20:49
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Till, what is the difference between domains_domain_add and sites_web_domain_add
Reply With Quote
  #8  
Old 3rd October 2012, 23:42
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Till more problems with API,

Am getting this error (when I try adding a domain name with sites_web_domain_add):

data_processing_errorpm_process_idle_timeout_error _regex<br /> pm_max_requests_error_regex<br /> SOAP Error: pm_process_idle_timeout_error_regex
pm_max_requests_error_regex

Please help me understand the problem / cause

Joseph
Reply With Quote
  #9  
Old 4th October 2012, 11:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Ensure that you passed the correct values for the variables mentioned in the error message as part of the array:

pm_process_idle_timeout
pm_max_requests
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 4th October 2012, 15:55
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
 
Default

Thanks for that information Till,

May I suggest you add it to the API documentation specifically on the file "/remoting_client/API-docs/sites_web_domain_add.html"

You could also add it to the examples give in the example folder ...

Thanks, Joseph
Reply With Quote
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
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
Debian Lenny: waiting for interface eth0:1 before doing NFS mounts (warning) edge Installation/Configuration 2 9th June 2009 08:55
IPtables rule to let PPTP access LAN brianwebb01 Installation/Configuration 0 1st May 2008 22:23
How to create a dhcp server for intranet (with multi-homed alias)? zenny HOWTO-Related Questions 8 29th February 2008 16:16
No DHCP on second LAN interface DrJohn Server Operation 2 8th November 2007 03:58


All times are GMT +2. The time now is 09:01.


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