summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_usermanager_settings.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-01-18 02:41:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-01-18 02:41:52 +0000
commit348cb6d79c42c66dfa031eb801ed90007684b270 (patch)
tree330e957f7d76cf66528e7d51a73607a9c939edb1 /usr/local/www/system_usermanager_settings.php
parent56350d2ff84a878dc6989897303c788248c043de (diff)
downloadpfsense-348cb6d79c42c66dfa031eb801ed90007684b270.zip
pfsense-348cb6d79c42c66dfa031eb801ed90007684b270.tar.gz
Add back ldap auth caontainer picker.
Diffstat (limited to 'usr/local/www/system_usermanager_settings.php')
-rwxr-xr-xusr/local/www/system_usermanager_settings.php20
1 files changed, 16 insertions, 4 deletions
diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php
index b402fae..b637475 100755
--- a/usr/local/www/system_usermanager_settings.php
+++ b/usr/local/www/system_usermanager_settings.php
@@ -43,6 +43,7 @@ $pconfig['ldapbindun'] = &$config['system']['webgui']['ldapbindun'];
$pconfig['ldapbindpw'] = &$config['system']['webgui']['ldapbindpw'];
$pconfig['ldapfilter'] = &$config['system']['webgui']['ldapfilter'];
$pconfig['ldapsearchbase'] = &$config['system']['webgui']['ldapsearchbase'];
+$pconfig['ldapauthcontainers'] = &$config['system']['webgui']['ldapauthcontainers'];
// Page title for main admin
$pgtitle = array("System","User manager settings");
@@ -50,10 +51,6 @@ $pgtitle = array("System","User manager settings");
if ($_POST) {
unset($input_errors);
- /* input validation */
- $reqdfields = explode(" ", "session_timeout");
- $reqdfieldsn = explode(",", "Session Timeout");
-
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
if($_POST['session_timeout']) {
@@ -105,6 +102,11 @@ if ($_POST) {
else
unset($pconfig['ldapsearchbase']);
+ if($_POST['ldapauthcontainers'])
+ $pconfig['ldapauthcontainers'] = $_POST['ldapauthcontainers'];
+ else
+ unset($pconfig['ldapauthcontainers']);
+
write_config();
$retval = system_password_configure();
@@ -204,6 +206,15 @@ if(!$pconfig['backend'])
<br/>Example: DC=pfsense,DC=com
</td>
</tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell">LDAP Authentication containers</td>
+ <td width="78%" class="vtable">
+ <input name="ldapauthcontainers" size="65" value="<?=htmlspecialchars($pconfig['ldapauthcontainers']);?>">
+ <a href="javascript:if(openwindow('system_usermanager_settings_ldapacpicker.php') == false) alert('Popup blocker detected. Action aborted.');" >Select</a>
+ <br/>NOTE: Comma separated.
+ <br/>EXAMPLE: CN=Users,DC=pfsense,DC=com;CN=OtherUsers,DC=pfsense,DC=com
+ </td>
+ </tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
@@ -230,3 +241,4 @@ function openwindow(url) {
}
}
</script>
+
OpenPOWER on IntegriCloud