summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/sysconfig/ldap-checkconnection.html65
-rw-r--r--templates/sysconfig/ldap-checkcredentials.html69
-rw-r--r--templates/sysconfig/ldap-finish.html29
-rw-r--r--templates/sysconfig/ldap-start.html79
4 files changed, 242 insertions, 0 deletions
diff --git a/templates/sysconfig/ldap-checkconnection.html b/templates/sysconfig/ldap-checkconnection.html
new file mode 100644
index 00000000..39408526
--- /dev/null
+++ b/templates/sysconfig/ldap-checkconnection.html
@@ -0,0 +1,65 @@
+<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&amp;action=addmodule&amp;step=LdapAuth_Start">
+ <input type="hidden" name="token" value="{{token}}">
+ <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">&laquo; {{lang_back}}</button>
+ </form>
+</div>
+<div class="pull-right">
+ <form id="nextform" role="form" method="post" action="?do=SysConfig&amp;action=addmodule&amp;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}} &raquo;</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>
diff --git a/templates/sysconfig/ldap-checkcredentials.html b/templates/sysconfig/ldap-checkcredentials.html
new file mode 100644
index 00000000..f089c4ab
--- /dev/null
+++ b/templates/sysconfig/ldap-checkcredentials.html
@@ -0,0 +1,69 @@
+<p>
+ {{lang_connectionWait}}
+</p>
+
+<div id="zeug">
+ <div data-tm-id="{{self-search}}" data-tm-log="messages" data-tm-callback="selfCb">LDAP Self-Query</div>
+ <div data-tm-id="{{tm-search}}" data-tm-log="messages" data-tm-callback="ldapCb">LDAP Test-Query</div>
+</div>
+<i>{{lang_onProblemSearchBase}}</i>
+<br><br>
+<div class="pull-left">
+ <form role="form" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step=LdapAuth_Start">
+ <input type="hidden" name="token" value="{{token}}">
+ <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 name="ssl" value="on" type="hidden">
+ {{/ssl}}
+ <button type="submit" class="btn btn-primary">&laquo; {{lang_back}}</button>
+ </form>
+</div>
+<div class="pull-right">
+ <form role="form" method="post" action="?do=SysConfig&amp;action=addmodule&amp;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 name="searchbase" value="{{searchbase}}" type="hidden">
+ <input id="setdn" 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">
+ {{/ssl}}
+ <input name="fingerprint" value="{{fingerprint}}" type="hidden">
+ <input name="originalbinddn" value="{{binddn}}" type="hidden">
+ <button id="nextbutton" type="submit" class="btn btn-primary" style="display:none">{{lang_skip}} &raquo;</button>
+ </form>
+</div>
+<script type="text/javascript">
+ function ldapCb(task)
+ {
+ if (!task || !task.statusCode)
+ return;
+ if (task.statusCode === 'TASK_FINISHED') {
+ $('#nextbutton').html('Weiter &raquo;').show();
+ }
+ if (task.statusCode === 'TASK_ERROR' || task.statusCode === 'PARENT_FAILED') {
+ $('#nextbutton').html('Trotzdem weiter &raquo;');
+ }
+ if (task.statusCode === 'TASK_ERROR') {
+ $('#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 &raquo;');
+ }
+ }
+</script>
diff --git a/templates/sysconfig/ldap-finish.html b/templates/sysconfig/ldap-finish.html
new file mode 100644
index 00000000..a735e792
--- /dev/null
+++ b/templates/sysconfig/ldap-finish.html
@@ -0,0 +1,29 @@
+<p>
+ {{lang_ldapStarted}}
+</p>
+
+<div id="zeug">
+ <div data-tm-id="{{tm-config}}" data-tm-log="error" data-tm-callback="ldapCb">{{lang_generateModule}}</div>
+</div>
+<br>
+<div id="back" class="pull-left" style="display:none">
+ <a href="?do=SysConfig&amp;action=addmodule&amp;step=LdapAuth_Start" class="btn btn-primary">{{lang_restartWizard}}</a>
+</div>
+<div id="finish" class="pull-right" style="display:none">
+ <a href="?do=SysConfig" class="btn btn-primary">{{lang_toSystemConfiguration}}</a>
+</div>
+<script type="text/javascript">
+function ldapCb(task)
+{
+ if (!task || !task.statusCode)
+ return;
+ if (task.statusCode === 'TASK_FINISHED') {
+ $('#finish').attr('style', '');
+ }
+ if (task.statusCode === 'TASK_ERROR' || task.statusCode === 'PARENT_FAILED') {
+ $('#back').attr('style', '');
+ }
+}
+if ('{{tm-config}}' == '')
+ $('#finish').attr('style', '');
+</script>
diff --git a/templates/sysconfig/ldap-start.html b/templates/sysconfig/ldap-start.html
new file mode 100644
index 00000000..05710aad
--- /dev/null
+++ b/templates/sysconfig/ldap-start.html
@@ -0,0 +1,79 @@
+<p>
+ {{lang_ldapText1}}
+ <br>
+ {{lang_ldapText2}}
+</p>
+
+<form role="form" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step={{step}}">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="edit" value="{{edit}}">
+ <div class="input-group">
+ <span class="input-group-addon slx-ga">{{lang_moduleTitle}}</span>
+ <input tabindex="1" name="title" value="{{title}}" type="text" class="form-control">
+ </div>
+ <div class="input-group">
+ <span class="input-group-addon slx-ga">Server *</span>
+ <input tabindex="2" name="server" value="{{server}}" type="text" class="form-control" placeholder="dc0.institution.example.com">
+ <!--span class="input-group-btn">
+ <a class="btn btn-default"><span class="glyphicon glyphicon-question-sign"></span></a>
+ </span-->
+ </div>
+ <div class="input-group">
+ <span class="input-group-addon slx-ga">{{lang_bindDN}}</span>
+ <input tabindex="3" name="binddn" value="{{binddn}}" type="text" class="form-control" placeholder="domain\bwlp *ODER* CN=bwlp,OU=Benutzer,DC=domain,DC=hs-beispiel,DC=de">
+ <!--span class="input-group-btn">
+ <a class="btn btn-default"><span class="glyphicon glyphicon-question-sign"></span></a>
+ </span-->
+ </div>
+ <div class="input-group">
+ <span class="input-group-addon slx-ga">{{lang_password}}</span>
+ <input tabindex="4" name="bindpw" value="{{bindpw}}" type="{{password_type}}" class="form-control" placeholder="{{lang_password}}">
+ <!--span class="input-group-btn">
+ <a class="btn btn-default"><span class="glyphicon glyphicon-question-sign"></span></a>
+ </span-->
+ </div>
+ <div class="input-group">
+ <span class="input-group-addon slx-ga">{{lang_searchBase}} *</span>
+ <input tabindex="5" name="searchbase" value="{{searchbase}}" type="text" class="form-control" placeholder="ou=users,dc=hochschule,dc=de">
+ <!--span class="input-group-btn">
+ <a class="btn btn-default"><span class="glyphicon glyphicon-question-sign"></span></a>
+ </span-->
+ </div>
+ <br>
+ <div class="input-group">
+ <span class="input-group-addon slx-ga">Home</span>
+ <input tabindex="6" name="home" value="{{home}}" type="text" class="form-control" placeholder="\\server.example.com\%s">
+ <span class="input-group-btn">
+ <a class="btn btn-default" data-toggle="modal" data-target="#help-home"><span class="glyphicon glyphicon-question-sign"></span></a>
+ </span>
+ </div>
+ <br>
+ <div class="checkbox">
+ <label>
+ <input type="checkbox" name="ssl" {{#ssl}}checked{{/ssl}}> {{lang_ssl}}
+ </label>
+ </div>
+ <div><i>{{lang_sslDescription}}</i></div>
+ <br>
+ <div class="pull-right">
+ <button type="submit" class="btn btn-primary">{{lang_next}} &raquo;</button>
+ </div>
+</form>
+
+<div class="modal fade" id="help-home" tabindex="-1" role="dialog">
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="modal-header">{{lang_userDirectory}}</div>
+ <div class="modal-body">
+ <p>
+ {{lang_userDirectoryInfo1}}
+ </p>
+ <pre>\\fileserv.uni.example.com\users\%s</pre>
+ <p>
+ {{lang_userDirectoryInfo2}}
+ </p>
+ </div>
+ <div class="modal-footer"><a class="btn btn-primary" data-dismiss="modal">{{lang_close}}</a></div>
+ </div>
+ </div>
+</div>