0 votes
by (160 points)
edited

I am trying to change the password through C# program and i am getting the following error when i use the SITE PSWD old new

"'SITE PSWD old new': command not understood"


Can you please let me know what command i have to sue or if there is any sample code available?


Thanks,
Rajesh

Applies to: Rebex FTP/SSL

2 Answers

0 votes
by (160 points)
edited

Is there any other command or function like ChangePassword() should be used instead of SITE PSWD command?

Thanks,

+1 vote
by (147k points)
edited

"SITE PSWD old new" is a non-standard extension of the FTP protocol and it is not implemented by all FTP servers. In fact, I guess that most FTP servers don't support it (and some only support it for a subset of authentication methods).

Some FTP servers might use a different command than SITE PSWD. For example, WS_FTP uses "SITE CPWD new" command to change the password.

Since this functionality is server-specific, our advice is to consult the documentation of your FTP server for more information.

...