mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Gustavsson <nik...@protocol7.com>
Subject Re: Disable anonymous access with an embedded ftpserver
Date Mon, 21 Sep 2009 10:49:45 GMT
On Fri, Sep 18, 2009 at 6:24 PM, Jonathan Bishop
<jonathan@flexibleinformatics.com> wrote:
> I have an Embedded FTP server (ftpserver-core-1.0.2) and I can't figure out
> how to disable Anonymous access.  I've tried to follow how the non-embedded
> version, but I get lost in a field of BeanDefinitions.  Anybody know how to
> disable it?

Something like this should do the work:
        ConnectionConfigFactory ccf = new ConnectionConfigFactory();
        ccf.setAnonymousLoginEnabled(false);
        serverFactory.setConnectionConfig(ccf.createConnectionConfig());


/niklas

Mime
View raw message