feat: implement RadiusService for guest user management, session monitoring, and configuration handling
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 1m12s
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 1m12s
This commit is contained in:
@@ -126,6 +126,24 @@ public class RadiusService : IRadiusService
|
||||
Value = maxOctetsBytes.ToString()
|
||||
});
|
||||
|
||||
// Force NAS to send accounting interim-updates every 60 seconds
|
||||
_db.RadReply.Add(new RadReply
|
||||
{
|
||||
Username = username,
|
||||
Attribute = "Acct-Interim-Interval",
|
||||
Op = "=",
|
||||
Value = "60"
|
||||
});
|
||||
|
||||
// Re-authenticate (instead of disconnect) when Session-Timeout fires
|
||||
_db.RadReply.Add(new RadReply
|
||||
{
|
||||
Username = username,
|
||||
Attribute = "Termination-Action",
|
||||
Op = "=",
|
||||
Value = "1"
|
||||
});
|
||||
|
||||
// Create Guest Profile record
|
||||
var profile = new GuestProfile
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user