Community discussions

MikroTik App
 
ravin
Member Candidate
Member Candidate
Topic Author
Posts: 173
Joined: Mon Jan 29, 2007 3:59 pm
Location: mym

concurrent users

Sat Feb 24, 2007 1:38 pm

hi

how can i specify concurrent users in radius server so that single user can not log in simultaneously from different location.

thanks
 
Diganet
Member
Member
Posts: 342
Joined: Sun Oct 30, 2005 9:30 pm
Location: Denmark
Contact:

Re: concurrent users

Sat Feb 24, 2007 4:42 pm

hi

how can i specify concurrent users in radius server so that single user can not log in simultaneously from different location.

thanks
This is something you set up on your RADIUS server, not on MT.

/Henrik
 
User avatar
mneumark
Member
Member
Posts: 370
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Sun Feb 25, 2007 9:16 am

Set the one-session-per-host=yes under /interface pppoe-server server
 
ravin
Member Candidate
Member Candidate
Topic Author
Posts: 173
Joined: Mon Jan 29, 2007 3:59 pm
Location: mym

Mon Feb 26, 2007 7:35 am

have done that setting in MT (one-session-per-user:yes)

also have put port-limit==1 in radius database (radreply table). still it's not working.

is there any other attribute in radius ? also checked putting simultaneous-use in radius, no luck.

thanks
 
User avatar
mneumark
Member
Member
Posts: 370
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Mon Feb 26, 2007 7:58 am

Try This:

If you want to allow only one user login at the same time with specific login name we have to “unhash” one line.
In “Simultaneous Use Checking Queries” section of the sql.conf file just “unhash” following line:

simul_count_query = "SELECT COUNT(*) FROM ${acct_table1} WHERE UserName='%{SQL-User-Name}' AND AcctStopTime = 0"
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Mon Feb 26, 2007 8:55 am

As a check item:

Simultaneous-Use := x

1 = One Session, 5 = 5 concurrent Sessions, etc etc etc

It obviously means that your Radius server needs to be setup properly.
 
ravin
Member Candidate
Member Candidate
Topic Author
Posts: 173
Joined: Mon Jan 29, 2007 3:59 pm
Location: mym

Mon Feb 26, 2007 10:59 am

have unhashed
simul_count_query = "SELECT COUNT(*) FROM ${acct_table1} WHERE UserName='%{SQL-User-Name}' AND AcctStopTime = 0"

but still didn't work. (restarted radiusd)

after doing above step, do I need to put anything in radius ?

thanks
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Mon Feb 26, 2007 6:09 pm

Yes, read the radius documentation. As someone else mentioned already, this is a radius issue, not a MT one.

For one, you need to have a valid query - which you do. For two, you need to have a working checkrad script. For three, you need to have valid and accurate accounting data. For four, as I mentioned, you need to have a properly configured radius server, that you understand. Unfortunately something out of the box won't do here. This is considered advanced radius configurations...

Who is online

Users browsing this forum: divB and 62 guests