On Friday 14 September 2007 11:28:51 Dan Goscomb wrote:
> Hi
>
> I have a number of realms on my radius server (FreeRADIUS Version
> 1.1.6). All users are valid in both realms (one is for dialup, one for
> broadband).
>
> e.g.
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> All realm's are stripped so that the user (dang in the examples above)
> is authenticated. However, on dial.realm I need to return a couple of
> Cisco-Avpair attributes; how can this be done?

You may be able to use the Realm attribute in the users file to add your 
specific attributes, depending on how the realms are stripped from the 
username.  You can also use the hints file, which you already tried.

> I have tried a hints file, however although I get the message on debug:
>
>   hints: Matched DEFAULT at 17
>
> The data specifies is not sent back in the RADIUS reply.

That's because you cannot list reply attributes in the hints file, but you can 
add a Hint that can be checked in the users file.

Here is a short example that should work for you using the hints file:

#hints
DEFAULT User-Name =~ "@dsl.realm"
    Hint = "DSL"
#/hints

#users
DEFAULT Hint == "DSL"
  Cisco-AVPair += "..."
#/users

Kevin Bonner

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to