<connection-manager>
<max-connection>20</max-connection>
<max-login>10</max-login>
<anonymous-login-enabled>true</anonymous-login-enabled>
<max-anonymous-login>10</max-anonymous-login>
<default-idle-time>60</default-idle-time>
<timeout-poll-inverval>60</timeout-poll-inverval>
</connection-manager>
-->
<!-- Command factory configuration block
<command-factory>
<command>
<command-name>fully-qualified-command-class-name</command-name>
</command>
</command-factory>
-->
<!-- IP restrictor configuration block
<ip-restrictor>
<class>org.apache.ftpserver.iprestrictor.FileIpRestrictor</class>
<file>./res/ip.gen</file>
</ip-restrictor>
-->
<!-- Default properties file based user manager configuration block -->
<user-manager>
<class>org.apache.ftpserver.usermanager.PropertiesUserManager</class>
<admin>admin</admin>
<prop-file>./res/user.gen</prop-file>
<prop-password-encrypt>false</prop-password-encrypt>
</user-manager>
<!-- Database based user manager configuration
<user-manager>
<class>org.apache.ftpserver.usermanager.DbUserManager</class>
<admin>admin</admin>
<jdbc-driver>org.gjt.mm.mysql.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://localhost:3306/data</jdbc-url>
<jdbc-user>user</jdbc-user>
<jdbc-password>password</jdbc-password>
<sql-user-insert>INSERT INTO FTP_USER (uid, userpassword, homedirectory, enableflag,
writepermission, idletime, uploadrate, downloadrate) VALUES ('{uid}', '{userpassword}',
'{homedirectory}', '{enableflag}', '{writepermission}', {idletime}, {uploadrate},
{downloadrate})</sql-user-insert>
<sql-user-update>UPDATE FTP_USER SET
userpassword='{userpassword}',homedirectory='{homedirectory}',enableflag='{enableflag}',writep
ermission='{writepermission}',idletime={idletime},uploadrate={uploadrate},downloadrate={downlo
adrate} WHERE uid='{uid}'</sql-user-update>
<sql-user-delete>DELETE FROM FTP_USER WHERE uid = '{uid}'</sql-user-delete>
<sql-user-select>SELECT uid, userpassword, homedirectory, enableflag, writepermission,
idletime, uploadrate, downloadrate FROM FTP_USER WHERE uid = '{uid}'</sql-user-select>
<sql-user-select-all>SELECT uid FROM FTP_USER ORDER BY uid</sql-user-select-all>
<sql-user-authenticate>SELECT uid from FTP_USER WHERE uid='{uid}' AND
userpassword='{userpassword}'</sql-user-authenticate>
<sql-user-admin>SELECT uid FROM FTP_USER WHERE uid='{uid}' AND uid='admin'</sql-user-
admin>
</user-manager>
-->
<!-- LDAP based user manager
<user-manager>
<class>org.apache.ftpserver.usermanager.LdapUserManager</class>
<admin>admin</admin>
<ldap-url>ldap://localhost:389</ldap-url>
<ldap-admin-dn>cn=Manager,dc=apache,dc=org</ldap-admin-dn>
<ldap-admin-password>secret</ldap-admin-password>
<ldap-authentication>simple</ldap-authentication>
<ldap-user-base-dn>dc=apache,dc=org</ldap-user-base-dn>
</user-manager>
-->
<!-- file system manager configuration block
<file-system-manager>
<class>org.apache.ftpserver.filesystem.NativeFileSystemManager</class>
<create-home>false</create-home>
</file-system-manager>
-->
<!-- All ftplets
<ftplets>f1,f2</ftplets>
-->
<!-- Ftplet configuration
<ftplet>