configuration for realm with prefix and suffix
Running FreeRADIUS 1.1.3, usernames are in 'username' format in a unix passwd file. Our dialup users are proxied to us in 'username@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@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. Cheers,
Mike <<<<<
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@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@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
well... so what we get is in the form prefix/username@suffix.com I'm having trouble wrapping my head around how to configure our server to with these.
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}"
Thanks Phil, I'll give that a try and see if it does the trick. Cheers,
Mike <<<<<
participants (2)
-
Mike Cisar -
Phil Mayers