i tried with the following virtual server to accept everyone. With that done, Everyone is accepted, regardless of user exists in MySQL_DB or not. And replay message is sent correctly as well.
Check Items in unlang code:
1.) Login time is verified correctly - if users attempts to access outside of time slot, then rejected, else accepted. (First Attribute Works)
2.) Everyone is accepted (Second Attribute also Works)
3.) Users are not disconnected after 10 minutes (Third Attribute do not work)
Reply Items in unlang code:
1.) Users are successfully redirected to the URL specified for "WISPr-Redirection-URL" (First Reply Item Works)
2.) Users are not disconnected after 10 minutes (Second Attribute do not work)
server accept_everyone {
authorize {
# If user not present in MySQL Database still allow them access
# Only Between 10:00 and 12:59PM
# File Module Retunes "noop" & sql Module Returns "notfound"
#files
#if(noop) {
sql
if(notfound) {
update control {
Login-Time := 'Any1000-1259'
Auth-Type := "Accept"
Max-All-Session := "600"
}
}
# Redirect Everyone To Yale Website
update reply {
Max-All-Session := "600"
}
}
authenticate {
Auth-Type PAP {
pap
}
}
}
pap
logintime
forevertimecounter
## Authorization Area ENDs Here
Can someone give little hint ? Only hint would be enough, i will study the rest. is it even posible to control that (Max-All-Session) using "unlang" code ?
Thanks / Regards
--RM