Spencer Stapleton <[EMAIL PROTECTED]> wrote:
> Also, I'm wondering how this is going to scale as it's going to
> require quite a bit of processing to do the regex OR comparison for
> each and every incoming packet.

  It won't scale well.

  What exactly are you trying to do?  Map a calling station ID to an
ISP name, and then append that ISP name to the username?

  If so, the "rlm_passwd" module should do what you want.  List all of
the calling station ID's and ISP names in a passwd-style file:

...
12345:ISPname
...

  Create an attribute "ISP-Name" in the dictionary, and configure
rlm_passwd to key off of Calling-Station-Id, and to look up ISP-Name
in the file.  Then, you can use attr_rewrite to add the ISP-Name to
the User-Name.

>                 replacewith = %{User-Name}%{Called-Station-Id}

  Instead, do:

                replacewith = %{User-Name}%{ISP_Name}

  It should be a lot easier to manage.  And rlm_passwd will take care
of ensuring that the lookups are fast.

  Alan DeKok.

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

Reply via email to