Multiple instances of custom module
I have a custom module that is working perfectly with FreeRADIUS. I am now interested in creating multiple instances of the module for different NAS's that might be connecting via RADIUS. So from what I gather I can use unlang's switch statement in both the authorize and authenticate sections of the config file like so: authorize { . . switch &request:NAS-IP-Address { case "192.168.1.100" { customer1 } case “192.168.1.110” { customer2 } case { reject } } . . } authenticate { . . Auth-Type CUSTOM { switch &request:NAS-IP-Address { case "192.168.1.100" { customer1 } case “192.168.1.110” { customer2 } } } . . } So my questions are 1) is that the correct way to address multiple instances and 2) is the default case of reject in the authorize section the appropriate way to limit things to the defined instances? r
Hi, huh? you asked the same question yesterday and got several responses. (recap, yes, thats fine and if you WANT to ensure the policy does what it does then use reject - if you dont then some other later thing might change the auth/policy) alan
participants (2)
-
A.L.M.Buxey@lboro.ac.uk -
Richard Levenberg