incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: incubator-ftpserver/res/conf ftpd.properties ftpd.xml
Date Wed, 07 Sep 2005 05:12:44 GMT
rana_b      2005/09/06 22:12:44

  Added:       res/conf ftpd.properties ftpd.xml
  Log:
  sample configurations
  
  Revision  Changes    Path
  1.1                  incubator-ftpserver/res/conf/ftpd.properties
  
  Index: ftpd.properties
  ===================================================================
  ## Properties file based configuration
  
  ##-----------------------------------------------------------------------------
  ## This is the default server socket factory configuration. If you want to
  ## support explicit SSL connection, please specify ssl block
  ##-----------------------------------------------------------------------------
  #config.socket-factory.class=org.apache.ftpserver.socketfactory.FtpSocketFactory
  #config.socket-factory.address=localhost
  #config.socket-factory.port=21
  #config.socket-factory.ssl.keystore-file=.keystore
  #config.socket-factory.ssl.keystore-password=password
  #config.socket-factory.ssl.keystore-type=JKS
  #config.socket-factory.ssl.keystore-protocol=TLS
  #config.socket-factory.ssl.keystore-algorithm=SunX509
  #config.socket-factory.ssl.client-authentication=false
  #config.socket-factory.ssl.key-password=password
  
  
  ##-----------------------------------------------------------------------------
  ## This is the secure server socket factory configuration.
  ##-----------------------------------------------------------------------------
  #config.socket-factory.class=org.apache.ftpserver.socketfactory.SSLFtpSocketFactory
  #config.socket-factory.address=localhost
  #config.socket-factory.port=21
  #config.socket-factory.ssl.keystore-file=.keystore
  #config.socket-factory.ssl.keystore-password=password
  #config.socket-factory.ssl.keystore-type=JKS
  #config.socket-factory.ssl.keystore-protocol=TLS
  #config.socket-factory.ssl.keystore-algorithm=SunX509
  #config.socket-factory.ssl.client-authentication=false
  #config.socket-factory.ssl.key-password=password
  
  
  ##------------------------------------------------------------------------------
  ## Data connection configuration
  ## If you want to use encrypted data connection, please use ssl block.
  ##------------------------------------------------------------------------------
  #config.data-connection.pasv-address=localhost
  #config.data-connection.pasv-port=0
  #config.data-connection.port-enable=true
  #config.data-connection.port-ip-check=false
  #config.data-connection.ssl.keystore-file=.keystore
  #config.data-connection.ssl.keystore-password=password
  #config.data-connection.ssl.keystore-type=JKS
  #config.data-connection.ssl.keystore-protocol=TLS
  #config.data-connection.ssl.keystore-algorithm=SunX509
  #config.data-connection.ssl.client-authentication=false
  #config.data-connection.ssl.key-password=password
  
  
  ##-----------------------------------------------------------------------------
  ## Standard users admin and anonymous will be created by default.
  ##-----------------------------------------------------------------------------
  #config.create-default-user=true
  
  
  ##-----------------------------------------------------------------------------
  ## Ftp message configuration block
  ##-----------------------------------------------------------------------------
  #config.message.class=org.apache.ftpserver.message.MessageResourceImpl
  #config.message.custom-message-file=./res/messages.gen
  
  
  ##-----------------------------------------------------------------------------
  ## Connection service configuration
  ##-----------------------------------------------------------------------------
  #config.connection-service.max-connection=20
  #config.connection-manager.max-login=10
  #config.connection-service.anonymous-login-enabled=true
  #config.connection-service.max-anonymous-login=10
  #config.connection-service.default-idle-time=60
  #config.connection-service.connection-poll-inverval=60
  
  
  ##-----------------------------------------------------------------------------
  ## This is the default file based logger configuration.
  ##-----------------------------------------------------------------------------
  #config.logger.class=org.apache.ftpserver.logger.FileLogger
  #config.logger.level=1
  #config.logger.date-format=yyyy-MM-dd'T'HH:mm:ss
  #config.logger.dir=./res/log
  #config.logger.max-file-size=1024
  #config.logger.flush=true
  
  
  ##-----------------------------------------------------------------------------
  ## Console based logger configuration.
  ##-----------------------------------------------------------------------------
  #config.logger.class=org.apache.ftpserver.logger.ConsoleLogger
  #config.logger.level=1
  #config.logger.date-format=yyyy-MM-dd'T'HH:mm:ss
  
  
  ##-----------------------------------------------------------------------------
  ## This is the IP restrictor configuration
  ##-----------------------------------------------------------------------------
  #config.ip-restrictor.class=org.apache.ftpserver.iprestrictor.FileIpRestrictor
  #config.ip-restrictor.file=./res/ip.gen
  
  
  ##-----------------------------------------------------------------------------
  ## Properties based default user manager configuration. 
  ##-----------------------------------------------------------------------------
  #config.user-manager.class=org.apache.ftpserver.usermanager.PropertiesUserManager
  #config.user-manager.admin=admin
  #config.user-manager.prop-file=./res/user.gen
  #config.user-manager.prop-password-encrypt=true
  
  
  ##-----------------------------------------------------------------------------
  ## Database based user manager configuration
  ##-----------------------------------------------------------------------------
  #config.user-manager.class=org.apache.ftpserver.usermanager.DbUserManager
  #config.user-manager.admin=admin
  #config.user-manager.jdbc-driver=org.gjt.mm.mysql.Driver
  #config.user-manager.jdbc-url=jdbc\:mysql\://localhost:3306/data
  #config.user-manager.jdbc-user=user
  #config.user-manager.jdbc-password=password
  #config.user-manager.sql-user-insert=INSERT INTO FTP_USER (uid, userpassword, homedirectory,
enableflag, writepermission, idletime, uploadrate, downloadrate) VALUES ('{uid}', '{userpassword}',
'{homedirectory}', '{enableflag}', '{writepermission}', {idletime}, {uploadrate}, {downloadrate})
  #config.user-manager.sql-user-update=UPDATE FTP_USER SET userpassword\='{userpassword}',homedirectory\='{homedirectory}',enableflag\='{enableflag}',writepermission\='{writepermission}',idletime\={idletime},uploadrate\={uploadrate},downloadrate\={downloadrate}
WHERE uid\='{uid}'
  #config.user-manager.sql-user-delete=DELETE FROM FTP_USER WHERE uid \= '{uid}'
  #config.user-manager.sql-user-select=SELECT uid, userpassword, homedirectory, enableflag,
writepermission, idletime, uploadrate, downloadrate FROM FTP_USER WHERE uid \= '{uid}'
  #config.user-manager.sql-user-select-all=SELECT uid FROM FTP_USER ORDER BY uid
  #config.user-manager.sql-user-authenticate=SELECT uid from FTP_USER WHERE uid\='{uid}' AND
userpassword\='{userpassword}'
  
  
  ##-----------------------------------------------------------------------------
  ## LDAP based user manager configuration
  ##-----------------------------------------------------------------------------
  #config.user-manager.class=org.apache.ftpserver.usermanager.LdapUserManager
  #config.user-manager.admin=admin
  #config.user-manager.ldap-url=ldap\://localhost\:389
  #config.user-manager.ldap-admin-dn=cn=Manager,dc=apache,dc=org
  #config.user-manager.ldap-admin-password=secret
  #config.user-manager.ldap-authentication=simple
  #config.user-manager.ldap-user-base-dn=dc\=apache,dc\=org
  
  
  ##-----------------------------------------------------------------------------
  ## File system manager configuration.
  ##-----------------------------------------------------------------------------
  #config.file-system-manager.class=org.apache.ftpserver.filesystem.OSVirualFileSystemManager
  #config.file-system-manager.create-home=false
  
  
  ##------------------------------------------------------------------------------
  ## All ftplets
  ##------------------------------------------------------------------------------
  #config.ftplets=f1,f2
  
  
  ##------------------------------------------------------------------------------
  ## Ftplet f1 configuration
  ##------------------------------------------------------------------------------
  #config.ftplet.f1.class=org.apache.ftpserver.ftplet.Ftplet1
  #config.ftplet.f1.param=value1
  
  
  ##------------------------------------------------------------------------------
  ## Ftplet f2 configuration
  ##------------------------------------------------------------------------------
  #config.ftplet.f2.class=org.apache.ftpserver.ftplet.Ftplet2
  #config.ftplet.f2.param=value2
  
  
  
  1.1                  incubator-ftpserver/res/conf/ftpd.xml
  
  Index: ftpd.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <!-- XML file based configuration -->
  <config>
      
      <!-- Standard socket factory. If you want to support explicit 
           secure connection, please specify the ssl block 
      <socket-factory>
          <class>org.apache.ftpserver.socketfactory.FtpSocketFactory</class>
          <address>localhost</address>
          <port>21</port>
          <ssl>
              <keystore-file>./res/.keystore</keystore-file>
              <keystore-password>password</keystore-password>
              <keystore-type>JKS</keystore-type>
              <keystore-protocol>TLS</keystore-protocol>
              <keystore-algorithm>SunX509</keystore-algorithm>
              <client-authentication>false</client-authentication>
              <key-password>password</key-password>
          </ssl>
      </socket-factory>
      -->
      
      
      <!-- Secure server socket factory. In this case you have to 
           specify the ssl block
      <socket-factory>
          <class>org.apache.ftpserver.socketfactory.SSLFtpSocketFactory</class>
          <address>localhost</address>
          <port>21</port>
          <ssl>
              <keystore-file>./res/.keystore</keystore-file>
              <keystore-password>password</keystore-password>
              <keystore-type>JKS</keystore-type>
              <keystore-protocol>TLS</keystore-protocol>
              <keystore-algorithm>SunX509</keystore-algorithm>
              <client-authentication>false</client-authentication>
              <key-password>password</key-password>
          </ssl>
      </socket-factory>
      -->
      
      
      <!-- Data connection configuration. If you want to support secure 
           data connection, please specify the ssl block.
      <data-connection>
          <pasv-address>localhost</pasv-address>
          <pasv-port>0</pasv-port>
          <port-enable>true</port-enable>
          <port-ip-check>false</port-ip-check>
          <ssl>
              <keystore-file>./res/.keystore</keystore-file>
              <keystore-password>password</keystore-password>
              <keystore-type>JKS</keystore-type>
              <keystore-protocol>TLS</keystore-protocol>
              <keystore-algorithm>SunX509</keystore-algorithm>
              <client-authentication>false</client-authentication>
              <key-password>password</key-password>
          </ssl>
      </data-connection>
      -->
      
      
      <!-- Standard users admin and anonymous will be created by default.
      <create-default-user>true</create-default-user>
      -->
      
      
      <!-- Ftp message configuration block
      <message>
          <class>org.apache.ftpserver.message.MessageResourceImpl</class>
          <custom-message-file>./res/messages.gen</custom-message-file>
      </message>
      -->
      
      
      <!-- Connection service configuration block
      <connection-service>
          <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>
          <connection-poll-inverval>60</connection-poll-inverval>
      </connection-service>
      -->
      
      
      <!-- Default file based logger configuration block
      <logger>
          <class>org.apache.ftpserver.logger.FileLogger</class>
          <level>1</level>
          <date-format>yyyy-MM-dd'T'HH:mm:ss</date-format>
          <dir>./res/log</dir>
          <max-file-size>1024</max-file-size>
          <flush>true</flush>
      </logger>
      -->
      
      
      <!-- Console logger configuration block
      <logger>
          <class>org.apache.ftpserver.logger.ConsoleLogger</class>
          <level>1</level>
          <date-format>yyyy-MM-dd'T'HH:mm:ss</date-format>
      </logger>
      -->
      
      
      <!-- 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>true</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}',writepermission='{writepermission}',idletime={idletime},uploadrate={uploadrate},downloadrate={downloadrate}
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>
      </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.OSVirualFileSystemManager</class>
          <create-home>false</create-home>
      </file-system-manager>
      -->
      
      
      <!-- All ftplets
      <ftplets>f1,f2</ftplets>
      -->
      
      
      <!-- Ftplet configuration
      <ftplet>
          <f1>
              <class>org.apache.ftpserver.ftplet.Ftplet1</class>
              <param>value1</param>
          </f1>
          <f2>
              <class>org.apache.ftpserver.ftplet.Ftplet2</class>
              <param>value2</param>
          </f2>
      </ftplet>
      -->
      
  </config>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message