projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dda5649
)
optimised and adjusted filter
author
Alan Buxey
<alan.buxey@gmail.com>
Wed, 28 Nov 2012 21:42:48 +0000
(21:42 +0000)
committer
Alan Buxey
<alan.buxey@gmail.com>
Wed, 28 Nov 2012 21:42:48 +0000
(21:42 +0000)
no longer case insensitive and not storing match
raddb/policy.d/filter
patch
|
blob
|
history
diff --git
a/raddb/policy.d/filter
b/raddb/policy.d/filter
index
9e71a30
..
b5e13dc
100644
(file)
--- a/
raddb/policy.d/filter
+++ b/
raddb/policy.d/filter
@@
-81,7
+81,7
@@
filter_username {
# reject Multiple @'s
# e.g. "user@site.com@site.com"
#
- if(User-Name =~ /@
(.+)?@/i
) {
+ if(User-Name =~ /@
.*@/
) {
update reply {
Reply-Message += "Rejected: Multiple @ in username"
}