diff options
author | equinox <equinox@diac24.net> | 2011-09-27 06:52:54 +0200 |
---|---|---|
committer | equinox <equinox@diac24.net> | 2011-09-27 06:52:54 +0200 |
commit | 2a13c8256b2b64c3c61e043a1d9268b75a4597a4 (patch) | |
tree | 5ef513e495504a23ea0c094c747fc4e140139305 /templates | |
parent | eb5d8a3c4b403978a5827e972d4c5391f0a5ed62 (diff) |
802.1X config template
Diffstat (limited to 'templates')
-rw-r--r-- | templates/8021x.html | 33 | ||||
-rw-r--r-- | templates/layout.xi | 9 | ||||
-rw-r--r-- | templates/select.html | 2 |
3 files changed, 44 insertions, 0 deletions
diff --git a/templates/8021x.html b/templates/8021x.html new file mode 100644 index 0000000..3e3405a --- /dev/null +++ b/templates/8021x.html @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:py="http://genshi.edgewall.org/" + xmlns:sub="http://local.sublab.org/subdap/xmlns-templates" + xmlns:xi="http://www.w3.org/2001/XInclude"> + <xi:include href="layout.xi"/> + <head> + <title>login</title> + </head> + <sub:bodylarge> + <div class="cont"> + <h1>wpa_supplicant WPA-EAP template</h1> + <pre>network={ + scan_ssid=1 + ssid="crew.sublab.org" + + key_mgmt=WPA-EAP + eap=TTLS + phase2="auth=PAP" + + identity="${username}" + password="<i style="color:red;background-color:white">passwort hier einsetzen</i>" + + anonymous_identity="bernd" + ca_cert="<a href="${url('static/cacert.org.pem')}">/etc/ssl/certs/cacert.org.pem</a>" + altsubject_match="DNS:taifun.local.sublab.org" + priority=500 +} + </pre> + </div> + </sub:bodylarge> +</html> diff --git a/templates/layout.xi b/templates/layout.xi index ed8dab8..b5dfd47 100644 --- a/templates/layout.xi +++ b/templates/layout.xi @@ -30,4 +30,13 @@ </div> </body> </py:match> + + <py:match path="sub:bodylarge" once="true"> + <body id="large" py:attrs="select('@*')"> + <div> + <a href="login"><img id="logo" src="static/ldap.png" alt="subdap" width="192" height="230"/></a> + ${select('*')} + </div> + </body> + </py:match> </html> diff --git a/templates/select.html b/templates/select.html index 5fd322f..b25cd1c 100644 --- a/templates/select.html +++ b/templates/select.html @@ -19,6 +19,8 @@ Hallo ${user['cn']}! <p class="app"><a href="https://wiki.sublab.org/auth_subdap.php?${tgts['wiki']}"> <img src="${url('static/app_wiki.png')}" alt="wiki" width="48" height="48"/> sublab.org wiki</a></p> + <p class="app"><a href="cfg8021x?username=${user['cn']}"> + <img src="${url('static/app_8021x.png')}" alt="wlan" width="24" height="24"/> 802.1X config</a></p> <p class="app"><a href="pwchange?username=${user['cn']}"> <img src="${url('static/app_password.png')}" alt="pwchange" width="24" height="24"/> Passwort ändern</a></p> </div> |