Skip to content

Commit

Permalink
Format the acl name to be compliant with what the Cisco switch expect.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdurand committed Oct 15, 2024
1 parent ec91575 commit 968ffc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pf/Switch/Cisco/Cisco_IOS_15_5.pm
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ sub returnRadiusAccessAccept {
my @acl = split("\n", $access_list);
$args->{'acl'} = \@acl;
$args->{'acl_num'} = '101';
push(@av_pairs, "subscriber:service-name=$mac-".$self->setRadiusSession($args));
push(@av_pairs, "subscriber:service-name=".$args->{'user_role'}."-".$self->setRadiusSession($args));
} else {
my $acl_num = 101;
while($access_list =~ /([^\n]+)\n?/g){
Expand Down Expand Up @@ -213,7 +213,7 @@ sub returnRadiusAdvanced {
my ($self, $args, $options) = @_;
my $logger = $self->logger;
my $status = $RADIUS::RLM_MODULE_OK;
my ($mac, $session_id) = split('-', $args->{'user_name'});
my ($role, $session_id) = split('-', $args->{'user_name'});
my $radius_reply_ref = ();
my @av_pairs;
$radius_reply_ref->{'control:Proxy-To-Realm'} = 'LOCAL';
Expand Down

0 comments on commit 968ffc8

Please sign in to comment.