Hi, Phil

Better yet, don't use the "suffix" module; look for the realm and strip it
yourself:

authorize {
  if (User-Name =~ /^(.*)@(.+)$/) {
    update request {
      Stripped-User-Name := "%{1}"
      Realm := "%{2}"
    }
  }
}

See the policy.conf/policy.d and list archives for better regexps for
NAI-style usernames.

is it in policy.conf or sites-enabled/default?
if in policy.conf i can't find format like authorize {}, but i find
cui_authorize


On Thu, May 30, 2013 at 4:08 PM, Phil Mayers <p.may...@imperial.ac.uk>wrote:

> On 30/05/13 08:16, Iliya Peregoudov wrote:
>
>> You should designate realm 
>> wlan.mnc001.mcc510.**3gppnetwork.org<http://wlan.mnc001.mcc510.3gppnetwork.org>as
>>  locally
>> served in raddb/proxy.conf:
>>
>
> Better yet, don't use the "suffix" module; look for the realm and strip it
> yourself:
>
> authorize {
>   if (User-Name =~ /^(.*)@(.+)$/) {
>     update request {
>       Stripped-User-Name := "%{1}"
>       Realm := "%{2}"
>     }
>   }
> }
>
> See the policy.conf/policy.d and list archives for better regexps for
> NAI-style usernames.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/**
> list/users.html <http://www.freeradius.org/list/users.html>
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to