Skip to content

Commit

Permalink
Enforce dots in realm only if a realm exists
Browse files Browse the repository at this point in the history
Otherwise the historic "bob / bob" test user doesn't work
  • Loading branch information
alandekok committed Dec 20, 2012
1 parent 6b03a7b commit f72edfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raddb/policy.d/filter
Expand Up @@ -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"
}
Expand Down

0 comments on commit f72edfb

Please sign in to comment.