Announcement: .NET API for automated creation of Users
Moderator: Project members
- PolarbearDK
- 500 Syntax error
- Posts: 14
- Joined: 2014-09-16 13:30
- First name: Philip
- Last name: Hoppe
- Location: Copenhagen, Denmark
Announcement: .NET API for automated creation of Users
We needed to automate the creation of FileZilla users/groups.
We looked at modifying FileZilla Server.xml directly, but rejected the idea because /reload-config kicks all active connections.
What we really needed was an API to FileZilla, but we could'nt find one.
So I wrote an API that mimics the FileZilla Server Interface using .NET.
It is available as a nuget package for Visual Studio https://www.nuget.org/packages/Miracle.FileZilla.Api/
Source/documentation is available on: https://github.com/PolarbearDK/Miracle.FileZilla.Api
We looked at modifying FileZilla Server.xml directly, but rejected the idea because /reload-config kicks all active connections.
What we really needed was an API to FileZilla, but we could'nt find one.
So I wrote an API that mimics the FileZilla Server Interface using .NET.
It is available as a nuget package for Visual Studio https://www.nuget.org/packages/Miracle.FileZilla.Api/
Source/documentation is available on: https://github.com/PolarbearDK/Miracle.FileZilla.Api
Re: Announcement: .NET API for automated creation of Users
It's not supposed to do that and I cannot reproduce it either. Do you have more information on this?We looked at modifying FileZilla Server.xml directly, but rejected the idea because /reload-config kicks all active connections.
Cool. Would it be possible to rename it to make it more clear that it's for FileZilla Server instead of FileZilla? E.g. Miracle.FileZillaServer.ApiIt is available as a nuget package for Visual Studio https://www.nuget.org/packages/Miracle.FileZilla.Api/
Source/documentation is available on: https://github.com/PolarbearDK/Miracle.FileZilla.Api
I'm surprised you managed to figure out the overly arcane protocol.
- PolarbearDK
- 500 Syntax error
- Posts: 14
- Joined: 2014-09-16 13:30
- First name: Philip
- Last name: Hoppe
- Location: Copenhagen, Denmark
Re: Announcement: .NET API for automated creation of Users
Sorry, that was a bit vague.botg wrote:It's not supposed to do that and I cannot reproduce it either. Do you have more information on this?We looked at modifying FileZilla Server.xml directly, but rejected the idea because /reload-config kicks all active connections.
On my develop machine (Windows 7) with FileZilla Server 0.9.46 installed on port 14242 as a service:
When my college copied a large file to my machine using FTP, and I did a /reload-config, the FTP transfer was aborted. I have heard that we have seen that in production too, but I don't have the version details
It is not possible to rename a NuGet package. Besides that, I think it is 100% clear what the package does from the name and description.Would it be possible to rename it to make it more clear that it's for FileZilla Server instead of FileZilla?
I've done a lot of similar implementations like Z-modem protocol, and obscure protocols to various devices. I guess I'm as arcane as the protocol...I'm surprised you managed to figure out the overly arcane protocol.
- PolarbearDK
- 500 Syntax error
- Posts: 14
- Joined: 2014-09-16 13:30
- First name: Philip
- Last name: Hoppe
- Location: Copenhagen, Denmark
Re: Announcement: .NET API for automated creation of Users
Question: Is there a limit to how many users FileZilla can handle?
During load test of my API I noticed that when creating 10.000 groups and 100.000 users (excessive I know) only ~35.000 users were created.
During load test of my API I noticed that when creating 10.000 groups and 100.000 users (excessive I know) only ~35.000 users were created.
Re: Announcement: .NET API for automated creation of Users
Only two bytes available for number of users (or groups) via the protocol. Once it's bigger than 65535, it starts over from zero.
100000-65536=34464
I'm not happy with that protocol at all.
100000-65536=34464
I'm not happy with that protocol at all.
- PolarbearDK
- 500 Syntax error
- Posts: 14
- Joined: 2014-09-16 13:30
- First name: Philip
- Last name: Hoppe
- Location: Copenhagen, Denmark
Re: Announcement: .NET API for automated creation of Users
Right! I'll better throw an exception in that casebotg wrote:100000-65536=34464
Re: Announcement: .NET API for automated creation of Users
Next version will allow up to 16M users/groups in the protocol.
I'm sure it'll blow up elsewhere though
I'm sure it'll blow up elsewhere though
- PolarbearDK
- 500 Syntax error
- Posts: 14
- Joined: 2014-09-16 13:30
- First name: Philip
- Last name: Hoppe
- Location: Copenhagen, Denmark
Re: Announcement: .NET API for automated creation of Users
Keep me in the loop. I will update the API when this happens.botg wrote:Next version will allow up to 16M users/groups in the protocol.
I guess I need to check for ProtocolVersion here and there...
botg wrote:I'm sure it'll blow up elsewhere though
Re: Announcement: .NET API for automated creation of Users
I just called my friend Murphy and he told me it will blow up somewhere.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
- PolarbearDK
- 500 Syntax error
- Posts: 14
- Joined: 2014-09-16 13:30
- First name: Philip
- Last name: Hoppe
- Location: Copenhagen, Denmark
Re: Announcement: .NET API for automated creation of Users
FYI: I have updated nuget package and source code.
The managed API now supports all operations supported by the FileZilla Server interface.
The managed API now supports all operations supported by the FileZilla Server interface.
- PolarbearDK
- 500 Syntax error
- Posts: 14
- Joined: 2014-09-16 13:30
- First name: Philip
- Last name: Hoppe
- Location: Copenhagen, Denmark
Re: Announcement: .NET API for automated creation of Users
API has now been verified to work with FileZilla server versions: 0.9.46-0.9.49
Re: Announcement: .NET API for automated creation of Users
Very interesting, this post should be made sticky.
Re: Announcement: .NET API for automated creation of Users
Hi PolarbearDK!
I read through your description on github and I think I can use your program. I only want to get the content of the active transfers window.
Output line by line to a text file would be great. Can you explain to me how can I achieve that?
Thanks,
vrm
I read through your description on github and I think I can use your program. I only want to get the content of the active transfers window.
Output line by line to a text file would be great. Can you explain to me how can I achieve that?
Thanks,
vrm
- PolarbearDK
- 500 Syntax error
- Posts: 14
- Joined: 2014-09-16 13:30
- First name: Philip
- Last name: Hoppe
- Location: Copenhagen, Denmark
Re: Announcement: .NET API for automated creation of Users
The GetMessagesLoop() sample in https://github.com/PolarbearDK/Miracle. ... Program.cs should suit your needs.vrm42 wrote:Hi PolarbearDK!
I read through your description on github and I think I can use your program. I only want to get the content of the active transfers window.
Output line by line to a text file would be great. Can you explain to me how can I achieve that?
Thanks,
vrm
Use
Code: Select all
var messages = serverProtocol.ReceiveMessages(MessageType.Transfer);
-
- 500 Command not understood
- Posts: 3
- Joined: 2019-03-15 02:16
- First name: Paul
- Last name: Cameron
Re: Announcement: .NET API for automated creation of Users
Has anyone developed a command-line operated utility using this API that would run on an open source platform like Linux?