source:
extensions/net.sf.basedb.ftp/trunk/README
@
741
Last change on this file since 741 was 741, checked in by , 15 years ago | |
---|---|
|
|
File size: 3.4 KB |
Requirements
- BASE 2.8.0 or later.
Introduction
This package is an extension package to BASE that installs a small FTP server as part of the web server. The code in this package currently uses beta software from the Apache foundation. Thus, we can't make any guarantee about functionality or stability of this extension. We recommend testing on a development server before using this software in a production environment. For the same reason we can't make any promises about API compatibility between releases. The API may change at any time.
- The homepage for this extension: http://baseplugins.thep.lu.se/wiki/net.sf.basedb.ftp
- The Apache FTP server site: http://mina.apache.org/ftpserver/index.html
Installation
- Download the
base-ftpserver-*.tar.gz
file. - Unpack the downloaded file to a directory of your choice.
- Copy the
ftp-config.xml
file toWEB-INF/classes
directory. - The default
ftp-config.xml
file creates a regular FTP service with the control connection on port 2121. There is also an example of an SSL-enabled configuration. For more information about configuration options see: http://mina.apache.org/ftpserver/documentation.html - Copy the
base-ftpserver.jar
file and thelib
directory, including sub- directories and files, to your BASE extensions directory,WEB-INF/extensions
. - Run the
Extensions -> Manual scan
command to install the extension. If you have enabled automatic installation, just sit back and wait for it to find the FTP server extension. - The FTP Server should now be running, but it only allows the root user to
login. To enable other users to login you have to start an FTP client, connect
to your BASE FTP server and login as root. This will register the FTP server
as a new client application that is shared to
Everyone
. To limit which users that can access the FTP server go toAdminstrate -> Clients
and change the sharing options for the FTP Server. - Done.
Known issues
- BASE allows that a directory has the same name as a file. This may confuse FTP clients since that is normally not allowed. The result for certain operations is undefined for files and directories that has the same name.
Tips and tricks
- If you want to try out an SSL enabled FTP server, but doesn't have a certificate, you may create one with the following command:
keytool -genkey -keystore test.jks -storetype JKS -storepass test -keypass test -alias test
Compiling
To compile this package you also need:
- Ant 1.6
- Java 1.6
Follow these instructions:
- Download the source code from the subversion repository. See http://baseplugins.thep.lu.se/wiki/net.sf.basedb.ftp for instructions.
- Type
ant download-lib
to automatically download the BASE core JAR file that are neeed for compilation. You can also do this manually by copying the BASE2Core.jar and BASE2Webclient.jar from the BASE installation directory (<basedir>/www/WEB-INF/lib/
) to the./lib/compile
directory.
- Type
ant
to compile the code and generate thebase-ftpserver.jar
file in the project directory.
- Use
ant package
to create a downloadable tar.gz package.
Tip: If you need different values for any of the properties defined in the 'build.xml' file, create a file named 'build.properties' and set the values there.