How to close a client connection ?

2011-04-06 Thread frank buloup
Hello, is there a simple way to force a client connection to be closed ? thnks, frank -- Frank Buloup 04 91 17 22 71 Institut des Sciences du Mouvement UMR 6233 CNRS Université de le Méditerranée 163 avenue de Luminy 13288 Marseille Cedex 9 Fax : 04 91 17 22 52

Re: java.net.ConnectException: Connection refused

2011-04-06 Thread frank buloup
I'm using org.apache.commons.net.ftp for client which is also embedded in application. I've just tried using FireFP plugin for Firefox and it worked in local network . Will try from outside this evening and if it does not work, problem should probably come from our network architecture (IP was

Re: java.net.ConnectException: Connection refused

2011-04-06 Thread Sai Pullabhotla
You should be able to see the logs from your FTP client and see what the client is sending with the PORT command. If the client's log shows a valid address, the the firewalls are messing it up. If the client itself is showing 0.0.0.0, the you have issues with the client software or the TCP setup

Re: Performing Certificate-only authentication with FTP/S server

2011-04-06 Thread Niklas Gustavsson
Hi My suggestion would be to let the client execute the PASS command with any password (blank, fixed, random). Then, implement UserManager and perform the certificate check in the authenticate() method. The certificate chain is included in the UsernamePasswordAuthentication object. We actually

Re: How to close a client connection ?

2011-04-06 Thread Niklas Gustavsson
2011/4/6 frank buloup franck.bul...@univmed.fr: is there a simple way to force a client connection to be closed ? Assuming you want to close it from the server. You can return FtpletResult.DISCONNECT from an Ftplet, which will cause the server to close the client connection. /niklas

Re: Performing Certificate-only authentication with FTP/S server

2011-04-06 Thread Sai Pullabhotla
Thanks, Niklas. Unfortunately we cannot control the clients. We were told that the client's are built to never send PASS command and expect either a 2XX reply on the USER command or 5XX reply. In other words, the server should perform the authentication soon after it receives the USER command (if

Re: How to close a client connection ?

2011-04-06 Thread frank buloup
Ok, in that case disconnection is always synchronised to any command coming from client. I could have imagine a way to disconnect a client that is not event client related. I mean a way to retrieve session from user ID, and a simple method that close corresponding session asynchronously, even

Re: How to close a client connection ?

2011-04-06 Thread Sai Pullabhotla
I think the OP wants to have a way to kill any active sessions in the FTP server. I'm assuming he would have a GUI where he can see the active sessions, and select one or more sessions and disconnect them. Is this what you want Frank? On Wed, Apr 6, 2011 at 11:52 AM, Niklas Gustavsson