[prev in list] [next in list] [prev in thread] [next in thread]
List: freeradius-users
Subject: Re: How to match Vendor specific attribute
From: Alan DeKok <aland () deployingradius ! com>
Date: 2023-10-23 23:55:47
Message-ID: 99D812CA-4311-4FE3-877C-6C00E7E6904D () deployingradius ! com
[Download RAW message or body]
On Oct 23, 2023, at 4:53 PM, Vishnu <vishnu.netcon@gmail.com> wrote:
> I am using freeradius as a proxy, I want to match the VSA with the if
> statement and add another VSA based on that. Below mentioned is my
> custom policy config.
>
> custom_policy {
> if (NAS-Identifier =~ /DUBDC1-EX2200-*/) {
> if (%{Switch-User-Policy} =~ /.*switch-superuser.*/)
You shouldn't need to use %{..}. Just refer to the attribute by name.
> if i use .* instead of /.*switch-superuser.*/ it works. but i want to match
> the string. Please let me know how i can achieve this.
If one there was some kind of debug output which could help.
> Below is the Access accept message.
Hmm.... that's not helpful at all.
Read this: http://wiki.freeradius.org/list-help
Ask *good* questions. "I did stuff and it didn't work" isn't a good question.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic