summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_usermanager_settings.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-27 18:58:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-27 18:58:41 +0000
commit36d42c1a82b394922912d3c819d84e5d48462aa2 (patch)
tree605112a662db0fc73d32858d3ced7398aa6852f8 /usr/local/www/system_usermanager_settings.php
parent15fb334387c48236f4c1b41ad91eb9e632bd923e (diff)
downloadpfsense-36d42c1a82b394922912d3c819d84e5d48462aa2.zip
pfsense-36d42c1a82b394922912d3c819d84e5d48462aa2.tar.gz
Adding LDAP settings:
* Authentication backend * LDAP Server:port Work sponsored-by: Centipede Networks
Diffstat (limited to 'usr/local/www/system_usermanager_settings.php')
-rwxr-xr-xusr/local/www/system_usermanager_settings.php53
1 files changed, 43 insertions, 10 deletions
diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php
index 8e0e7a9..f81cfb4 100755
--- a/usr/local/www/system_usermanager_settings.php
+++ b/usr/local/www/system_usermanager_settings.php
@@ -29,6 +29,8 @@
*/
require("guiconfig.inc");
$pconfig['session_timeout'] = &$config['system']['webgui']['session_timeout'];
+$pconfig['ldapserver'] = &$config['system']['webgui']['ldapserver'];
+$pconfig['backend'] = &$config['system']['webgui']['backend'];
// Page title for main admin
$pgtitle = array("System","User manager settings");
@@ -65,7 +67,17 @@ if ($_POST) {
$pconfig['session_timeout'] = intval($_POST['session_timeout']);
else
unset($config['system']['webgui']['session_timeout']);
+
+ if($_POST['ldapserver'])
+ $pconfig['ldapserver'] = $_POST['ldapserver'];
+ else
+ unset($pconfig['ldapserver']);
+ if($_POST['backend'])
+ $pconfig['backend'] = $_POST['backend'];
+ else
+ unset($pconfig['backend']);
+
write_config();
$retval = system_password_configure();
@@ -91,26 +103,47 @@ include("head.inc");
$tab_array[] = array(gettext("Group"), false, "system_groupmanager.php");
$tab_array[] = array(gettext("Settings"), true, "system_usermanager_settings.php");
display_top_tabs($tab_array);
+
+/* Default to pfsense backend type if none is defined */
+if(!$pconfig['backend'])
+ $pconfig['backend'] = "pfsense";
+
?>
</td>
<tr>
<td>
<div id="mainarea">
<form id="iform" name="iform" action="system_usermanager_settings.php" method="post">
- <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
+ <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="6">
+ <tr>
<td width="22%" valign="top" class="vncell">Session Timeout</td>
- <td width="78%" class="vtable"> <input name="session_timeout" id="session_timeout" type="text"size="20" class="formfld unknown" value="<?=htmlspecialchars($pconfig['session_timeout']);?>" />
+ <td width="78%" class="vtable">
+ <input name="session_timeout" id="session_timeout" type="text"size="8" class="formfld unknown" value="<?=htmlspecialchars($pconfig['session_timeout']);?>" />
<br />
<?=gettext("Time in minutes to expire idle management sessions.");?><br />
- </td>
+ </td>
</tr>
-
- <tr>
- <td width="22%" valign="top">&nbsp;</td>
- <td width="78%"> <input id="submit" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
- </td>
- </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell">Authentication backend</td>
+ <td width="78%" class="vtable">
+ <select name='backend'>
+ <option value="pfsense"<?php if ($pconfig['backend'] == "pfsense") echo " SELECTED";?>>Built in</option>
+ <option value="ldap"<?php if ($pconfig['backend'] == "ldap") echo " SELECTED";?>>LDAP, Built in</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell">LDAP Server:port</td>
+ <td width="78%" class="vtable">
+ <input name="ldapserver" size="65" value="<?=htmlspecialchars($pconfig['ldapserver']);?>">
+ <br/>Example: ldap.example.org:339
+ </td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top">&nbsp;</td>
+ <td width="78%"> <input id="submit" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
+ </td>
+ </tr>
</table>
</form>
</div>
OpenPOWER on IntegriCloud