diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-19 03:58:44 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-19 03:58:44 +0000 |
commit | 482b510bdd2c319f135af1d2bd39740744cbef7d (patch) | |
tree | 10b2856e0c745865f8311b52d9df6670a2c54b9b /packages/freeradiusclients.xml | |
parent | 1f0ee084fcf9bd9c802f6682881c449a6ebd45df (diff) | |
download | pfsense-packages-482b510bdd2c319f135af1d2bd39740744cbef7d.tar.gz pfsense-packages-482b510bdd2c319f135af1d2bd39740744cbef7d.tar.bz2 pfsense-packages-482b510bdd2c319f135af1d2bd39740744cbef7d.zip |
Update Colin's FreeRADIUS package
Diffstat (limited to 'packages/freeradiusclients.xml')
-rw-r--r-- | packages/freeradiusclients.xml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/freeradiusclients.xml b/packages/freeradiusclients.xml index 05f3fa45..c5999572 100644 --- a/packages/freeradiusclients.xml +++ b/packages/freeradiusclients.xml @@ -4,16 +4,16 @@ <tabs> <tab> <text>Users</text> - <url>/pkg_edit.php?xml=freeradius.xml</url> + <url>/pkg.php?xml=freeradius.xml</url> </tab> <tab> <text>Clients</text> - <url>/pkg_edit.php?xml=freeradiusclients.xml</url> + <url>/pkg.php?xml=freeradiusclients.xml</url> <active/> </tab> <tab> <text>Settings</text> - <url>/pkg_edit.php?xml=freeradiussettings.xml</url> + <url>/pkg_edit.php?xml=freeradiussettings.xml&id=1</url> </tab> </tabs> <configpath>installedpackages->package->$packagename->configuration->settings</configpath> @@ -61,13 +61,15 @@ function sync_package() { 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"); if($config['installedpackages']['freeradiusclients']['config'] != "") { - fwrite($fout, "client 127.0.0.1" . "{\n" . "secret = pfsense\n" . "shortname = localhost\n}\n\n"); foreach($config['installedpackages']['freeradiusclients']['config'] as $rowhelper) { fwrite($fout, "client " . $rowhelper['client'] . "{\n" . "secret = " . $rowhelper['sharedsecret'] . "\nshortname = " . $rowhelper['shortname'] . "\n}\n\n"); } } fclose($fout); + mwexec("killall radiusd"); + mwexec("/usr/local/etc/rc.d/radiusd"); } sync_package(); </custom_php_command_before_form> @@ -76,3 +78,4 @@ </custom_add_php_command> </packagegui> + |