How to setup a profile that is valid on a schedule
Hello, I have the following policy and would love it to be available on the following schedule. How do I modify the profile to allow this Monday - Friday 7 am to 6pm Saturday 7am - 3pm ----------------Profile--------------------------------- test_site { if( &request:NAS-Port == 2030){ update control { Auth-Type := Accept } update reply { Nomadix-Group-Bw-Policy-Id = 3 Nomadix-Group-Bw-Max-Down = 30000 Nomadix-Group-Bw-Max-Up = 30000 Nomadix-Net-VLAN = 2030 Idle-Timeout = 3600 Session-Timeout = 86400 } } }
On Apr 2, 2017, at 4:07 PM, Kenroy <bennettk9999@gmail.com> wrote:
I have the following policy and would love it to be available on the following schedule. How do I modify the profile to allow this
Monday - Friday 7 am to 6pm Saturday 7am - 3pm
See Current-Time, documented (sort of) here: http://wiki.freeradius.org/config/Users It takes the same format time string as Login-Time, but it doesn't update Session-Timeout if (Current-Time == "Wk0700-1800,Sa0700-1500") { # it's the time as specified } Alan DeKok.
participants (2)
-
Alan DeKok -
Kenroy