<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE packagegui SYSTEM "./schema/packages.dtd">
<?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?>
<packagegui>
	<copyright>
<![CDATA[	
/* $Id$ */
/* ========================================================================== */
/*
	freeradiusclients.xml
	part of pfSense (http://www.pfSense.com)
	Copyright (C) 2011 - 2012 Alexander Wilke <nachtfalkeaw@web.de>
	All rights reserved.

	Based on m0n0wall (http://m0n0.ch/wall)
	Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
	All rights reserved.
									      */
/* ========================================================================== */
/*
	Redistribution and use in source and binary forms, with or without
	modification, are permitted provided that the following conditions are met:

	1. Redistributions of source code must retain the above copyright notice,
	   this list of conditions and the following disclaimer.

	2. Redistributions in binary form must reproduce the above copyright
	   notice, this list of conditions and the following disclaimer in the
	   documentation and/or other materials provided with the distribution.

	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
	POSSIBILITY OF SUCH DAMAGE.
									      */
/* ========================================================================== */
]]>	</copyright>
	<description><![CDATA[Describe your package here]]></description>
	<requirements>Describe your package requirements here</requirements>
	<faq>Currently there are no FAQ items provided.</faq>
	<name>freeradiusclients</name>
	<version>none</version>
	<title>FreeRADIUS: Clients</title>
	<include_file>/usr/local/pkg/freeradius.inc</include_file>
	<tabs>
		<tab>
			<text>Users</text>
			<url>/pkg.php?xml=freeradius.xml</url>
		</tab>
		<tab>
			<text>MACs</text>
			<url>/pkg.php?xml=freeradiusauthorizedmacs.xml</url>
		</tab>
		<tab>
			<text>NAS / Clients</text>
			<url>/pkg.php?xml=freeradiusclients.xml</url>
			<active/>
		</tab>
		<tab>
			<text>Interfaces</text>
			<url>/pkg.php?xml=freeradiusinterfaces.xml</url>
		</tab>
		<tab>
			<text>Settings</text>
			<url>/pkg_edit.php?xml=freeradiussettings.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>EAP</text>
			<url>/pkg_edit.php?xml=freeradiuseapconf.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>SQL</text>
			<url>/pkg_edit.php?xml=freeradiussqlconf.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>Certificates</text>
			<url>/pkg_edit.php?xml=freeradiuscerts.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>LDAP</text>
			<url>/pkg_edit.php?xml=freeradiusmodulesldap.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>View config</text>
			<url>/freeradius_view_config.php</url>
		</tab>
		<tab>
			<text>XMLRPC Sync</text>
			<url>/pkg_edit.php?xml=freeradiussync.xml&amp;id=0</url>
		</tab>
	</tabs>
	<adddeleteeditpagefields>
		<columnitem>
			<fielddescr>Client IP Address</fielddescr>
			<fieldname>varclientip</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Client IP Version</fielddescr>
			<fieldname>varclientipversion</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Client Shortname</fielddescr>
			<fieldname>varclientshortname</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Client Protocol</fielddescr>
			<fieldname>varclientproto</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Client Type</fielddescr>
			<fieldname>varclientnastype</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Require Message Authenticator</fielddescr>
			<fieldname>varrequiremessageauthenticator</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Max Connections</fielddescr>
			<fieldname>varclientmaxconnections</fieldname>
		</columnitem>
		<columnitem>
			<fielddescr>Description</fielddescr>
			<fieldname>description</fieldname>
		</columnitem>
	</adddeleteeditpagefields>
	<fields>
		<field>
			<name>GENERAL CONFIGURATION</name>
			<type>listtopic</type>
		</field>	
		<field>
			<fielddescr>Client IP Address</fielddescr>
			<fieldname>varclientip</fieldname>
			<description><![CDATA[Enter the IP address of the client. This is in general the IP of the NAS (switch,accesspoint).]]></description>
			<type>input</type>
			<required/>
		</field>
		<field>
			<fielddescr>Client IP Version</fielddescr>
			<fieldname>varclientipversion</fieldname>
			<type>select</type>
			<default_value>ipaddr</default_value>
					<options>
						<option><name>IPv4</name><value>ipaddr</value></option>
						<option><name>IPv6</name><value>ipv6addr</value></option>
					</options>
			<required/>
		</field>		
		<field>
			<fielddescr>Client Shortname</fielddescr>
			<fieldname>varclientshortname</fieldname>
			<description><![CDATA[Enter shortname of the client. This is in general the hostname of the NAS (switch,accesspoint).]]></description>
			<type>input</type>
			<required/>
		</field>
		<field>
			<fielddescr>Client Shared Secret</fielddescr>
			<fieldname>varclientsharedsecret</fieldname>
			<description><![CDATA[Enter the shared secret of the client here. This is the shared secret (password) which the NAS (switch or accesspoint) needs to communicate with the RADIUS server.]]></description>
			<type>password</type>
			<required/>
		</field>
		<field>
			<name>MISCELLANEOUS CONFIGURATION</name>
			<type>listtopic</type>
		</field>		
		<field>
			<fielddescr>Client Protocol</fielddescr>
			<fieldname>varclientproto</fieldname>
			<description><![CDATA[Enter the protocol the client uses. (Default: UDP)]]></description>
			<type>select</type>
			<default_value>udp</default_value>
					<options>
						<option><name>UDP</name><value>udp</value></option>
						<option><name>TCP</name><value>tcp</value></option>
					</options>
		</field>
		<field>
			<fielddescr>Client Type</fielddescr>
			<fieldname>varclientnastype</fieldname>
			<description><![CDATA[Enter the NAS type of the client. This is used by checkrad.pl for simultaneous use checks. (Default: other)]]></description>
			<type>select</type>
			<default_value>other</default_value>
					<options>
						<option><name>CISCO Systems</name><value>cisco</value></option>
						<option><name>Computone PowerRack</name><value>computone</value></option>
						<option><name>Livingston PortMaster</name><value>livingston</value></option>
						<option><name>Ascend Max 4000 family</name><value>max40xx</value></option>
						<option><name>Multitech CommPlete Server</name><value>multitech</value></option>
						<option><name>3Com/USR NetServer</name><value>netserver</value></option>
						<option><name>Cyclades PathRAS</name><value>pathras</value></option>
						<option><name>Patton 2800 family</name><value>patton</value></option>
						<option><name>Cistron PortSlave</name><value>portslave</value></option>
						<option><name>3Com/USR TotalControl</name><value>tc</value></option>
						<option><name>3Com/USR Hiper Arc Total Control</name><value>usrhiper</value></option>
						<option><name>other</name><value>other</value></option>
					</options>
		</field>
		<field>
			<fielddescr>Require Message Authenticator</fielddescr>
			<fieldname>varrequiremessageauthenticator</fieldname>
			<description><![CDATA[RFC5080 requires Message-Authenticator in Access-Request. But older NAS (switches or accesspoints) do not include that. (Default: no)]]></description>
			<type>select</type>
			<default_value>no</default_value>
					<options>
						<option><name>No</name><value>no</value></option>
						<option><name>Yes</name><value>yes</value></option>
					</options>
		</field>
		<field>
			<fielddescr>Max Connections</fielddescr>
			<fieldname>varclientmaxconnections</fieldname>
			<description><![CDATA[Takes only effect if you use TCP as protocol. This is the mirror of "Max Requests Server" from "Settings" tab. (Default 16)]]></description>
			<type>input</type>
			<default_value>16</default_value>
		</field>
		<field>
			<fielddescr>NAS Login</fielddescr>
			<fieldname>varclientlogininput</fieldname>
			<description><![CDATA[If your NAS supports it you can use SNMP or finger for simultaneous-use checks instead of (s)radutmp file and accounting. Leave empty to choose (s)radutmp. (Default: empty)]]></description>
			<type>input</type>
		</field>
		<field>
			<fielddescr>NAS Password</fielddescr>
			<fieldname>varclientpasswordinput</fieldname>
			<description><![CDATA[If your NAS supports it you can use SNMP or finger for simultaneous-use checks instead of (s)radutmp file and accounting. Leave empty to choose (s)radutmp. (Default: empty)]]></description>
			<type>input</type>
		</field>
		<field>
			<fielddescr>Description</fielddescr>
			<fieldname>description</fieldname>
			<description><![CDATA[Enter any description you like for this client.]]></description>
			<type>input</type>
		</field>
	</fields>
	<custom_delete_php_command>
		freeradius_clients_resync();
	</custom_delete_php_command>
	<custom_php_resync_config_command>
		freeradius_clients_resync();
	</custom_php_resync_config_command>
</packagegui>