diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-03-03 16:16:39 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-03-03 16:17:35 +0000 |
commit | 6306b5ddc70ce5bbcf9c9c9769755340e0117de4 (patch) | |
tree | ef8ac81995fa89cde3362ccbc02540a4e468b783 /usr/local/www/vpn_openvpn_server.php | |
parent | f700f8da9deedb1f866353911a5eaf939016124a (diff) | |
download | pfsense-6306b5ddc70ce5bbcf9c9c9769755340e0117de4.zip pfsense-6306b5ddc70ce5bbcf9c9c9769755340e0117de4.tar.gz |
Overhaul the user login system to use the Servers tab as its base.
Fix quite a few problems down the way.
Diffstat (limited to 'usr/local/www/vpn_openvpn_server.php')
-rw-r--r-- | usr/local/www/vpn_openvpn_server.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php index 734c66c..8909194 100644 --- a/usr/local/www/vpn_openvpn_server.php +++ b/usr/local/www/vpn_openvpn_server.php @@ -44,10 +44,6 @@ if (!is_array($config['openvpn']['openvpn-server'])) $a_server = &$config['openvpn']['openvpn-server']; -if (!is_array($config['system']['authserver'])) - $config['system']['authserver'] = array(); -$auth_servers =& $config['system']['authserver']; - $id = $_GET['id']; if (isset($_POST['id'])) $id = $_POST['id']; @@ -557,10 +553,10 @@ function netbios_change() { <tr id="authmodetr" style="display:none"> <td width="22%" valign="top" class="vncellreq"><?=gettext("Backend for authentication");?></td> <td width="78%" class="vtable"> - <select name='authmode[]' id='authmode' class="formselect" multiple="true" size="<?php echo count($auth_servers) + 1; ?>"> + <select name='authmode[]' id='authmode' class="formselect" multiple="true" size="<?php echo count($auth_servers); ?>"> <?php $authmodes = explode(",", $pconfig['authmode']); ?> - <option value="local" <?php if (in_array("local", $authmodes)) echo "selected";?>>Local authentication database</option> <?php + $auth_servers = auth_get_authserver_list(); foreach ($auth_servers as $auth_server): $selected = ""; if (in_array($auth_server['name'], $authmodes)) |