Ajout de la règle pour federez wifi, if @ in id

This commit is contained in:
Gabriel Detraz 2015-05-08 16:45:16 +02:00
parent edde503c9e
commit 7dac00f8b3

View file

@ -15,6 +15,14 @@
# need to setup hints for the remote radius server # need to setup hints for the remote radius server
server wifi { server wifi {
authorize { authorize {
if (User-Name !~ /crans\.org$/) {
if (User-Name =~ /^(.*)@(.*)/) {
update control {
Proxy-To-Realm := 'FEDEREZ'
}
}
}
# #
# The preprocess module takes care of sanitizing some bizarre # The preprocess module takes care of sanitizing some bizarre
# attributes in the request, and turning them into attributes # attributes in the request, and turning them into attributes