summaryrefslogtreecommitdiff
path: root/src/medsrv/templates/user
diff options
context:
space:
mode:
Diffstat (limited to 'src/medsrv/templates/user')
-rwxr-xr-xsrc/medsrv/templates/user/add.cs28
-rwxr-xr-xsrc/medsrv/templates/user/edit.cs35
-rw-r--r--src/medsrv/templates/user/help.cs34
-rwxr-xr-xsrc/medsrv/templates/user/login.cs23
4 files changed, 120 insertions, 0 deletions
diff --git a/src/medsrv/templates/user/add.cs b/src/medsrv/templates/user/add.cs
new file mode 100755
index 000000000..8ba4e5c96
--- /dev/null
+++ b/src/medsrv/templates/user/add.cs
@@ -0,0 +1,28 @@
+<?cs include:"templates/header.cs" ?>
+<form method="post">
+<?cs if:?error ?>
+ <div class="error"><?cs var:error ?></div>
+<?cs /if ?>
+ <table class="user">
+ <tr>
+ <td><label for="new_login">Username</label></td>
+ <td><input type="text" id="new_login" name="new_login" class="focus" maxlength="30" value="<?cs var:new_login ?>"/></td>
+ </tr>
+ <tr>
+ <td><label for="new_password">Password</label></td>
+ <td><input type="password" id="new_password" name="new_password"/></td>
+ <td><small>min. <?cs var:password_length ?> characters</small></td>
+ </tr>
+ <tr>
+ <td><label for="confirm_password">Confirm password</label></td>
+ <td><input type="password" id="confirm_password" name="confirm_password"/></td>
+ </tr>
+ <tr>
+ <td/>
+ <td class="right">
+ <input type="submit" value="Register" name="register"/>
+ </td>
+ </tr>
+</table>
+</form>
+<?cs include:"templates/footer.cs" ?>
diff --git a/src/medsrv/templates/user/edit.cs b/src/medsrv/templates/user/edit.cs
new file mode 100755
index 000000000..1f168498b
--- /dev/null
+++ b/src/medsrv/templates/user/edit.cs
@@ -0,0 +1,35 @@
+<?cs include:"templates/header.cs" ?>
+<form method="post">
+<?cs if:?error ?>
+ <div class="error"><?cs var:error ?></div>
+<?cs /if ?>
+ <table class="user">
+ <tr>
+ <td><label for="old_login">Username</label></td>
+ <td><input type="text" id="old_login" name="old_login" maxlength="30" value="<?cs var:old_login ?>" /></td>
+ </tr>
+ <tr>
+ <td><label for="old_password">Old password</label></td>
+ <td><input type="password" id="old_password" name="old_password"/></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td><label for="new_password">New password</label></td>
+ <td><input type="password" id="new_password" name="new_password"/></td>
+ <td><small>min. <?cs var:password_length ?> characters</small></td>
+ </tr>
+ <tr>
+ <td><label for="confirm_password">Confirm new password</label></td>
+ <td><input type="password" id="confirm_password" name="confirm_password"/></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="right">
+ <input type="submit" value="Back" name="back"/>
+ <input type="submit" value="Delete" name="delete" onclick="return confirm('Permanently delete your account?')"/>
+ <input type="submit" value="Save" name="save"/>
+ </td>
+ </tr>
+ </table>
+</form>
+<?cs include:"templates/footer.cs" ?>
diff --git a/src/medsrv/templates/user/help.cs b/src/medsrv/templates/user/help.cs
new file mode 100644
index 000000000..58615c14a
--- /dev/null
+++ b/src/medsrv/templates/user/help.cs
@@ -0,0 +1,34 @@
+<?cs include:"templates/header.cs" ?>
+<div>
+<h3>strongSwan Mediation Service web frontend</h3>
+<p>This web application builds the end user front end for a Mediation Service
+as defined in the <i>
+<a href="http://www.ietf.org/internet-drafts/draft-brunner-ikev2-mediation-00.txt">
+IKEv2 Mediation Extension draft</a></i>.</p>
+<h4>Mediation connection</h4>
+<p>The authentication between Mediation Server and connecting clients is based
+on RSA public keys. The identities used for IKEv2 are the public key identifier
+of each clients key, encapsulated in a ID_KEY_ID identity.</p>
+<p>The public key of this Mediation Server is:</p>
+<pre>-----BEGIN PUBLIC KEY-----
+MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzZRsIp99UrIdoctThOfc
+r2Up92BTSlY1Xv1J6Hqcbx3dX/MDvX60nCPeA63Eh0VvQetfkpR73I/42+RD+NES
+4NosmBRefE0c0Vzd0IV39NTz0KLh2jwIyUzYGXWHUZMeepckzEPXOhG44XaiaLTN
+u/OZXLCXI6vJv8R3wl5xSkZhqEwHi+dATYmGvlXyBDfjprJ4o8yJrsCFlB8aGq+v
+SyKuFG/kaE1VZ9wwZYoyCH0BuYUVBwyxZTMRy2EC+CqDxjjCp5mF27lgB1Lpy8Jy
+AUpcVHtKtZEww6lIZYv/eUtvICz5WTn/pzsQUh8FwGDOyxX4WX7ZXXK55AXuMfG1
+2QIDAQAB
+-----END PUBLIC KEY-----</pre>
+<p>The Mediation Server is reachable at <i>mediation.strongswan.org</i>.</p>
+The mediation server allows connections from all registered peers.</p>
+<h4>Mediated connections</h4>
+<p>The authentication between mediated clients is done between clients, they
+can use own keys or the same keys as defined for authentication of the
+mediation connection.
+<form action="<?cs var:base ?>/peer/list" method="get">
+ <div class="right">
+ <input type="submit" value="Back"/></td>
+ </div>
+</form>
+</div>
+<?cs include:"templates/footer.cs" ?>
diff --git a/src/medsrv/templates/user/login.cs b/src/medsrv/templates/user/login.cs
new file mode 100755
index 000000000..1d6eadbbc
--- /dev/null
+++ b/src/medsrv/templates/user/login.cs
@@ -0,0 +1,23 @@
+<?cs include:"templates/header.cs" ?>
+<form method="post">
+<?cs if:?error ?>
+ <div class="error"><?cs var:error ?></div>
+<?cs /if ?>
+ <table class="user">
+ <tr>
+ <td><label for="login">Username</label></td>
+ <td><input type="text" id="login" name="login" size="30" maxlength="30" class="focus"/></td>
+ </tr>
+ <tr>
+ <td><label for="password">Password</label></td>
+ <td><input type="password" id="password" name="password" size="30"/></td>
+ </tr>
+ <tr>
+ <td/>
+ <td class="right">
+ <input type="submit" value="Login" name="submit"/>
+ </td>
+ </tr>
+</table>
+</form>
+<?cs include:"templates/footer.cs" ?>