From 504d24c4e316cb8cba7a1d045b09284159b704c6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 18 Feb 2005 23:42:04 +0000 Subject: Update colin's FreeRADIUS packag --- packages/freeradius.xml | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'packages/freeradius.xml') 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 @@ freeradius - RADIUS Users - Add, edit, and delete RADIUS users. + FreeRADIUS + Modify FreeRADIUS users, clients, and settings.
Services
freeradius.xml
- - RADIUS Clients - Add, edit, and delete RADIUS clients. -
Services
- freeradiusclients.xml -
+ + + Users + /pkg_edit.php?xml=freeradius.xml + + + + Clients + /pkg_edit.php?xml=freeradiusclients.xml + + + Settings + /pkg_edit.php?xml=freeradiussettings.xml + + http://www.pfsense.com/packages/config/freeradiusclients.xml + http://www.pfsense.com/packages/config/freeradiussettings.xml installedpackages->package->$packagename->configuration->settings @@ -46,6 +56,18 @@ input + + 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"); + function sync_package() { -- cgit v1.2.3