Class attributes

Muenz, Michael m.muenz at spam-fetish.org
Tue Oct 31 06:39:23 CET 2017


Am 30.10.2017 um 13:33 schrieb Satish Patel:
> In auth-post of deafult file right or inner-tunnel?
>
Hi,

post-auth section in default. You can do quite complex setup with this:

if (User-Name =~ /^m[0-9][0-9][0-9]_/) {
             update reply {
                 Class := "groupX"
             }
}
elsif (User-Name =~ /^admin_/) {
             update reply {
                 Class := "groupAdmins"
             }
}
elsif (User-Name =~ /^service_/) {
             update reply {
                 Class := "groupService"
             }
}
else {
             update reply {
                 Class := "groupDefault"
             }
}

Michael




More information about the Freeradius-Users mailing list