type: ftpserver title: FtpServer Server

Server

Some configuration is done for the entire server. This affects all listeners, for login limits, the sum of the logins for all listeners are enforced.

Using the XML configuration, this following examples shows all available configurations for the server

<server xmlns="http://mina.apache.org/ftpserver/spring/v1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://mina.apache.org/ftpserver/spring/v1 http://mina.apache.org/ftpserver/ftpserver-1.0.xsd"
    id="server"     
    max-logins="500"
    anon-enabled="false"
    max-anon-logins="123"
    max-login-failures="124"
    login-failure-delay="125">
...
</server>

server element

AttributeDescriptionRequiredDefault value
idA unique identifier for this server within this XML configurationYes{{< html “ ” >}}
max-threadsThe maximum number of threads used in the thread pool for handling client connectionsNomax-logins, or 16 if neither value is set
max-loginsThe maximum number of simultaneous usersNo10
max-anon-loginsThe maximum number of simultaneous anonymous usersNo10
anon-enabledAre anonymous logins enabled?Notrue
max-login-failuresThe number of failed login attempts before the connection is closedNo3
login-failure-delayThe number of milliseconds that the connection is delayed after a failed login attempt. Used to limit to possibility of brute force guessing passwords.No500