Re: [Proftpd-user] Be sure a user can login once at the same time

Ian via Proftp-user <[email protected]>
Newsgroups gmane.network.proftpd.user
Message-ID <[email protected]>
 How do you handle the case where user logged in but got disconnect (e.g. firewall dropped connection) and attempt to reconnect.  Would this mechanism be able to pick up the disconnect event and allow the user to reconnect?

    On Monday, June 18, 2018, 10:48:22 AM PDT, Dieter Bloms <[email protected]> wrote:  
 
 On Mon, Jun 18, TJ Saunders wrote:

> > we have two proftpd servers behind a loadbalancer.
> > The user directories are shared on a nfs storage.
> > I want to be sure, that a user can login once at the same time, so
> > he/she can not open more than one session.
> > 
> > Is it possible to configure that for two or more servers ?
> 
> For this sort of use case, you would need some kind of shared storage
> (other than NFS), such as a SQL database, or Redis or Memcache, or
> something along those lines.  Using mod_sql, this could be done via a
> combination of updating a user-specific column on login (via SQLLog
> PASS ...), and checking that that column is not greater than 1 on
> login (via SQLUserWhereClause).  I don't think this can be done using
> Redis (yet, but it should!).
> 
> Are these mechanisms (SQL, Redis, Memcache) available to you?

ok, thank you for the hint. I think I will use a mysql database.

-- 
Regards

  Dieter

--
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
From field.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ProFTPD Users List  <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.