"Internal sanity check failed" After adding second Home Server
Alan Buxey
A.L.M.Buxey at lboro.ac.uk
Wed Feb 29 19:01:04 CET 2012
Hi,
> if("%{User-Name}" =~ /\\\\?([^@\\\\]+)@?([-[:alnum:]._]*)?$/) {
please note i did say that was a example - please dont just use anything
like this in a production system - you will need other checks and validations
too - its just to give you an idea. the first one would be something like..
if(("%{User-Name}" !~ /@/) && ("%{Called-Station-Id}" =~ /:eduroam$/)){
reject
}
ie if the SSID is eduroam and the user doesnt have an @ in it, then reject.
(this example would work if the kit provides the SSID at the end of the Called-Station-Id - most
do..)
..and so on.
alan
More information about the Freeradius-Users
mailing list