Pattern Matching in users file
Alan DeKok
aland at deployingradius.com
Sat Sep 16 18:34:43 CEST 2006
"Garber, Neal" <Neal.Garber at energyeast.com> wrote:
> Do I need to predefine the attribute name somewhere before
> I attempt to create it in the users file?
Yes. See the dictionaries.
> Are you referring to the doc/processing_users_file? If so, perhaps I
> misunderstood the bullet within it that reads:
>
> - The check pairlist of the request is replaced by the tmpcheck pairlist
> (this is the same as: the check pairlist from the usersfile entry is
> appended to the pairlist of the request)
That would be incorrect. I'll go update it.
> I don't think that will work for me because the hints file doc.
> states it adds attributes solely based upon prefix or suffix of
> the username. I want to add an attribute based upon the value of
> Cisco-AVPair. Am I misinterpreting the doc. for hints also?
You can use the "hints" file to do what you want. It does *not* say
you can only use prefix & suffix matching.
Alan DeKok.
--
http://deployingradius.com - The web site of the book
http://deployingradius.com/blog/ - The blog
More information about the Freeradius-Users
mailing list