Re: Login witth same user/pass

Mathieu Bouchonnet <[email protected]>
Newsgroups gmane.network.nocat
Message-ID <20041103190036.45c68819@mbouchonnet2>
Le Mon, 25 Oct 2004 11:09:33 +0200
"Omar Garcia" <[email protected]> ecrivait:

> Hi list,
> 
> I have test login with 3 computers with same user / pass and its possible. The users authenticates against a Mysql database.
> Could I disable this feature and prohibit login with same login/pass at the same time?
> 
> 
> Regards

Hi,

You could do this quite easyly by adding a flag in your mysql database when a user is logged in.
Then when you do your query to check the password, you could just add a "select " to see if it is the case.

Here, when a user logs in, we add an entry in our dns server (on the nocat box) to match the user name given with the ip adress.
So if someone logs into the WIFI, his computer name will be student00048545.escp.edu, if someone else tries to log in using the same name, we'll have two computers with the same name, but it should be easy to check if a name already exist then we just close the connection.

Regards,
Mathieu Bouchonnet
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.