diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-01-18 02:41:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-01-18 02:41:52 +0000 |
commit | 348cb6d79c42c66dfa031eb801ed90007684b270 (patch) | |
tree | 330e957f7d76cf66528e7d51a73607a9c939edb1 /usr/local/www | |
parent | 56350d2ff84a878dc6989897303c788248c043de (diff) | |
download | pfsense-348cb6d79c42c66dfa031eb801ed90007684b270.zip pfsense-348cb6d79c42c66dfa031eb801ed90007684b270.tar.gz |
Add back ldap auth caontainer picker.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/system_usermanager_settings.php | 20 |
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"> </td> <td width="78%"> @@ -230,3 +241,4 @@ function openwindow(url) { } } </script> + |