projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b03a7b
)
Enforce dots in realm only if a realm exists
author
Alan T. DeKok
<aland@freeradius.org>
Thu, 20 Dec 2012 14:44:47 +0000
(09:44 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Thu, 20 Dec 2012 14:44:47 +0000
(09:44 -0500)
Otherwise the historic "bob / bob" test user doesn't work
raddb/policy.d/filter
patch
|
blob
|
history
diff --git
a/raddb/policy.d/filter
b/raddb/policy.d/filter
index
b5e13dc
..
8d0c1a4
100644
(file)
--- a/
raddb/policy.d/filter
+++ b/
raddb/policy.d/filter
@@
-103,7
+103,7
@@
filter_username {
# must have at least 1 string-dot-string after @
# e.g. "user@site.com"
#
- if (
User-Name !~ /@(.+)\\.(.+)$/
) {
+ if (
(User-Name =~ /@/) && (User-Name !~ /@(.+)\\.(.+)$/)
) {
update reply {
Reply-Message += "Rejected: Realm does not have at least one dot seperator"
}