Updated FreeRadius (markdown)
parent
27082db6ca
commit
74e4c9e7e8
@ -85,7 +85,25 @@ authorize {
|
|||||||
quotalimit
|
quotalimit
|
||||||
accessperiod
|
accessperiod
|
||||||
uptimelimit
|
uptimelimit
|
||||||
....
|
|
||||||
|
if (User-Name){
|
||||||
|
if("%{sql:UPDATE radacct set AcctStopTime=ADDDATE(AcctStartTime,INTERVAL AcctSessionTime SECOND), AcctTerminateCause='Clear-Stale Session' WHERE UserName='%{User-Name}' and CallingStationId='%{Calling-Station-Id}' and AcctStopTime is NULL}"){
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
expiration{
|
||||||
|
userlock = 1
|
||||||
|
}
|
||||||
|
if(userlock){
|
||||||
|
# Let him connect with EXPIRED pool in reply
|
||||||
|
ok
|
||||||
|
update reply {
|
||||||
|
Reply-Message := "Your account has expired, %{User-Name} / Reason: DATE LIMIT REACHED"
|
||||||
|
Framed-Pool := "Expired"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.....
|
||||||
}
|
}
|
||||||
|
|
||||||
accounting {
|
accounting {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user