Re: [Proftpd-user] Be sure a user can login once at the same time
Dieter Bloms <[email protected]>
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <[email protected]> |
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