Skip to content

Commit

Permalink
Don't use double backslashes in regexps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Nordberg committed Oct 6, 2017
1 parent 7dcefed commit 43fbf47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions radsecproxy.conf.5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -796,13 +796,13 @@ blocktype name {
trailing <literal>/</literal> after the regexp. So as an
example, if you want to use regexp matching the domain
<literal>example.com</literal> you could have a realm block
named <literal>/@example\\.com$</literal>. Optionally this can
also be written <literal>/@example\\.com$/</literal>. If you
named <literal>/@example\.com$</literal>. Optionally this can
also be written <literal>/@example\.com$/</literal>. If you
want to match all domains under the <literal>.com</literal>
top domain, you could do <literal>/@.*\\.com$</literal>. Note
top domain, you could do <literal>/@.*\.com$</literal>. Note
that since the matching is done on the entire attribute value,
you can also use rules like
<literal>/^[a-k].*@example\\.com$/</literal> to get some of
<literal>/^[a-k].*@example\.com$/</literal> to get some of
the users in this domain to use one server, while other users
could be matched by another realm block and use another
server.
Expand Down Expand Up @@ -849,7 +849,7 @@ blocktype name {
same time you might want to send all other requests to some
default server. After the realms for the subdomains, you would
then have two realm definitions. One with the name
<literal>/@.*\\.bv$</literal> with no servers, followed by one
<literal>/@.*\.bv$</literal> with no servers, followed by one
with the name <literal>*</literal> with the default server
defined. This may also be useful for blocking particular
usernames.
Expand Down

0 comments on commit 43fbf47

Please sign in to comment.