very long regular expression...



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
 


This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.