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 '[EMAIL PROTECTED]'
> 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/[EMAIL PROTECTED]   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 =~ ".*/([EMAIL PROTECTED])"
        User-Name := "%{1}"

...or, if the prefix were the realm and you wanted the username with the @ in 
it:

DEFAULT User-Name =~ "(.*)/([EMAIL PROTECTED])"
        User-Name := "%{2}",
        Realm := "%{1}"

HTH

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to