configuration for realm with prefix and suffix
Phil Mayers
p.mayers at imperial.ac.uk
Fri Aug 24 11:18:33 CEST 2007
On Thu, 2007-08-23 at 20:40 -0600, Mike Cisar wrote:
> Running FreeRADIUS 1.1.3, usernames are in 'username' format in a unix
> passwd file. Our dialup users are proxied to us in 'username at suffix.com'
> format and to this point everything has been working just fine.
>
> Now the tougher part... We've gained access to some additional POPs and
> although the suffix is the same, we are proxied these with a prefix as
> well... so what we get is in the form prefix/username at suffix.com I'm
> having trouble wrapping my head around how to configure our server to deal
> with these.
>
> Any thoughts or pointers are appreciated.
You'll need to use the hints file. The "realm" module won't run twice.
e.g. one way to strip the prefix/ and drop it would be:
DEFAULT User-Name =~ ".*/(.*@.*)"
User-Name := "%{1}"
...or, if the prefix were the realm and you wanted the username with the @ in it:
DEFAULT User-Name =~ "(.*)/(.*@.*)"
User-Name := "%{2}",
Realm := "%{1}"
HTH
More information about the Freeradius-Users
mailing list