Multiple Customer Databases

Jonathan Gazeley Jonathan.Gazeley at bristol.ac.uk
Mon Jul 25 16:54:34 CEST 2016


On 25/07/16 15:38, Oliver Kutscher wrote:
> accounting {
> ..
>     customer1
>     customer2
> ..
> }

How are your customers distinguished? Different realms in the username? 
Other attributes in the RADIUS packet? You could try something like this:

accounting {
   if (User-Name =~ /@customer1.com$/) {
     customer1
   } elsif (User-Name =~ /@customer2.com$/) {
     customer2
   }
}

This is a fairly clumsy approach, though. The *right* way of fixing it 
is to use a different virtual server for each customer so different 
customers' information can not be accidentally contaminated.

http://freeradius.org/features/virtual_servers.html

Cheers,
Jonathan

-- 
Jonathan Gazeley
Senior Systems Administrator
IT Services
University of Bristol


More information about the Freeradius-Users mailing list