Skip to content
Snippets Groups Projects
Commit 9bc88f85 authored by Robert Anderson's avatar Robert Anderson
Browse files

Ignore list for each type

parent fa4b5bdc
No related branches found
No related tags found
No related merge requests found
...@@ -43,9 +43,18 @@ use smradius::util; ...@@ -43,9 +43,18 @@ use smradius::util;
# Attributes we do not handle # Attributes we do not handle
my @attributeIgnoreList = ( my @attributeCheckIgnoreList = (
'User-Password' 'User-Password'
); );
my @attributeReplyIgnoreList = (
'User-Password',
'SMRadius-Capping-Traffic-Limit',
'SMRadius-Capping-Time-Limit',
'SMRadius-Validity-ValidFrom',
'SMRadius-Validity-ValidTo'
);
my @attributeVReplyIgnoreList = (
);
## @fn addAttribute($server,$attributes,$attribute) ## @fn addAttribute($server,$attributes,$attribute)
...@@ -94,7 +103,7 @@ sub checkAuthAttribute ...@@ -94,7 +103,7 @@ sub checkAuthAttribute
# Check ignore list # Check ignore list
foreach my $ignoredAttr (@attributeIgnoreList) { foreach my $ignoredAttr (@attributeCheckIgnoreList) {
# 2 = IGNORE, so return IGNORE for all ignored items # 2 = IGNORE, so return IGNORE for all ignored items
return 2 if ($attribute->{'Name'} eq $ignoredAttr); return 2 if ($attribute->{'Name'} eq $ignoredAttr);
} }
...@@ -323,7 +332,7 @@ sub setReplyAttribute ...@@ -323,7 +332,7 @@ sub setReplyAttribute
# Check ignore list # Check ignore list
foreach my $ignoredAttr (@attributeIgnoreList) { foreach my $ignoredAttr (@attributeReplyIgnoreList) {
# 2 = IGNORE, so return IGNORE for all ignored items # 2 = IGNORE, so return IGNORE for all ignored items
return 2 if ($attribute->{'Name'} eq $ignoredAttr); return 2 if ($attribute->{'Name'} eq $ignoredAttr);
} }
...@@ -415,7 +424,7 @@ sub setReplyVAttribute ...@@ -415,7 +424,7 @@ sub setReplyVAttribute
# Check ignore list # Check ignore list
foreach my $ignoredAttr (@attributeIgnoreList) { foreach my $ignoredAttr (@attributeVReplyIgnoreList) {
# 2 = IGNORE, so return IGNORE for all ignored items # 2 = IGNORE, so return IGNORE for all ignored items
return 2 if ($attribute->{'Name'} eq $ignoredAttr); return 2 if ($attribute->{'Name'} eq $ignoredAttr);
} }
......
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