#1  
Old 29th April 2011, 02:55
otacon otacon is offline
Senior Member
 
Join Date: Sep 2010
Posts: 109
Thanks: 5
Thanked 5 Times in 5 Posts
Default Adding a FTP user

I am trying to use the sites_ftp_user_add function but my current results are that all fields are empty except for the domain, which is correct.

PHP Code:
$params = array( 'server_id' => '1',                              
        
'parent_domain_id' => '55',        
                
'username' => 'testing',
        
'password' => 'testing',
        
'quota_size' => '-1',
        
'active' => 'y');

    
$domain_id $client->sites_ftp_user_add($session_id$client_id$domain_id$params); 
I got the arrays from ftp_user.tform.php so I know those should be correct, but the domain_id line I just guessed at because I am not sure where that comes from other than the "sites_ftp_user_add"

So Question 1. Where does "$domain_id = $client->sites_ftp_user_add($session_id, $client_id, $domain_id, $params); " come from?

2. Why would the parent_domain_id, active and the qouta_size be the only fields that are working?
__________________
Debian 7.4 Server:
ISPConfig Version: 3.0.5.3

Please visit my Mini-howto, "How To Create Remote API Scripts For ISPConfig 3"
Reply With Quote
Sponsored Links
  #2  
Old 2nd May 2011, 23:02
otacon otacon is offline
Senior Member
 
Join Date: Sep 2010
Posts: 109
Thanks: 5
Thanked 5 Times in 5 Posts
 
Default

ok I found out how to do this.

PHP Code:
$params = array( 'server_id'            => '1',
    
'parent_domain_id'    => '55',
    
'username'            => 'test',
    
'password'            => 'password',
    
'quota_size'        => '-1',
    
'active'            => 'y',
    
    
'uid'                => 'web52',
    
'gid'                => 'client0',
    
'dir'                => '/var/www/clients/client0/web52',
    
'quota_files'        => '100',
    
'ul_ratio'            => '-1',
    
'dl_ratio'            => '200',
    
'ul_bandwidth'        => '-1',
    
'dl_bandwidth'        => '100',);

$domain_id $client->sites_ftp_user_add($session_id$client_id$params); 
the above works.

and I found the last line in remoting.inc.php.
__________________
Debian 7.4 Server:
ISPConfig Version: 3.0.5.3

Please visit my Mini-howto, "How To Create Remote API Scripts For ISPConfig 3"
Reply With Quote
The Following User Says Thank You to otacon For This Useful Post:
falko (4th May 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
Vhosts...conf not synced to changes crypted General 50 24th April 2010 01:54
ispconfig 2 ftp / ssh issues? dw5304 General 6 7th April 2010 17:00
Anything I can do against illegal login-requests? schmidtedv Installation/Configuration 17 7th November 2008 10:25
Question on adding user to user table satimis Server Operation 5 12th October 2008 18:11
Adding manually an FTP user for a specific folder Novacom Installation/Configuration 4 11th January 2007 03:15


All times are GMT +2. The time now is 08:56.


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