summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-12 01:09:02 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-12 01:09:02 (GMT)
commitc8db5be5d3fff3168ba842173e6850e7ddfddb21 (patch)
tree2b9cca0000713375ef3d86fd72f0ea2e26b4f064 /authentic/admin/settings.ptl
parent512b4210189c85c26005e57d6232bc3ba4b5a2ce (diff)
downloadauthentic-old-c8db5be5d3fff3168ba842173e6850e7ddfddb21.zip
authentic-old-c8db5be5d3fff3168ba842173e6850e7ddfddb21.tar.gz
authentic-old-c8db5be5d3fff3168ba842173e6850e7ddfddb21.tar.bz2
Add an dn_to_id_regexp to SSL configuration options
* auhthentic/admin/settings.ptl:
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl3
1 files changed, 3 insertions, 0 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index c7ad88a..1c29970 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -863,6 +863,9 @@ class SettingsDirectory(Directory):
form.add(CheckboxWidget, 'allow_certificate_federation', title = _('Allows user to federate their account to any certificate'),
value = ssl_cfg.get('allow_certificate_federation', False),
hint = _('Setting this option an user can choose to associate any certificate to their account. You must configure your webserver to allow connection with any client certificate.'))
+ form.add(StringWidget, 'dn_to_id_regexp', title = _('Regular expression to map DN to user IDs'),
+ value = ssl_cfg.get('dn_to_id_regexp', ''),
+ hint = _('It gives a rule to map subject DN of certificates to user IDs in the identity storage'))
form.add_submit('submit', _('Submit'))
form.add_submit('cancel', _('Cancel'))
if form.get_submit() == 'cancel':