Hi all,
I create a Custom UserManager in my FTP application and can't connect.
Because of max login limit.

The message I got is below:
connection failed : Maximum login limit has been reached.

But in my custom user manager getUserByName(String) method, I set maxlogin
param like this:

 User user = new BaseUser();
 //set Home, Enable connect, name, password
 ---
 ---
 List<Authority> autorities = new ArrayList<Authority>();
 // write user authorities: maxLogin, maxLoginPerIp

 int maxLogin = 10;
 int maxLoginPerIp = 5;

 autorities.add(new ConcurrentLoginPermission(maxLogin, maxLoginPerIp));
 // write maxUploadRate, maxDownloadRate
 int maxUploadRate = 4;
 int maxDownloadRate = 4;

 autorities.add(new TransferRatePermission(maxDownloadRate, maxUploadRate));

 // set user Authorities
 user.setAuthorities(autorities);

Can you give help me please?

Regards,
-- 
Bakary,

Reply via email to