Isn’t cisco-avpair a multivalue attribute? To do it properly, you’d have to check each instance for an ssid wouldn’t you? In V3, we do this with foreach, but I’m not sure in V2. Typically the ssid attribute sent from a cisco ap is the first one, but maybe that’s not always the case. If I’m way off track just ignore me! J From: freeradius-users-bounces+andy.franks=sath.nhs.uk@lists.freeradius.org [mailto:freeradius-users-bounces+andy.franks=sath.nhs.uk@lists.freeradius.org] On Behalf Of Dan Fleming Sent: 29 July 2014 13:27 To: FreeRadius users mailing list Subject: Re: Cisco AV Pair Reading the documentation I am still at a loss. I am familiar on how to do this with Cisco ACS, but looking to do it now with free radius. I now have it working if I check the Cisco-avpair under the user in dalo Radius (Cisco-avpair =~ .*SSID$) . Is there a way to configure this so i dont have to keep typing that attribute under every user? I thought the group would work, but from what you are saying it sounds like it wouldnt. I have tried saying if it doesnt match the above regex then the Radgroupreply says ( Auth-Typ := Reject) Thank you for your time. Dan On Mon, Jul 28, 2014 at 2:15 PM, Alan DeKok <aland@deployingradius.com> wrote:
Dan Fleming wrote:
Thank you I have read through it makes sense. So how do I do something based on the results?
The SQL document talks about "radreply", which lets you do something with the results.
I would like to only authorize a connection if the users password matches and they are connecting to the correct ssid in the av-pair. Is there a HOWTO or other document outlining how to do that?
No. Because that's a specific solution. The documents describe how the server works, and lets you put it together yourself.
For your situation, the key is to understand that the server accepts users if their password is correct. If you add more conditional checks, the user is still accepted.
The solution is either to:
a) set the "known good" password ONLY if the conditions also match. The SQL documentation describes how to set conditions
b) if the password is stored somewhere else (e.g. LDAP), then you need to REJECT the user if the conditions match.
Alan DeKok. -
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 29 Jul 2014, at 10:24, Franks Andy (RLZ) IT Systems Engineer <Andy.Franks@sath.nhs.uk> wrote:
Isn’t cisco-avpair a multivalue attribute? To do it properly, you’d have to check each instance for an ssid wouldn’t you? In V3, we do this with foreach, but I’m not sure in V2. Typically the ssid attribute sent from a cisco ap is the first one, but maybe that’s not always the case. If I’m way off track just ignore me! J
There's no support in v2. It was added for processing Cisco-AVPAIR in v3. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
I have noticed called-station-id also contains the SSID. Is there any way to check this attribute in bulk so I dont have to add this check to everyuser. If the user is connecting to the wrong ssid I would like to deny them. Regards, Dan On Tue, Jul 29, 2014 at 11:38 AM, Arran Cudbard-Bell < a.cudbardb@freeradius.org> wrote:
On 29 Jul 2014, at 10:24, Franks Andy (RLZ) IT Systems Engineer < Andy.Franks@sath.nhs.uk> wrote:
Isn’t cisco-avpair a multivalue attribute? To do it properly, you’d have to check each instance for an ssid wouldn’t you? In V3, we do this with foreach, but I’m not sure in V2. Typically the ssid attribute sent from a cisco ap is the first one, but maybe that’s not always the case. If I’m way off track just ignore me! J
There's no support in v2.
It was added for processing Cisco-AVPAIR in v3.
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 29/07/2014 16:47, Dan Fleming wrote:
I have noticed called-station-id also contains the SSID. Is there any way to check this attribute in bulk so I dont have to add this check to everyuser. If the user is connecting to the wrong ssid I would like to deny them.
Best option is: 1. Define a local attribute in raddb/dictionary. Please read the comments about attribute numbering, but something like ATTRIBUTE My-SSID 3001 string 2. Parse the Called-Station-Id into that with unlang: authorize { if (Called-Station-Id =~ /(.+):(.+)/) { update request { Called-Station-Id := "%{1}" My-SSID = "%{2}" } } ... } 3. Write whatever policy you want re: SSIDs e.g. authorize { ... if (My-SSID == "staff") { if (Ldap-Group == "staff") { } else { reject } } ... }
Hey Phil and others, On Tue, Jul 29, 2014 at 11:05 AM, Phil Mayers <p.mayers@imperial.ac.uk> wrote:
On 29/07/2014 16:47, Dan Fleming wrote:
I have noticed called-station-id also contains the SSID. Is there any way to check this attribute in bulk so I dont have to add this check to everyuser. If the user is connecting to the wrong ssid I would like to deny them.
Best option is:
1. Define a local attribute in raddb/dictionary. Please read the comments about attribute numbering, but something like
I'm late to the party. What comments about attribute numbering? I've done some quick googles and have man'ed "dictionary" and can't find any recommendations about local attribute numbering. Clue me in, please? Thanks! -mz
On 30-07-14 18:05, Matt Zagrabelny wrote:
Hey Phil and others,
On Tue, Jul 29, 2014 at 11:05 AM, Phil Mayers <p.mayers@imperial.ac.uk> wrote:
On 29/07/2014 16:47, Dan Fleming wrote:
I have noticed called-station-id also contains the SSID. Is there any way to check this attribute in bulk so I dont have to add this check to everyuser. If the user is connecting to the wrong ssid I would like to deny them.
Best option is:
1. Define a local attribute in raddb/dictionary. Please read the comments about attribute numbering, but something like
I'm late to the party. What comments about attribute numbering? I've done some quick googles and have man'ed "dictionary" and can't find any recommendations about local attribute numbering.
https://github.com/FreeRADIUS/freeradius-server/blob/master/raddb/dictionary... -- Herwin Weststrate
On Wed, Jul 30, 2014 at 11:17 AM, Herwin Weststrate <herwin@quarantainenet.nl> wrote:
I'm late to the party. What comments about attribute numbering? I've done some quick googles and have man'ed "dictionary" and can't find any recommendations about local attribute numbering.
https://github.com/FreeRADIUS/freeradius-server/blob/master/raddb/dictionary...
Thanks Herwin! -m
participants (6)
-
Arran Cudbard-Bell -
Dan Fleming -
Franks Andy (RLZ) IT Systems Engineer -
Herwin Weststrate -
Matt Zagrabelny -
Phil Mayers