summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-12 01:04:32 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-12 01:04:32 (GMT)
commitb189d26feabb285df9679e48fc4377dfbda773e6 (patch)
treeef947f04d4f3800758272202c686c1a9dfd509c4 /authentic/admin/settings.ptl
parent60f3cef9deaa9604be37a2f9e37521d0f14a0059 (diff)
downloadauthentic-old-b189d26feabb285df9679e48fc4377dfbda773e6.zip
authentic-old-b189d26feabb285df9679e48fc4377dfbda773e6.tar.gz
authentic-old-b189d26feabb285df9679e48fc4377dfbda773e6.tar.bz2
Add an SSL configuration panel to settings panel
* authentic/admin/settings.ptl:
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl21
1 files changed, 20 insertions, 1 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index 8af3105..302ec29 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -673,7 +673,7 @@ class SettingsDirectory(Directory):
_q_exports = ['', 'idp', 'liberty_providers',
'identity_storage', 'identity_options', 'themes', 'passwords',
'debug_options', 'emails', 'language', 'login', 'template', 'texts',
- 'sitename']
+ 'sitename', 'ssl']
emails = EmailsDirectory()
texts = TextsDirectory()
@@ -721,6 +721,8 @@ class SettingsDirectory(Directory):
_('Identity Storage'), _('Configure identities data source'))
'<dt><a href="passwords">%s</a></dt> <dd>%s</dd>' % (
_('Passwords'), _('Configure all password things'))
+ '<dt><a href="ssl">%s</a></dt> <dd>%s</dd>' % (
+ _('SSL'), _('Configure all SSL things'))
'</dl>'
'<h2>%s</h2>' % _('Customisation')
@@ -849,6 +851,23 @@ class SettingsDirectory(Directory):
'<h2>%s</h2>' % _('Login Screen')
form.render()
+ def ssl [html] (self):
+ form = Form(enctype='multipart/form-data')
+ ssl_cfg = get_cfg('ssl', {})
+ form.add_submit('submit', _('Submit'))
+ form.add_submit('cancel', _('Cancel'))
+ if form.get_submit() == 'cancel':
+ return redirect('.')
+
+ if form.is_submitted() and not form.has_errors():
+ cfg_submit(form, 'ssl', ['allow_ssl_login','require_ssl','allow_certificate_federation', 'dn_to_id_regexp'])
+ return redirect('.')
+
+ get_response().breadcrumb.append(('ssl', _('SSL')))
+ html_top('settings', title = _('SSL'))
+ '<h2>%s</h2>' % _('SSL')
+ form.render()
+
def themes [html] (self):
import xml.dom.minidom