aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeradius.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-18 23:42:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-18 23:42:04 +0000
commit504d24c4e316cb8cba7a1d045b09284159b704c6 (patch)
tree296bc8df5ba7e295fc34aa2425a5285abd24b455 /packages/freeradius.xml
parent2f2f88fa02ae7d90c51e92dbdfe7f6528345a485 (diff)
downloadpfsense-packages-504d24c4e316cb8cba7a1d045b09284159b704c6.tar.gz
pfsense-packages-504d24c4e316cb8cba7a1d045b09284159b704c6.tar.bz2
pfsense-packages-504d24c4e316cb8cba7a1d045b09284159b704c6.zip
Update colin's FreeRADIUS packag
Diffstat (limited to 'packages/freeradius.xml')
-rw-r--r--packages/freeradius.xml38
1 files changed, 30 insertions, 8 deletions
diff --git a/packages/freeradius.xml b/packages/freeradius.xml
index 68d6eb38..fd0e0be1 100644
--- a/packages/freeradius.xml
+++ b/packages/freeradius.xml
@@ -1,19 +1,29 @@
<packagegui>
<name>freeradius</name>
<menu>
- <name>RADIUS Users</name>
- <tooltiptext>Add, edit, and delete RADIUS users.</tooltiptext>
+ <name>FreeRADIUS</name>
+ <tooltiptext>Modify FreeRADIUS users, clients, and settings.</tooltiptext>
<section>Services</section>
<configfile>freeradius.xml</configfile>
</menu>
- <menu>
- <name>RADIUS Clients</name>
- <tooltiptext>Add, edit, and delete RADIUS clients.</tooltiptext>
- <section>Services</section>
- <configfile>freeradiusclients.xml</configfile>
- </menu>
+ <tabs>
+ <tab>
+ <text>Users</text>
+ <url>/pkg_edit.php?xml=freeradius.xml</url>
+ <active/>
+ </tab>
+ <tab>
+ <text>Clients</text>
+ <url>/pkg_edit.php?xml=freeradiusclients.xml</url>
+ </tab>
+ <tab>
+ <text>Settings</text>
+ <url>/pkg_edit.php?xml=freeradiussettings.xml</url>
+ </tab>
+ </tabs>
<additional_files_needed>
<item>http://www.pfsense.com/packages/config/freeradiusclients.xml</item>
+ <item>http://www.pfsense.com/packages/config/freeradiussettings.xml</item>
</additional_files_needed>
<configpath>installedpackages->package->$packagename->configuration->settings</configpath>
<adddeleteeditpagefields>
@@ -46,6 +56,18 @@
<type>input</type>
</field>
</fields>
+ <custom_php_install_command>
+ global $config;
+ $fout = fopen("/usr/local/etc/raddb/clients.conf","w");
+ fwrite($fout, "client 127.0.0.1" . "{\n" . "secret = pfsense\n" . "shortname = localhost\n}\n\n");
+ fclose($fout);
+ mwexec("rm /usr/local/etc/rc.d/radiusd*");
+ $fout = fopen("/usr/local/etc/rc.d/radiusd.sh","w");
+ fwrite($fout,"#!/bin/sh\n\n/usr/local/sbin/radiusd -d /usr/local/etc/raddb\n");
+ fclose($fout);
+ mwexec("chmod a+x /usr/local/etc/rc.d/radiusd.sh");
+ mwexec("/usr/local/etc/rc.d/radiusd.sh");
+ </custom_php_install_command>
<custom_php_command_before_form>
function sync_package()
{