Bluehost.com Web Hosting $6.95

Re: very long regular expression...

This is a discussion on Re: very long regular expression... within the FreeRADIUS Users forums, part of the Networking and Network Related category; Norbert Grochal wrote: > I want to disallow login to access points for every hosts that are not > in ...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-22-2006
Alan DeKok
 
Posts: n/a
Default Re: very long regular expression...

Norbert Grochal wrote:
> I want to disallow login to access points for every hosts that are not
> in my network.
>
> So at the end of /usr/local/etc/raddb/users file I put regular
> expression that checks if Calling-Station-Id IS NOT in list of my hosts...
>
> DEFAULT Auth-Type := REJECT, Calling-Station-Id !~
> "008012323244|002938475473|<and many other macs...>"


Don't do that. It's ugly. Use rlm_passwd. See "man rlm_passwd".

That lets you list all of the MACs in one flat text file, which is a
LOT easier to manage by a script than the "users" file.

Alan DeKok.
--
http://deployingradius.com - The web site of the book
http://deployingradius.com/blog/ - The blog
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:16 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0