Skip to content
Snippets Groups Projects
Commit b0530cb5 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Post radius updates to config manager

parent c40c72a5
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,10 @@ sub server_init {
);
die "Couldn't create server socket: $!" unless $socket;
# Set our alias
$kernel->alias_set("plugin.radius");
# Setup our reader
$kernel->select_read($socket, "get_datagram");
}
......@@ -193,6 +197,9 @@ sub server_read {
$globals->{'users'}->{$username} = $user;
# Throw the change at the config manager
$kernel->post("configmanager" => "process_change" => $user);
$logger->log(LOG_DEBUG,"=> Code: $user->{'Status'}, User: $user->{'Username'}, IP: $user->{'IP'}, Group: $user->{'Group'}, Class: $user->{'Class'}, Limits: $user->{'Limits'}, Burst: $user->{'BurstLimits'}");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment