summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-25 17:02:25 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-25 17:02:57 +0000
commitb5f3549ff36ee3d5bb33d84d7a08b59a6413a53b (patch)
tree17b2ab7b93c7f5d938bee1ef2a78ed6afdf590a8 /etc
parent653032b62ee2baefd8c1455f265784cc8d18bd95 (diff)
downloadpfsense-b5f3549ff36ee3d5bb33d84d7a08b59a6413a53b.zip
pfsense-b5f3549ff36ee3d5bb33d84d7a08b59a6413a53b.tar.gz
Include missing quotes.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/openvpn.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index eec3425..5bfdb3b 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -386,15 +386,15 @@ function openvpn_reconfigure($mode,& $settings) {
if ($authcfg) {
switch ($authcfg['type']) {
case 'ldap':
- $sed = "\$ldaphost={$authcfg['host']};";
- $sed .= "\$ldapport={$authcfg['ldap_port']};";
- $sed .= "\$ldapuserattr={$authcfg['ldap_attr_user']};";
- $sed .= "\$ldapbasedn={$authcfg['ldap_basedn']};";
+ $sed = "\$ldaphost=\"{$authcfg['host']}\";";
+ $sed .= "\$ldapport=\"{$authcfg['ldap_port']}\";";
+ $sed .= "\$ldapuserattr=\"{$authcfg['ldap_attr_user']}\";";
+ $sed .= "\$ldapbasedn=\"{$authcfg['ldap_basedn']}\";";
break;
case 'radius':
- $sed = "\$radsrv={$authcfg['host']};";
- $sed .= "\$radport={$authcfg['radius_auth_port']};";
- $sed .= "\$radsecret={$authcfg['radius_secret']};";
+ $sed = "\$radsrv=\"{$authcfg['host']}\";";
+ $sed .= "\$radport=\"{$authcfg['radius_auth_port']}\";";
+ $sed .= "\$radsecret=\"{$authcfg['radius_secret']}\";";
break;
}
mwexec("/bin/cat /etc/inc/openvpn.auth-{$authcfg['type']}.php | /usr/bin/sed 's/\/\/<template>/{$sed}/g' > {$g['varetc_path']}/openvpn/{$mode_id}.php");
OpenPOWER on IntegriCloud