SV: Make sense of SQL Huntgroup HOWTO?

Matthew Newton mcn4 at leicester.ac.uk
Fri Dec 18 18:56:52 CET 2015


On Fri, Dec 18, 2015 at 05:31:17PM +0000, Joel Bergmark wrote:
> Thank you for the help! Indeed this looks more simplistic and nice! :)
> 
> Everything is in the SQL, necessary since using daloradius as frontend.
> 
> Just a follow up on: 	
> 	if ((Huntgroup-Name == "2ndline") && (SQL-Group != "2ndline")) {
> 		reject
> 	}

Small comment; if your situation is really simple where the user
group must always be the same as the hunt group, then you could
possibly even just use

 	if (Huntgroup-Name != SQL-Group) {
 		reject
 	}

Also, if you want to find out what SQL-Group expands to, just put
something like

 	if (SQL-Group == "") {
 		noop
 	}

in the config, then look at the debug output.

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list