Simultaneous-Use

Anton Yuzhaninov <[email protected]>
Newsgroups gmane.comp.gnu.radius.general
Organization www.icn.bmstu.ru
Message-ID <[email protected]>
Hello,

How i can redefine for some users default value for Simultaneous-Use?

In etc/raddb/users:

DEFAULT Auth-Type = SQL,
        Simultaneous-Use = 1
        Service-Type = Framed-User,
        Framed-Protocol = PPP

in etc/raddb/sqlserver:

check_attr_query  SELECT attr,value,op FROM users_attribute WHERE login='%u' AND op IS NOT NULL

mysql> select * from users_attribute where login='anton';
+----+-------+------------------+-------+------+
| id | login | attr             | value | op   |
+----+-------+------------------+-------+------+
|  2 | anton | Simultaneous-Use | 2     | =    |
+----+-------+------------------+-------+------+

But a can't login 2 sessions:

Aug  2 15:23:25 vetlan radiusd: Auth.warning: (Access-Request nas1 223 "anton"): Multiple logins: [anton] max. 1

-- 
 WBR,
 Anton Yuzhaninov.
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.