diff options
Diffstat (limited to 'templates/sysconfig/ad-checkconnection.html')
-rw-r--r-- | templates/sysconfig/ad-checkconnection.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/sysconfig/ad-checkconnection.html b/templates/sysconfig/ad-checkconnection.html index 1c3a1091..f5fcb2a8 100644 --- a/templates/sysconfig/ad-checkconnection.html +++ b/templates/sysconfig/ad-checkconnection.html @@ -51,13 +51,15 @@ var ports = task.data.ports; for (var i = 0; i < ports.length; ++i) { if (ports[i].open && ports[i].port && (!ssl || ports[i].certFingerprint.length > 10)) { + if ($.isNumeric($('#port').val()) && $('#port').val() < ports[i].port) continue; // Prefer the global LDAP ports over the specific AD ports $('#port').val(ports[i].port); if (ssl) $('#fingerprint').val(ports[i].certFingerprint); - $('#nextbutton').show(); - $('#nextform').submit(); - return; } } + if ($('#port').val() > 0) { + $('#nextbutton').show(); + $('#nextform').submit(); + } } } </script> |