merging two systems
    Phil Mayers 
    p.mayers at imperial.ac.uk
       
    Mon Jan 16 18:18:12 CET 2012
    
    
  
On 16/01/12 16:55, Blake Hudson wrote:
> It seems pretty straight forward to use one instance for auth and
> another for accounting, but I did not see an example or documentation on
> how to associate a sql instance to a nas. If you could point me in the
> right direction I'd appreciate it.
Simply match any attribute you want in the request, and then call the 
relevant modules:
authorize {
  ...
  if (Client-IP-Address == 192.0.2.1) {
    sql1
  }
  elsif (Client-IP-Address == 192.0.2.2) {
    sql2
  }
  ...
}
You probably want to match on Huntgroup, Client-Shortname or some other 
more useful field than source IP.
    
    
More information about the Freeradius-Users
mailing list