Hello,

 

I'm using FTPServer 1.0-M1-incubator with two listeners, one for implicit
SSL and another one for explicit SSL. This is because not all the clients
support both modes, but actually I want to force users to set up a SSL
cannel even if they are using explicit SSL mode. Is there any way to obtain
this with Mina FTPServer? By looking through the code I would say this is
not a 'configurable' possibility. 

 

My idea is to declare my own "AUTH"  method where I store an attribute in
'FTPSession' saying that the connection is using SSL.  Then I should
implement an "user" command where i check for both  implicitSSL mode or the
existence of this attribute ; do you think this is a good idea? Any tips?  

 

However, I guess that knowing if you're using SSL or not is a good idea for
MINA and my suggestion is that this should be implemented in the core (maybe
it is,and I missed it). The option of enforcing a SSL connection would
probably be best implemented through a filter/interceptor or maybe a
dispatcher of commands? Even AOP would seem fit for this.

 

Thanks a lot,  

 

David Catagliano

   

Reply via email to