node-spdyproxy icon indicating copy to clipboard operation
node-spdyproxy copied to clipboard

about radius!

Open canghai908 opened this issue 10 years ago • 3 comments

I use radius ,but the session of Simultaneous-Use is not effective!How can I do?Thank you!

canghai908 avatar Oct 13 '14 13:10 canghai908

I'm not sure what you're asking, can you elaborate a bit more?

igrigorik avatar Oct 13 '14 16:10 igrigorik

Sorry! I start spdyproxy for this method

spdyproxy -k ssl.key -c ssl.crt -p 443 -v --radius-server localhost  --radius-secret testing123 --rius-nasid 0.0.0.0 --rads-creds-ttl 1

I use freeradius 2.12+ mysql 5.1. My radius database name is radius

INSERT INTO radcheck (username,attribute,op,VALUE) VALUES ('test','Cleartext-Password',':=','test');
INSERT INTO radusergroup (username,groupname) VALUES ('test','VIP1');
INSERT INTO radgroupcheck (groupname,attribute,op,value) VALUES ('VIP1','Simultaneous-Use',':=','1');
INSERT INTO radius.nas VALUES ('1','0.0.0.0','The', 'other', NULL ,'testing123',NULL ,NULL ,'RADIUS Client');

But the user ‘test' can still log in and use the two clients!This is the reason?

canghai908 avatar Oct 13 '14 16:10 canghai908

@canghai908 ah, I see, thanks for the context. Current code doesn't do Simultaenous-Use checks: https://github.com/igrigorik/node-spdyproxy/blob/master/lib/radiushelper.js#L76-L96

It would have to be extended to support this use case.

igrigorik avatar Oct 14 '14 15:10 igrigorik