summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_authservers.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-05-18 11:06:23 -0400
committerjim-p <jimp@pfsense.org>2010-05-18 11:06:23 -0400
commit9db6993f9ad8de7add4d8b042583c56014cef853 (patch)
tree5758d202281691130312d0036686f7139f6e2fe9 /usr/local/www/system_authservers.php
parent98be58a2b2c042c6604b97bb12700ff8a2413115 (diff)
downloadpfsense-9db6993f9ad8de7add4d8b042583c56014cef853.zip
pfsense-9db6993f9ad8de7add4d8b042583c56014cef853.tar.gz
Fix deletion of authentication servers. Fixes #600.
Diffstat (limited to 'usr/local/www/system_authservers.php')
-rw-r--r--usr/local/www/system_authservers.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/local/www/system_authservers.php b/usr/local/www/system_authservers.php
index 984f0ab..698a6be 100644
--- a/usr/local/www/system_authservers.php
+++ b/usr/local/www/system_authservers.php
@@ -65,11 +65,19 @@ if ($act == "del") {
exit;
}
+ /* Remove server from main list. */
$serverdeleted = $a_server[$_GET['id']]['name'];
+ foreach ($config['system']['authserver'] as $k => $as) {
+ if ($config['system']['authserver'][$k]['name'] == $serverdeleted)
+ unset($config['system']['authserver'][$k]);
+ }
+
+ /* Remove server from temp list used later on this page. */
unset($a_server[$_GET['id']]);
- write_config();
+
$savemsg = gettext("Authentication Server")." {$serverdeleted} ".
- gettext("successfully deleted")."<br/>";
+ gettext("deleted")."<br/>";
+ write_config($savemsg);
}
if ($act == "edit") {
OpenPOWER on IntegriCloud