summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_authservers.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-11-14 19:59:40 +0000
committerErmal <eri@pfsense.org>2012-11-14 19:59:40 +0000
commit0aee7a76968931648d46b170917e647a79ef2bcb (patch)
tree4035d93d260292595275b21a3efbf2006eb191c7 /usr/local/www/system_authservers.php
parent842d372c0c24619441c9b89125bdaaaecfd7aff5 (diff)
downloadpfsense-0aee7a76968931648d46b170917e647a79ef2bcb.zip
pfsense-0aee7a76968931648d46b170917e647a79ef2bcb.tar.gz
Correct Select button when no ca_ref is defined
Diffstat (limited to 'usr/local/www/system_authservers.php')
-rw-r--r--usr/local/www/system_authservers.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/system_authservers.php b/usr/local/www/system_authservers.php
index bc88f27..2649d5b 100644
--- a/usr/local/www/system_authservers.php
+++ b/usr/local/www/system_authservers.php
@@ -400,7 +400,11 @@ function select_clicked() {
url += '&urltype=' + document.getElementById("ldap_urltype").value;
url += '&proto=' + document.getElementById("ldap_protver").value;
url += '&authcn=' + document.getElementById("ldapauthcontainers").value;
- url += '&cert=' + document.getElementById("ldap_caref").value;
+ <?php if (count($a_ca) > 0): ?>
+ url += '&cert=' + document.getElementById("ldap_caref").value;
+ <?php else: ?>
+ url += '&cert=';
+ <?php endif; ?>
var oWin = window.open(url,"pfSensePop","width=620,height=400,top=150,left=150");
if (oWin==null || typeof(oWin)=="undefined")
@@ -574,7 +578,7 @@ function select_clicked() {
<tr>
<td><?=gettext("Containers:");?> &nbsp;</td>
<td>
- <input name="ldapauthcontainers" type="text" class="formfld unknown" id="ldapauthcontainers" size="40" value="<?=htmlspecialchars($pconfig['ldap_authcn']);?>"/>
+ <input id="ldapauthcontainers" name="ldapauthcontainers" type="text" class="formfld unknown" id="ldapauthcontainers" size="40" value="<?=htmlspecialchars($pconfig['ldap_authcn']);?>"/>
<input type="button" onClick="select_clicked();" value="<?=gettext("Select");?>">
<br /><?=gettext("Note: Semi-Colon separated. This will be prepended to the search base dn above or you can specify full container path.");?>
<br /><?=gettext("Example: CN=Users;DC=example");?>
OpenPOWER on IntegriCloud