Page 1 of 2

Does FileZilla Server offer API for programming users?

Posted: 2007-12-22 03:23
by jansuan
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

Re: Does FileZilla Server offer API for programming users?

Posted: 2007-12-22 10:41
by botg
Edit FileZilla Server.xml directly and call "FileZilla Server.exe" /reload-config afterwards.

Re: Does FileZilla Server offer API for programming users?

Posted: 2007-12-22 13:36
by jansuan
btog,

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

Jay

Re: Does FileZilla Server offer API for programming users?

Posted: 2007-12-22 15:30
by jansuan
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

Re: Does FileZilla Server offer API for programming users?

Posted: 2007-12-22 16:41
by botg
Simple MD5 hash.

Re: Does FileZilla Server offer API for programming users?

Posted: 2007-12-23 19:07
by jansuan
btog,

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

Jay

Re: Does FileZilla Server offer API for programming users?

Posted: 2011-02-08 14:02
by JadedHeart
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

Re: Does FileZilla Server offer API for programming users?

Posted: 2011-02-08 20:36
by boco
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.

Re: Does FileZilla Server offer API for programming users?

Posted: 2011-02-08 21:36
by botg
As it's free open source, it cannot possibly be proprietary. I agree that it is undocumented though :(

Re: Does FileZilla Server offer API for programming users?

Posted: 2011-02-08 21:59
by boco
it cannot possibly be proprietary
Maybe the word ''custom'' describes it better...

Re: Does FileZilla Server offer API for programming users?

Posted: 2011-02-09 16:17
by Bang Boat
Hey Guys, is not possible to use other hash than MD5 to set user's password?

Re: Does FileZilla Server offer API for programming users?

Posted: 2011-02-09 20:35
by boco
By changing the source, you could implement any hash. But as-is, no.

Re: Does FileZilla Server offer API for programming users?

Posted: 2011-02-10 14:31
by JadedHeart
So what is the reason for not documenting the API? Do FileZilla dev do not want "community addons" or is there any other reason?

Re: Does FileZilla Server offer API for programming users?

Posted: 2011-02-11 07:27
by botg
My goals are to eventually rewrite the server. That's why I have never added any documentation to the current administration interface protocol.

Re: Does FileZilla Server offer API for programming users?

Posted: 2014-01-17 13:01
by ttessier
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.