[RADIATOR] Handler filtering "OR" instead of "AND"?
S.Schwarz at lumc.nl
S.Schwarz at lumc.nl
Wed Nov 1 18:35:08 UTC 2017
Hi,
I'm trying to accomplish the following to simplify the config file.
Instead of having a whole lot of handlers that look something like.. (for example, we use the hostnames to spread the systems across different vlans)
<Handler Connect-Info="From_QManage",MS-CHAP2-Response=/.+/,User-Name=/^host\/0-/>
<AuthBy LSA>
EAPType MSCHAP-V2
DefaultDomain domainname
UsernameMatchesWithoutRealm
Group Domain Computers
AddToReply Tunnel-Type=1:VLAN,Tunnel-Medium-Type=1:Ether_802,Tunnel-Private-Group-ID=1:270
</AuthBy>
</Handler>
<Handler Connect-Info="From_QManage",MS-CHAP2-Response=/.+/,User-Name=/^host\/1-/>
<AuthBy LSA>
EAPType MSCHAP-V2
DefaultDomain domainname
UsernameMatchesWithoutRealm
Group Domain Computers
AddToReply Tunnel-Type=1:VLAN,Tunnel-Medium-Type=1:Ether_802,Tunnel-Private-Group-ID=1:271
</AuthBy>
</Handler>
<Handler Connect-Info="From_QManage",MS-CHAP2-Response=/.+/,User-Name=/(host\/).+(0\.)/>
<AuthBy LSA>
EAPType MSCHAP-V2
DefaultDomain domainname
UsernameMatchesWithoutRealm
Group Domain Computers
AddToReply Tunnel-Type=1:VLAN,Tunnel-Medium-Type=1:Ether_802,Tunnel-Private-Group-ID=1:270
</AuthBy>
</Handler>
<Handler TunnelledByPEAP=1,User-Name=/^host\/0-/>
Authbylsa....
<Handler TunnelledByPEAP=1,User-Name=/^host\/1-/>
Authbylsa....
<Handler TunnelledByPEAP=1,User-Name=/(host\/).+(0\.)/>
Authbylsa....
I have about 30 of these handlers that clog up a lot of the config file
Is it possible to do something like: <Handler (Connect-Info="From_QManage",MS-CHAP2-Response=/.+/ | TunnelledByPEAP=1 ),User-Name=/^host\/0-/> ?
I hope I don't have to keep using this old config logic was that created by my predecessor, because the config file is so long that it's so hard to read (especially since everything looks almost the same with just 1 or 2 numbers difference per section)
If it's not possible to do an "OR" comparison in the handler attributes list, is there any other way I could make an easier to understand configuration file where I have to send a VLAN ID as reply based on the computername.
Kind regards,
Stephan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.open.com.au/pipermail/radiator/attachments/20171101/a4b454d1/attachment.html>
More information about the radiator
mailing list