Commit d0be764e authored by Nigel Kukard's avatar Nigel Kukard
Browse files

getPoolByName requires the interface group ID

parent 9c00a177
......@@ -398,7 +398,7 @@ sub _session_socket_read
# If we got a pool name, check if it exists
if (defined($poolName)) {
if (!defined(getPoolByName($poolName))) {
if (!defined(getPoolByName($config->{'interface_group'},$poolName))) {
$logger->log(LOG_NOTICE,"[RADIUS] Pool '%s' not found, using username '%s' instead",
$poolName,
$username
......@@ -411,7 +411,7 @@ sub _session_socket_read
}
# Try grab the pool
my $pool = getPoolByName($poolName);
my $pool = getPoolByName($config->{'interface_group'},$poolName);
my $pid = defined($pool) ? $pool->{'ID'} : undef;
my $ipAddress = $pkt->attr('Framed-IP-Address');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment