summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_authservers.php
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:21:07 -0400
commit8f09682259325005a4b4b8c8fb6d9c6d26ee7dc5 (patch)
tree31715fa569a2ce560810aa750bf84495668d5275 /usr/local/www/system_authservers.php
parent9f07c3438db0f42036e10f221f20bbebd202c3df (diff)
downloadpfsense-8f09682259325005a4b4b8c8fb6d9c6d26ee7dc5.zip
pfsense-8f09682259325005a4b4b8c8fb6d9c6d26ee7dc5.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.
Diffstat (limited to 'usr/local/www/system_authservers.php')
-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 5fc0782..c0bfc4f 100644
--- a/usr/local/www/system_authservers.php
+++ b/usr/local/www/system_authservers.php
@@ -794,7 +794,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