very long regular expression...
Norbert Grochal
norboro at celpol.pl
Wed Nov 22 13:46:10 CET 2006
I have FreeRADIUS Version 1.1.0
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...>"
but it is about 2300 chars in one line and my freeradius says:
/usr/local/etc/raddb/users[330]: Parse error (check) for entry DEFAULT: Expected end of line or comma
Errors reading /usr/local/etc/raddb/users
radiusd.conf[1050]: files: Module instantiation failed.
radiusd.conf[1796] Unknown module "files".
radiusd.conf[1730] Failed to parse authorize section.
how long can be regular expression and is there any other way to solve this problem?
Norboro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20061122/b12aa8dd/attachment.html>
More information about the Freeradius-Users
mailing list