Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 16th August 2007, 20:42
catdude catdude is offline
Senior Member
 
Join Date: Jun 2007
Posts: 178
Thanks: 1
Thanked 12 Times in 11 Posts
Default Using user_add function from remote Framework

I have created a client, "Dan M test", on my ISPConfig machine. This client was assigned client #462. I am calling the SOAP interface with:

$params = array ( 'sid' => $session_id,
'module' => 'web',
'function' => 'web_get',
'params' => array( web_title => 'varmints.us', // Reseller1, admin, all
));

and getting back:
Array
(
[web_title] => varmints.us
[doc_id] => 382
[doctype_id] => 1013
[web_host] => www
[web_domain] => varmints.us
<snipped for space>
[web_ip] => 69.66.1.24
[server_id] => 1
[optionen_mysql_user] => web382
[optionen_mysql_passwort] =>
<snipped for space>
[web_id] => 382
)

I also defined an e-mail address, dan@varmints.us. I can fetch this user's settings using:
$params = array ( 'sid' => $session_id,
'module' => 'web',
'function' => 'user_get',
'params' => array( user_username => 'varmints.us_dan', // Reseller1, admin, all
));
which returns:
Array
(
[doc_id] => 362
[doctype_id] => 1014
[user_username] => varmints.us_dan
[user_passwort] =>
<snipped for space>
[user_name] => Dan M
[status] =>
<snip>
[user_id] => 362
)

Now I am trying to add an e-mail address, test@varmints.us. The code I'm trying to use is:
$params = array( 'sid' => $session_id, 'module' => 'web',
'function' => 'user_add',
'params' => array(
web_id => 382,
user_username => 'varmints.us_test',
user_name => 'test',
user_email => 'test',
user_passwort => 'test',
user_speicher => 100,
user_mailquota => 100 ,
user_admin => 0
));
When I run this code it does not produce an error message. However, when I log into ISPConfig and look at varmints.us I only see the dan@varmints.us user. I get the same result if I replace web_id => 382 with web_title => 'varmints.us'.

It appears that I'm misunderstanding something about the user_add function. Could someone please tell me what I'm doing wrong?
Reply With Quote
Sponsored Links
 

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
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
Remote Framework for Stable Version m u r Installation/Configuration 8 5th June 2007 16:05
SuSE Enterprise, PHP binary coming with ISPConfig does not work properly NexusTechUS Installation/Configuration 1 26th April 2007 20:03
Remote Framework: error_max_mailquota_web arust General 6 3rd January 2007 09:41
installing Perl module GD - ran into problems Ovidiu Installation/Configuration 6 19th September 2006 09:32


All times are GMT +2. The time now is 03:50.


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