summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-10-24 14:18:10 -0400
committerjim-p <jimp@pfsense.org>2011-10-24 14:20:36 -0400
commit230b3b1b6564063834d132d788484509c86eb39f (patch)
tree568d4efad88b0e82404a1622a3caa3c006280613
parent79226d4fbf74adfa4321215c59f0503dbfae8ce8 (diff)
downloadpfsense-230b3b1b6564063834d132d788484509c86eb39f.zip
pfsense-230b3b1b6564063834d132d788484509c86eb39f.tar.gz
Don't run ldap_urlchange on page load if there is a custom port, otherwise it appears to ignore a custom LDAP port even when it's correct in the config.
-rw-r--r--usr/local/www/system_authservers.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/system_authservers.php b/usr/local/www/system_authservers.php
index 694bee5..79e4e17 100644
--- a/usr/local/www/system_authservers.php
+++ b/usr/local/www/system_authservers.php
@@ -773,7 +773,8 @@ function select_clicked() {
server_typechange('<?=htmlspecialchars($pconfig['type']);?>');
<?php if (!isset($id) || $pconfig['type'] == "ldap"): ?>
ldap_bindchange();
-ldap_urlchange();
+if (document.getElementById("ldap_port").value == "")
+ ldap_urlchange();
<?php if (!isset($id)): ?>
ldap_tmplchange();
<?php endif; ?>
OpenPOWER on IntegriCloud