HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   Command line admin functions (http://www.howtoforge.com/forums/showthread.php?t=51287)

Never-Enuff 6th February 2011 21:24

Command line admin functions
 
Is there a way to do ISPConfig admin functions from a command line, for example, adding a client, setup of initial settings, etc..? I would like my billing/provisioning server to be able to signup the customer then create the account package settings they chose on the ISPConfig server and if they dont pay or close their account the provisioning server will close the account.

Thnx

Dickie

till 6th February 2011 21:32

Adding users and websites from a third party software or a website is done with the remoting API in ISPConfig and not a commandline tool.

Never-Enuff 7th February 2011 00:12

Quote:

Originally Posted by till (Post 250442)
Adding users and websites from a third party software or a website is done with the remoting API in ISPConfig and not a commandline tool.

Got it.

Thanx

Dickie

Never-Enuff 7th February 2011 14:40

Till,

(Please excuse my noob questions).. I have looked over the examples and being I have never used soap before, I am a little confused on the usage. So let me ask you this, after i create the "soap-add-client.php" with my user information, do I just run it as: "http://192.168.10.189:8080/remote/soap-add-client.php" ? or have I missed something?

Thnx

Dickie

till 7th February 2011 14:45

No, you dont put this script into the ispconfig remote folder. The script is just an example, you take the code from that script and add it inside your cms system or script from where you want to create the users. This code will then do a tcp connection to ispconfig by using the SOAP protocol to create the client.

Never-Enuff 7th February 2011 16:02

Ok I have the scripts on the provisioning server, I created a test soap-add-client.php script and ran it and it creates a empty account. I have the ISPConfig server set for debug logging, but I am currently seeing nothing in the logs about the script, error or otherwise. Is there a particular log I need to look at to track down my issue. on the provisioning server i run the script as 'php ./soap-add-client.php' and it gives me a session id and then a very brief pause the logs out.

Thnx

Dickie

--------------
root@mrhouse:/projects/Scripts/ispconfig# php ./soap-client-add.php
Login successfull. SessionID:daa3ccd4fb65617fb21dae9369767dc6<br />Logout.<br />root@mrhouse:/projects/Scripts/ispconfig#

Never-Enuff 7th February 2011 16:06

I found the error, it was the name of the template that was kicking it all out.

Dickie


All times are GMT +2. The time now is 23:22.

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