Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th November 2010, 05:09
otacon otacon is offline
Senior Member
 
Join Date: Sep 2010
Posts: 105
Thanks: 5
Thanked 5 Times in 5 Posts
 
Default remoting add ftp user.

I am trying to add an ftp user through php, but I am confused on how.

I have deciphered most of the code except.


$domain_id = $client->mail_user_add($session_id,$client_id, $params);


I understand that this line defines what section of the database is being edited, but I am not sure how to adjust it to edit the ftp users.

So what is mail_user_add? I only see mail_user in phpmyadmin.

I tried to change mail_user_add to ftp_user_add but soap just gave me an error with that line.


I would appreciate some guidance please.









$params = array( 'server_id' => 1,
'email' => 'testing@test.com',
'password' => 'testing',
'quota' => '10',
'maildir' => '/var/vmail/dsad.dsa/franek',
'homedir' => '/var/vmail', 'uid' => '5000',
'gid' => '5000',
'postfix' => 'y',
'disableimap' => '0',
'disablepop3' => '0');


$client_id = 0;
$domain_id = $client->mail_user_add($session_id,$client_id, $params);


I found the list of remote functions in the remote section of myphp, but sites_ftp_user_add didn't work either.

List of functions:
mail_domain_get,mail_domain_add,mail_domain_update ,mail_domain_delete,mail_domain_set_status,mail_do main_get_by_domain;mail_user_get,mail_user_add,mai l_user_update,mail_user_delete;mail_alias_get,mail _alias_add,mail_alias_update,mail_alias_delete;mai l_forward_get,mail_forward_add,mail_forward_update ,mail_forward_delete;mail_catchall_get,mail_catcha ll_add,mail_catchall_update,mail_catchall_delete;m ail_transport_get,mail_transport_add,mail_transpor t_update,mail_transport_delete;mail_whitelist_get, mail_whitelist_add,mail_whitelist_update,mail_whit elist_delete;mail_blacklist_get,mail_blacklist_add ,mail_blacklist_update,mail_blacklist_delete;mail_ spamfilter_user_get,mail_spamfilter_user_add,mail_ spamfilter_user_update,mail_spamfilter_user_delete ;mail_policy_get,mail_policy_add,mail_policy_updat e,mail_policy_delete;mail_fetchmail_get,mail_fetch mail_add,mail_fetchmail_update,mail_fetchmail_dele te;mail_spamfilter_whitelist_get,mail_spamfilter_w hitelist_add,mail_spamfilter_whitelist_update,mail _spamfilter_whitelist_delete;mail_spamfilter_black list_get,mail_spamfilter_blacklist_add,mail_spamfi lter_blacklist_update,mail_spamfilter_blacklist_de lete;mail_user_filter_get,mail_user_filter_add,mai l_user_filter_update,mail_user_filter_delete;mail_ filter_get,mail_filter_add,mail_filter_update,mail _filter_delete;client_get,client_add,client_update ,client_delete,client_get_sites_by_user,client_get _by_username,client_change_password,client_get_id; server_get,get_function_list,client_templates_get_ all;sites_cron_get,sites_cron_add,sites_cron_updat e,sites_cron_delete;sites_database_get,sites_datab ase_add,sites_database_update,sites_database_delet e, sites_database_get_all_by_user;sites_ftp_user_get, sites_ftp_user_add,sites_ftp_user_update,sites_ftp _user_delete;sites_shell_user_get,sites_shell_user _add,sites_shell_user_update,sites_shell_user_dele te;sites_web_domain_get,sites_web_domain_add,sites _web_domain_update,sites_web_domain_delete,sites_w eb_domain_set_status;sites_web_aliasdomain_get,sit es_web_aliasdomain_add,sites_web_aliasdomain_updat e,sites_web_aliasdomain_delete;sites_web_subdomain _get,sites_web_subdomain_add,sites_web_subdomain_u pdate,sites_web_subdomain_delete;dns_zone_get,dns_ zone_add,dns_zone_update,dns_zone_delete,dns_zone_ set_status;dns_a_get,dns_a_add,dns_a_update,dns_a_ delete;dns_aaaa_get,dns_aaaa_add,dns_aaaa_update,d ns_aaaa_delete;dns_alias_get,dns_alias_add,dns_ali as_update,dns_alias_delete;dns_cname_get,dns_cname _add,dns_cname_update,dns_cname_delete;dns_hinfo_g et,dns_hinfo_add,dns_hinfo_update,dns_hinfo_delete ;dns_mx_get,dns_mx_add,dns_mx_update,dns_mx_delete ;dns_ns_get,dns_ns_add,dns_ns_update,dns_ns_delete ;dns_ptr_get,dns_ptr_add,dns_ptr_update,dns_ptr_de lete;dns_rp_get,dns_rp_add,dns_rp_update,dns_rp_de lete;dns_srv_get,dns_srv_add,dns_srv_update,dns_sr v_delete;dns_txt_get,dns_txt_add,dns_txt_update,dn s_txt_delete

And the code I am trying:

$params = array( 'server_id' => 1,
'username' => 'testing',
'password' => 'testing',
$domain_id = $client->sites_ftp_user_add($session_id,$client_id, $param$
$params = array( 'server_id' => 1,


I am still getting an error on the domain_id line.

Any Suggestions are appreciated.

Last edited by otacon; 9th November 2010 at 07:22.
Reply With Quote
Sponsored Links
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
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Remoting Framework Add User dayjahone General 3 22nd January 2009 04:43
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 21:12
Need to setup access to particular directory for particula FTP user. kanour Installation/Configuration 1 6th August 2006 13:57
more then one ftp user pontifex Installation/Configuration 3 16th August 2005 11:36


All times are GMT +2. The time now is 13:27.


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