David Manchado <[EMAIL PROTECTED]> wrote:
> Due to limitations on freeradius-dialupadmin I have all users in the form 
> [EMAIL PROTECTED] without stripping in order to support that I can user 
> [EMAIL PROTECTED] 
> and [EMAIL PROTECTED] with their own reply attributes.

  You should be able to add "realm1" as a check item.  e.g. Realm == "realm1".

> In the users file I can use regexp so both realm.com and adsl.realm.com can 
> use the same Autz-Type definition and using stripped-username I can 
> authenticate the two realms in the same users file, but I cannot strip it.
> 
> The question is, is there any way to rewrite the realm? I have tried with 
> att_rewrite but I can't make it work.

  Regular expressions.  In the CVS head, you can match:

        User-name =~ "^(.*)@.*realm.com"


  And %{1} will be the username, without the realm identifier.

  Alan DekOk.

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

Reply via email to