From b65db7eb93773a828bb5be76799b46cdaab56dc1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 10 Nov 2015 11:04:15 +0100 Subject: [adauth] Add intermediate step to determine binddn if windows style domain is given --- templates/sysconfig/ad-selfsearch.html | 79 +++++++++++++++++++++++ templates/sysconfig/ad_ldap-checkconnection.html | 2 +- templates/sysconfig/ad_ldap-checkcredentials.html | 13 +--- 3 files changed, 81 insertions(+), 13 deletions(-) create mode 100644 templates/sysconfig/ad-selfsearch.html (limited to 'templates') diff --git a/templates/sysconfig/ad-selfsearch.html b/templates/sysconfig/ad-selfsearch.html new file mode 100644 index 00000000..f77bd5fb --- /dev/null +++ b/templates/sysconfig/ad-selfsearch.html @@ -0,0 +1,79 @@ +

+ {{lang_dnLookup}} +

+ +
+
LDAP Self-Query
+ +
+{{lang_onProblemSearchBase}} +

+
+
+ + + + + + + + + {{#ssl}} + + + {{/ssl}} + +
+
+
+
+ + + + + + + + + + + {{#ssl}} + + + {{/ssl}} + + + +
+
+ diff --git a/templates/sysconfig/ad_ldap-checkconnection.html b/templates/sysconfig/ad_ldap-checkconnection.html index 58196958..788978f2 100644 --- a/templates/sysconfig/ad_ldap-checkconnection.html +++ b/templates/sysconfig/ad_ldap-checkconnection.html @@ -60,7 +60,7 @@ var ssl = $('#ssl').length > 0; var ports = task.data.ports; var verRes = -1; - var cert = $('#certificate').val().length > 10; + var cert = ssl && $('#certificate').val().length > 10; for (var i = 0; i < ports.length; ++i) { if (!ports[i].open || !ports[i].port) continue; if ($.isNumeric($('#port').val()) && $('#port').val() < ports[i].port) continue; // Prefer the global LDAP ports over the specific AD ports diff --git a/templates/sysconfig/ad_ldap-checkcredentials.html b/templates/sysconfig/ad_ldap-checkcredentials.html index 5a9d6b38..9f5ccf01 100644 --- a/templates/sysconfig/ad_ldap-checkcredentials.html +++ b/templates/sysconfig/ad_ldap-checkcredentials.html @@ -3,7 +3,6 @@

- {{#self-search}}
LDAP Self-Query
{{/self-search}}
LDAP Test-Query
{{lang_onProblemSearchBase}} @@ -33,7 +32,7 @@ - + {{#ssl}} @@ -63,14 +62,4 @@ $('#nextbutton').show(); } } - function selfCb(task) - { - if (!task || !task.statusCode) - return; - if (task.statusCode === 'TASK_FINISHED' && task.data && task.data.dn) { - $('#setdn').val(task.data.dn); - } else { - $('#nextbutton').html('Trotzdem weiter »'); - } - } -- cgit v1.2.3-55-g7522