FTP Change Password api
Hi, im new in this, i use XMLAPI for get summary account, but now, i need create a change password script, need change a specific account ftp, how i could make this?
I use this for the summary:
I try this, but dont work:
include("xmlapi.php");
ip = "localhost";
$root_hash = '';
$xmlapi = new xmlapi($ip);
$xmlapi->hash_auth("root",$root_hash);
$xmlapi->return_xml(1);
$xmlapi->set_debug(1);
$username = user;
$xmlapi->accountsummary($username);I try this, but dont work:
include("xmlapi.php");
$ip = "localhost";
$root_pass = "root_pass";
$xmlapi = new xmlapi($ip);
$xmlapi->password_auth("root",$root_pass);
//$xmlapi->set_debug(1);
$args = array(
'user' => 'unique@mydomain.tld',
'pass' => 'S3cr3t',
);
$xmlapi->api2_query('dave','Ftp','passwd',$args); -
Hello :) I notice the following line: 'user' => 'unique@mydomain.tld',
Please update the user entry to "unique" so the @domain suffix is excluded from the entry. Thank you.0
Please sign in to leave a comment.
Comments
1 comment