Authorise based on Calling Station ID ?

Darren Ward (darrward) darrward at cisco.com
Mon Mar 10 21:46:19 CET 2014


Hi Alan

I guess the question is because the accounting files are the only place that contains both the calling-station-id and username how can I write unlang in the authorise that would be able to look up the active session to match the mac address?

i.e. I would need to parse the accounting files for the mac address and find the matching username then look up the username in the 'users' file to authorise with the appropriate attributes

I'm not sure how to do that lookup of files or cache

Darren

-----Original Message-----
From: freeradius-users-bounces+darrward=cisco.com at lists.freeradius.org [mailto:freeradius-users-bounces+darrward=cisco.com at lists.freeradius.org] On Behalf Of Alan DeKok
Sent: Monday, 10 March 2014 11:11 PM
To: FreeRadius users mailing list
Subject: Re: Authorise based on Calling Station ID ?

Darren Ward (darrward) wrote:
> The mac address was sent by the wifi controller as the 
> calling-station-id but the question is how do I match that field 
> against the user to authorise them?

$ man unlang

  It tells you how to do if/then/else checks.

  Perhaps you have a more specific question?

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list