Subversion Repositories ALCASAR

Rev

Rev 776 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 776 Rev 1623
Line 12... Line 12...
12
	protected $_sections = Array();
12
	protected $_sections = Array();
13
	
13
	
14
	public function __construct() {
14
	public function __construct() {
15
		$this->_sections['authorize']		= new sectionItem('authorize');
15
		$this->_sections['authorize']		= new sectionItem('authorize');
16
		$this->_sections['authenticate']	= new sectionItem('authorize');
16
		$this->_sections['authenticate']	= new sectionItem('authorize');
17
		$this->_sections['preacct']			= new sectionItem('preacct');
17
		$this->_sections['preacct']		= new sectionItem('preacct');
18
		$this->_sections['accounting']		= new sectionItem('accounting');
18
		$this->_sections['accounting']		= new sectionItem('accounting');
19
		$this->_sections['session']			= new sectionItem('session');
19
		$this->_sections['session']		= new sectionItem('session');
20
		$this->_sections['post-auth']		= new sectionItem('post-auth');
20
		$this->_sections['post-auth']		= new sectionItem('post-auth');
21
		$this->_sections['pre-proxy']		= new sectionItem('pre-proxy');
21
		$this->_sections['pre-proxy']		= new sectionItem('pre-proxy');
22
		$this->_sections['post-proxy']		= new sectionItem('post-proxy');
22
		$this->_sections['post-proxy']		= new sectionItem('post-proxy');
23
	}
23
	}
24
	private function _doSpace($nbspace = 0){
24
	private function _doSpace($nbspace = 0){
Line 91... Line 91...
91
		require_once("configreader.php");
91
		require_once("configreader.php");
92
		
92
		
93
		$r = new configReader($confFile);
93
		$r = new configReader($confFile);
94
		$this->_sections['authorize']		= $r->getSection('authorize');
94
		$this->_sections['authorize']		= $r->getSection('authorize');
95
		$this->_sections['authenticate']	= $r->getSection('authenticate');
95
		$this->_sections['authenticate']	= $r->getSection('authenticate');
96
		$this->_sections['preacct']			= $r->getSection('preacct');
96
		$this->_sections['preacct']		= $r->getSection('preacct');
97
		$this->_sections['accounting']		= $r->getSection('accounting');
97
		$this->_sections['accounting']		= $r->getSection('accounting');
98
		$this->_sections['session']			= $r->getSection('session');
98
		$this->_sections['session']		= $r->getSection('session');
99
		$this->_sections['post-auth']		= $r->getSection('post-auth');
99
		$this->_sections['post-auth']		= $r->getSection('post-auth');
100
		$this->_sections['pre-proxy']		= $r->getSection('pre-proxy');
100
		$this->_sections['pre-proxy']		= $r->getSection('pre-proxy');
101
		$this->_sections['post-proxy']		= $r->getSection('post-proxy');
101
		$this->_sections['post-proxy']		= $r->getSection('post-proxy');
102
	}
102
	}
103
	public function __toString() {
103
	public function __toString() {
Line 176... Line 176...
176
	#
176
	#
177
	#  It takes care of processing the 'raddb/hints' and the
177
	#  It takes care of processing the 'raddb/hints' and the
178
	#  'raddb/huntgroups' files.
178
	#  'raddb/huntgroups' files.
179
	#
179
	#
180
	#  It also adds the %{Client-IP-Address} attribute to the request.
180
	#  It also adds the %{Client-IP-Address} attribute to the request.
181
	".$this->_writeModule($this->_sections['authorize']->preprocess, 'preprocess')."
181
	".$this->_writeModule($this->_sections['authorize']->preprocess, '# preprocess')."
182
 
182
 
183
	#
183
	#
184
	#  If you want to have a log of authentication requests,
184
	#  If you want to have a log of authentication requests,
185
	#  un-comment the following line, and the 'detail auth_log'
185
	#  un-comment the following line, and the 'detail auth_log'
186
	#  section, above.
186
	#  section, above.