Project

General

Profile

Feature #933 ยป ipsec_save_passwd.patch

Paul K, 10/04/2010 10:47 PM

View differences:

etc/inc/vpn.inc
390 390
					$racoonconf .= "\tbanner \"{$fn}\";\n";
391 391
				}
392 392

  
393
				if (isset($a_client['save_passwd']))
394
					$racoonconf .= "\tsave_passwd on;\n";
395

  
393 396
				$racoonconf .= "}\n\n";
394 397
			}
395 398
			/* end mode_cfg section */
usr/local/www/vpn_ipsec_mobile.php
59 59
	$pconfig['pool_address'] = $a_client['pool_address'];
60 60
	$pconfig['pool_netbits'] = $a_client['pool_netbits'];
61 61
	$pconfig['net_list'] = $a_client['net_list'];
62
	$pconfig['save_passwd'] = $a_client['save_passwd'];
62 63
	$pconfig['dns_domain'] = $a_client['dns_domain'];
63 64
	$pconfig['dns_server1'] = $a_client['dns_server1'];
64 65
	$pconfig['dns_server2'] = $a_client['dns_server2'];
......
80 81
	if (isset($pconfig['net_list']))
81 82
		$pconfig['net_list_enable'] = true;
82 83

  
84
	if (isset($pconfig['save_passwd']))
85
		$pconfig['save_passwd_enable'] = true;
86

  
83 87
	if ($pconfig['dns_domain'])
84 88
		$pconfig['dns_domain_enable'] = true;
85 89

  
......
177 181
		if ($pconfig['net_list_enable'])
178 182
			$client['net_list'] = true;
179 183

  
184
		if ($pconfig['save_passwd_enable'])
185
			$client['save_passwd'] = true;
186

  
180 187
		if ($pconfig['dns_domain_enable'])
181 188
			$client['dns_domain'] = $pconfig['dns_domain'];
182 189

  
......
417 424
							</table>
418 425
						</td>
419 426
					</tr>
427
					<tr>
428
						<td width="22%" valign="top" class="vncell"><?=gettext("Save Xauth Password"); ?></td>
429
						<td width="78%" class="vtable">
430
							<table border="0" cellspacing="2" cellpadding="0">
431
								<tr>
432
									<td>
433
										<?php set_checked($pconfig['save_passwd_enable'],$chk); ?>
434
										<input name="save_passwd_enable" type="checkbox" id="save_passwd_enable" value="yes" <?=$chk;?>>
435
									</td>
436
									<td>
437
										<?=gettext("Allow the client to save the Xauth password (Cisco VPN client only)."); ?><br>
438
									</td>
439
								</tr>
440
							</table>
441
						</td>
442
					</tr>
420 443
					<tr> 
421 444
						<td width="22%" valign="top" class="vncell"><?=gettext("DNS Default Domain"); ?></td>
422 445
						<td width="78%" class="vtable">
    (1-1/1)