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

TJ Saunders <[email protected]>
Newsgroups gmane.network.proftpd.user
Message-ID <1529338278.2565141.1411979632.34F07FFA@webmail.messagingengine.com>
> 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?

Cheers,
TJ

------------------------------------------------------------------------------
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.