Project

General

Profile

« Previous | Next » 

Revision 04c2c662

Added by hamnur almost 8 years ago

Activate RADIUS accounting for mobile ipsec if it was selected on the auth server view

(cherry picked from commit 1e0442e0612ecd289aa979bc945be0d8ead35f41)

View differences:

src/etc/inc/vpn.inc
531 531
		}
532 532
	}
533 533

  
534
	/* Activate RADIUS accounting if it was selected on the auth server view */
535
	$radius_accounting = "";
536
	if($auth_server && isset($auth_server['radius_acct_port'])){
537
		$radius_accounting = 'accounting = yes';
538
	}
539

  
534 540
	/* write an eap-radius config section if appropriate */
535 541
	if (strlen($radius_server_txt) && ($mobile_ipsec_auth === "eap-radius")) {
536 542
		$strongswan .= <<<EOD
537 543
		eap-radius {
538 544
			class_group = yes
539 545
			eap_start = no
546
			{$radius_accounting}
540 547
			servers {
541 548
{$radius_server_txt}
542 549
			}

Also available in: Unified diff