Hello Dan,
Max login per user are set using "authorities", an example from
DBUserManager:
List<Authority> authorities = new ArrayList<Authority>();
if (rs.getBoolean(ATTR_WRITE_PERM)) {
authorities.add(new WritePermission());
}
authorities.add(new ConcurrentLoginPermission(rs
.getInt(ATTR_MAX_LOGIN_NUMBER), rs
.getInt(ATTR_MAX_LOGIN_PER_IP)));
authorities.add(new TransferRatePermission(rs
.getInt(ATTR_MAX_DOWNLOAD_RATE), rs
.getInt(ATTR_MAX_UPLOAD_RATE)));
In this case you need ConcurrentLoginPermission but if users are going to
upload files you also need WritePermission.
2009/2/2 Dan <[email protected]>
> Have looked around Niklas I only see:
>
> setMaxLogins(int) - Method in class
> org.apache.ftpserver.ConnectionConfigFactory
>
> Where is the call to set the max logins by user? I don't see any methods
> for
> UserManager etc.
>
> Thanks,
>
> Dan
>
> -----Original Message-----
> From: Niklas Gustavsson [mailto:[email protected]]
> Sent: February-02-09 5:07 PM
> To: [email protected]
> Subject: Re: Sent 421: Maximum login limit has been reached
>
> On Mon, Feb 2, 2009 at 10:16 PM, Dan <[email protected]> wrote:
> > I am getting 421 Maximum login limit has been reached. Logs.
> >
> > Is there a way to setup a maximum login limit per user? Can't see in
> > the docs where this is documented.
>
> Yes, this can be set both for the entire server, and per user. For example,
> if you're using the file based user manager, you can find examples of such
> files (including this setting) in the distribution.
> You can also find the full documentation of the format in the Javadocs. Let
> us know if you need further help!
>
> /niklas
>
>