concurrent users

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

Set the one-session-per-host=yes under /interface pppoe-server server

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

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”

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.

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

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…