diff options
author | Simon Rettberg | 2015-10-20 17:15:49 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-10-20 17:15:49 +0200 |
commit | 2c6bbc84799bcca7beb88abc4781ab0bc8ec5328 (patch) | |
tree | 21ca2565c6dd63b7405201964652d396e4d87d7c /templates/sysconfig/ldap-checkconnection.html | |
parent | [serversetup] Fix ipxe html layout (diff) | |
download | slx-admin-2c6bbc84799bcca7beb88abc4781ab0bc8ec5328.tar.gz slx-admin-2c6bbc84799bcca7beb88abc4781ab0bc8ec5328.tar.xz slx-admin-2c6bbc84799bcca7beb88abc4781ab0bc8ec5328.zip |
Support creating ad and ldap modules with ca-based cert checking
Diffstat (limited to 'templates/sysconfig/ldap-checkconnection.html')
-rw-r--r-- | templates/sysconfig/ldap-checkconnection.html | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/templates/sysconfig/ldap-checkconnection.html b/templates/sysconfig/ldap-checkconnection.html deleted file mode 100644 index b661a263..00000000 --- a/templates/sysconfig/ldap-checkconnection.html +++ /dev/null @@ -1,66 +0,0 @@ -<p> - {{lang_connectionWait}} -</p> - -<div id="zeug"> - <div data-tm-id="{{taskid}}" data-tm-log="messages" data-tm-callback="portScan">Port Check</div> -</div> -<br> -<div class="pull-left"> - <form role="form" method="post" action="?do=SysConfig&action=addmodule&step=LdapAuth_Start"> - <input type="hidden" name="token" value="{{token}}"> - <input type="hidden" name="edit" value="{{edit}}"> - <input name="title" value="{{title}}" type="hidden"> - <input name="server" value="{{server}}" type="hidden"> - <input name="searchbase" value="{{searchbase}}" type="hidden"> - <input name="binddn" value="{{binddn}}" type="hidden"> - <input name="bindpw" value="{{bindpw}}" type="hidden"> - <input name="home" value="{{home}}" type="hidden"> - {{#ssl}} - <input id="ssl" name="ssl" value="on" type="hidden"> - {{/ssl}} - <button type="submit" class="btn btn-primary">« {{lang_back}}</button> - </form> -</div> -<div class="pull-right"> - <form id="nextform" role="form" method="post" action="?do=SysConfig&action=addmodule&step={{step}}"> - <input type="hidden" name="token" value="{{token}}"> - <input type="hidden" name="edit" value="{{edit}}"> - <input name="title" value="{{title}}" type="hidden"> - <input name="server" value="{{server}}" type="hidden"> - <input id="port" name="port" value="" type="hidden"> - <input name="searchbase" value="{{searchbase}}" type="hidden"> - <input name="binddn" value="{{binddn}}" type="hidden"> - <input name="bindpw" value="{{bindpw}}" type="hidden"> - <input name="home" value="{{home}}" type="hidden"> - {{#ssl}} - <input name="ssl" value="on" type="hidden"> - <input id="fingerprint" name="fingerprint" value="" type="hidden"> - {{/ssl}} - <input name="originalbinddn" value="{{binddn}}" type="hidden"> - <button id="nextbutton" type="submit" class="btn btn-primary" style="display:none">{{lang_next}} »</button> - </form> -</div> -<div id="bla"></div> -<script type="text/javascript"> - function portScan(task) - { - if (!task || !task.statusCode) - return; - if (task.statusCode === 'TASK_FINISHED' && task.data && task.data.ports) { - var ssl = $('#ssl').length > 0; - 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 - $('#port').val(ports[i].port); - if (ssl) $('#fingerprint').val(ports[i].certFingerprint); - } - } - if ($('#port').val() > 0) { - $('#nextbutton').show(); - $('#nextform').submit(); - } - } - } -</script> |