diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-31 01:15:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-31 01:15:40 +0000 |
commit | cc8b82d914d2ac5b5c95904d82e8b1121c3816c4 (patch) | |
tree | a685a5a2da3c07098d923cf3325473747cc265fd /usr/local/www/system_usermanager_settings.php | |
parent | b0fff0d7704f8659fd1da325523a571d3d8a2603 (diff) | |
download | pfsense-cc8b82d914d2ac5b5c95904d82e8b1121c3816c4.zip pfsense-cc8b82d914d2ac5b5c95904d82e8b1121c3816c4.tar.gz |
Add Users containers setting where a ; seperated list of LDAP containers
can be specified to authenticate against. Final item will be a graphical
browser that can help the operator populate this box if they are feeling
lazy or do not understand LDAP completely.
Work sponsored-by: Centipede Networks <http://centipedenetworks.com/>
Diffstat (limited to 'usr/local/www/system_usermanager_settings.php')
-rwxr-xr-x | usr/local/www/system_usermanager_settings.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php index 175b6fa..8255b5d 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"); @@ -104,6 +105,11 @@ if ($_POST) { else unset($pconfig['ldapsearchbase']); + if($_POST['ldapauthcontainers']) + $pconfig['ldapauthcontainers'] = $_POST['ldapauthcontainers']; + else + unset($pconfig['ldapauthcontainers']); + write_config(); $retval = system_password_configure(); @@ -203,6 +209,14 @@ 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']);?>"> + <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%"> |