Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
06448a3d
Commit
06448a3d
authored
Jan 26, 2017
by
Jonathan
Committed by
GitHub
Jan 26, 2017
Browse files
Merge pull request #45 from sts/fix_escapes_radiusd_conf
Add correct_escapes=true to radiusd.conf
parents
f41cc1e6
b1d53c73
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
06448a3d
...
...
@@ -14,6 +14,7 @@ class freeradius (
$syslog
=
false
,
$log_auth
=
'no'
,
$preserve_mods
=
true
,
$correct_escapes
=
true
,
)
inherits
freeradius::params
{
validate_re
(
$freeradius::fr_version
,
'^3'
,
'This module is only compatible with FreeRADIUS 3'
)
...
...
templates/radiusd.conf.erb
View file @
06448a3d
...
...
@@ -117,6 +117,27 @@ libdir = <%= @fr_libdir %>
#
pidfile = ${run_dir}/${name}.pid
#
# correct_escapes: use correct backslash escaping
#
# Prior to version 3.0.5, the handling of backslashes was a little
# awkward, i.e. "wrong". In some cases, to get one backslash into
# a regex, you had to put 4 in the config files.
#
# Version 3.0.5 fixes that. However, for backwards compatibility,
# the new method of escaping is DISABLED BY DEFAULT. This means
# that upgrading to 3.0.5 won't break your configuration.
#
# If you don't have double backslashes (i.e. \\) in your configuration,
# this won't matter to you. If you do have them, fix that to use only
# one backslash, and then set "correct_escapes = true".
#
# You can check for this by doing:
#
# $ grep '\\\\' $(find raddb -type f -print)
#
correct_escapes =
<%=
@correct_escapes
%>
# panic_action: Command to execute if the server dies unexpectedly.
#
# FOR PRODUCTION SYSTEMS, ACTIONS SHOULD ALWAYS EXIT.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment