Disconnect user session on data counter

Matthew Newton mcn4 at leicester.ac.uk
Fri Dec 4 11:34:14 CET 2015


On Fri, Dec 04, 2015 at 10:04:33AM +0530, Anirudh Malhotra wrote:
> Maybe my question is silly or not precise enough but I understood that my
> problem can be achieved by CoA, Now my NAS is a cisco WLC and when I am
> trying to send a disconnect using radclient it gives me following error.
> 
> echo "Acct-Session-Id=566111b0/e4:25:e7:bb:b9:69/294550,User-Name =
> anirudh,NAS-IP-Address=10.10.10.10" | radclient 10.10.10.10:1700 disconnect
> anirudhradius -x
> Sending Disconnect-Request of id 171 to 10.10.10.10 port 1700
>     Acct-Session-Id = "566111b0/e4:25:e7:bb:b9:69/294550"
>     User-Name = "anirudh"
>     NAS-IP-Address = 10.10.10.10
> rad_recv: Disconnect-NAK packet from host 10.10.10.10 port 1700, id=171,
> length=26
>     Error-Cause = Session-Context-Not-Found
> 
> Anyone came accross this? Please help me out

I found Cisco CoA disconnect tricky to get working, but it is
possible when you've done everything right. I wrote a blog post
about it a few years ago:

http://notes.asd.me.uk/2011/02/25/cisco-wireless-lan-controller-radius-disconnect/

You have to get the Service-Type correct - the same as in the
accounting packets, then include Calling-Station-Id or User-Name.

It's possible you can use other combinations of attributes
(e.g. Service-Type and Acct-Session-Id) but I haven't tried it.

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list