summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-08-28 10:17:52 -0700
committerScott Ullrich <sullrich@gmail.com>2011-08-28 10:17:52 -0700
commit8d29f477a2174582e5a08d0753b3452c7988bef2 (patch)
treefdc3707385c36a19ec4875dc55ec3294c00dacde /usr/local/www
parent3dd2a27826e758abfc06e518ea2ce0f252d66474 (diff)
parentc7073ebf51d45208435d123edb75c8673ee0d3ce (diff)
downloadpfsense-8d29f477a2174582e5a08d0753b3452c7988bef2.zip
pfsense-8d29f477a2174582e5a08d0753b3452c7988bef2.tar.gz
Merge pull request #10 from namezero111111/patch-2
Added web interface capability to make the LDAP search more specific in o
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/system_authservers.php23
1 files changed, 22 insertions, 1 deletions
diff --git a/usr/local/www/system_authservers.php b/usr/local/www/system_authservers.php
index 694bee5..5fc0782 100644
--- a/usr/local/www/system_authservers.php
+++ b/usr/local/www/system_authservers.php
@@ -2,7 +2,7 @@
/*
system_authservers.php
- Copyright (C) 2010 Ermal Luçi
+ Copyright (C) 2010 Ermal Lu�i
Copyright (C) 2008 Shrew Soft Inc.
All rights reserved.
@@ -99,6 +99,8 @@ if ($act == "edit") {
$pconfig['ldap_scope'] = $a_server[$id]['ldap_scope'];
$pconfig['ldap_basedn'] = $a_server[$id]['ldap_basedn'];
$pconfig['ldap_authcn'] = $a_server[$id]['ldap_authcn'];
+ $pconfig['ldap_extended_enabled'] = $a_server[$id]['ldap_extended_enabled'];
+ $pconfig['ldap_extended_query'] = $a_server[$id]['ldap_extended_query'];
$pconfig['ldap_binddn'] = $a_server[$id]['ldap_binddn'];
$pconfig['ldap_bindpw'] = $a_server[$id]['ldap_bindpw'];
$pconfig['ldap_attr_user'] = $a_server[$id]['ldap_attr_user'];
@@ -235,6 +237,8 @@ if ($_POST) {
$server['ldap_scope'] = $pconfig['ldap_scope'];
$server['ldap_basedn'] = $pconfig['ldap_basedn'];
$server['ldap_authcn'] = $pconfig['ldapauthcontainers'];
+ $server['ldap_extended_enabled'] = $pconfig['ldap_extended_enabled'];
+ $server['ldap_extended_query'] = $pconfig['ldap_extended_query'];
$server['ldap_attr_user'] = $pconfig['ldap_attr_user'];
$server['ldap_attr_group'] = $pconfig['ldap_attr_group'];
$server['ldap_attr_member'] = $pconfig['ldap_attr_member'];
@@ -580,6 +584,23 @@ function select_clicked() {
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Extended Query");?></td>
+ <td width="78%" class="vtable">
+ <table border="0" cellspacing="0" cellpadding="2">
+ <tr>
+ <td>
+ <input name="ldap_extended_enabled" type="checkbox" id="ldap_extended_enabled" value="no" <?php if ($pconfig['ldap_extended_enabled']) echo "checked"; ?> >
+ </td>
+ <td>
+
+ <input name="ldap_extended_query" type="text" class="formfld unknown" id="ldap_extended_query" size="40" value="<?=htmlspecialchars($pconfig['ldap_extended_query']);?>"/>
+ <br /><?=gettext("Example: CN=Groupname,OU=MyGroups,DC=example,DC=com;OU=OtherUsers,DC=example,DC=com ");?>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Bind credentials");?></td>
<td width="78%" class="vtable">
<table border="0" cellspacing="0" cellpadding="2">
OpenPOWER on IntegriCloud