You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Vinod Kumar Singh, Noida" <vi...@hcl.in> on 2009/05/26 06:23:12 UTC

Queries

Hi,

I have been using this ftpserver and developed ftplet and deployed. I am bit new to ftp development and to this ftpserver, so facing few problems while development.
Following are the issues:

1)       I am not able to configure customized command. I will attach the configuration file and code for that.
2)       I have override the beforeCommand() method in ftplet and get some list and displayed the list but after that I am getting the following message
"425 Can't open data connection."
This means it tried to execute the actual ls (NLST) command and tried to open the connection and probably giving this message. So, my problem is how to suppress this message as I have already get the list and displayed using beforeCommand() method. Alternatively, is there a way that I can pass the string to be displayed and then it can actually happen as it is and won't get this message. This rises to write the customized command and not able to configure it.
3)       How can we use the SSL settings and test if it is working?
4)       How can we test secure FTP (sftp/ftps)?
5)       How to configure LDAP user authentication apart from file-user, db-user?

I have attached all the required files for your reference.
Any reply at the earliest will be great. Thanks a lot in advance.

Thanks and Regards,
Vinod


DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

Re: Queries

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Please do not cross-post to multiple mailing lists.

On Tue, May 26, 2009 at 6:23 AM, Vinod Kumar Singh, Noida <vi...@hcl.in> wrote:
> 1)       I am not able to configure customized command. I will attach the
> configuration file and code for that.

Attachments are mostly stripped on this list. Please upload the files
somewhere and post a link.

> 2)       I have override the beforeCommand() method in ftplet and get some
> list and displayed the list but after that I am getting the following
> message
>
> “425 Can't open data connection.”
>
> This means it tried to execute the actual ls (NLST) command and tried to
> open the connection and probably giving this message. So, my problem is how
> to suppress this message as I have already get the list and displayed using
> beforeCommand() method. Alternatively, is there a way that I can pass the
> string to be displayed and then it can actually happen as it is and won’t
> get this message. This rises to write the customized command and not able to
> configure it.

As you probably know, NLST return it's data on a data connection.
Thus, if you want to replace the NLST command implementation from an
Ftplet, you need to handle the data connection, and then tell the
Ftplet container to skip the command execution.

Did I understand you problem correctly? If not, please elaborate on
more exactly what you try to do in your Ftplet.

> 3)       How can we use the SSL settings and test if it is working?

Our documentation covers how you configure it. To test, either use any
FTP client that supports SSL, or if you want to automated, have a look
at commons-net.

> 4)       How can we test secure FTP (sftp/ftps)?

We do not support SFTP, only FTPS.

> 5)       How to configure LDAP user authentication apart from file-user,
> db-user?

We no longer support the LDAP user manager, but it would be fairly
simple to write one (feel free to donate it back to the project if you
do, we would be interested in it).

/niklas