Does FileZilla Server offer API for programming users?

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Message
Author
jansuan
500 Command not understood
Posts: 4
Joined: 2007-12-21 15:18
First name: Jay
Last name: Lin

Does FileZilla Server offer API for programming users?

#1 Post by jansuan » 2007-12-22 03:23

I want to be able to programatically, using API or command, setup users for FileZilla server. Is it a doable?

If so, where can I find API (I am using C# .Net) or command line syntax?

I would appreciate any help.

Jay

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Does FileZilla Server offer API for programming users?

#2 Post by botg » 2007-12-22 10:41

Edit FileZilla Server.xml directly and call "FileZilla Server.exe" /reload-config afterwards.

jansuan
500 Command not understood
Posts: 4
Joined: 2007-12-21 15:18
First name: Jay
Last name: Lin

Re: Does FileZilla Server offer API for programming users?

#3 Post by jansuan » 2007-12-22 13:36

btog,

Thank you for your help. Your xml solution is way easier than I expected. It is great!!!

Jay

jansuan
500 Command not understood
Posts: 4
Joined: 2007-12-21 15:18
First name: Jay
Last name: Lin

Re: Does FileZilla Server offer API for programming users?

#4 Post by jansuan » 2007-12-22 15:30

btog,

One more Question on "FileZilla Server.xml": How can I set user's password? The password is encrypted in xml (It certainly make 100% security sense doing so.) Is there any mechanism let me supply password?

Thanks,

Jay

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Does FileZilla Server offer API for programming users?

#5 Post by botg » 2007-12-22 16:41

Simple MD5 hash.

jansuan
500 Command not understood
Posts: 4
Joined: 2007-12-21 15:18
First name: Jay
Last name: Lin

Re: Does FileZilla Server offer API for programming users?

#6 Post by jansuan » 2007-12-23 19:07

btog,

Thans a lot for your help. You are THE MAN!

Jay

JadedHeart
500 Command not understood
Posts: 4
Joined: 2011-02-08 14:00

Re: Does FileZilla Server offer API for programming users?

#7 Post by JadedHeart » 2011-02-08 14:02

So is there any API for the servre interface... I have plans to inplement an admin tool for my smartphone.

edit: is there any API wiki

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: Does FileZilla Server offer API for programming users?

#8 Post by boco » 2011-02-08 20:36

AFAIK the protocol used for communication between the server service and the admin interface is custom and undocumented. You could figure it out from the source code, though.
Last edited by boco on 2011-02-09 06:25, edited 2 times in total.
Reason: Changed wording
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Does FileZilla Server offer API for programming users?

#9 Post by botg » 2011-02-08 21:36

As it's free open source, it cannot possibly be proprietary. I agree that it is undocumented though :(

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: Does FileZilla Server offer API for programming users?

#10 Post by boco » 2011-02-08 21:59

it cannot possibly be proprietary
Maybe the word ''custom'' describes it better...
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

Bang Boat
500 Command not understood
Posts: 1
Joined: 2011-02-09 15:11
First name: Ban
Last name: Jose

Re: Does FileZilla Server offer API for programming users?

#11 Post by Bang Boat » 2011-02-09 16:17

Hey Guys, is not possible to use other hash than MD5 to set user's password?

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: Does FileZilla Server offer API for programming users?

#12 Post by boco » 2011-02-09 20:35

By changing the source, you could implement any hash. But as-is, no.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

JadedHeart
500 Command not understood
Posts: 4
Joined: 2011-02-08 14:00

Re: Does FileZilla Server offer API for programming users?

#13 Post by JadedHeart » 2011-02-10 14:31

So what is the reason for not documenting the API? Do FileZilla dev do not want "community addons" or is there any other reason?

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Does FileZilla Server offer API for programming users?

#14 Post by botg » 2011-02-11 07:27

My goals are to eventually rewrite the server. That's why I have never added any documentation to the current administration interface protocol.

ttessier
500 Command not understood
Posts: 1
Joined: 2014-01-17 12:50
First name: Tim
Last name: Tessier

Re: Does FileZilla Server offer API for programming users?

#15 Post by ttessier » 2014-01-17 13:01

Has there been any changes to this concept?
Have you rewritten the server?

I have looked through the source of the monitor and sort of ported sections to csharp/.net so that I could monitor file uploads and capture the completion event. I am having a couple of issues so far, but I believe that I can track the passive port and ip to link the 126 transfer complete to the stor command which would give me the filename, client, and completion time. At that point I can perform an operation on the file.

I have run into the following issues:

Due to incompletely handling the entire code ( groupinit, userinit ) I believe I am sort of running into an endless loop
When I reconnect after a "disconnect", I seem to be missing my commands and responses.

I am assuming that my threaded architecture needs some work, and I am using TcpClient and networkstream which I believe to be a potential major issue moving forward.

Anyways,
Just thought I would see if you had some feedback for me.

Post Reply