summaryrefslogtreecommitdiffstats
path: root/ipsilon/login
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2015-07-17 14:07:16 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2015-08-18 09:52:25 +0200
commitbfa0e5d352ea0d6217d31c952f35cd527264e4fa (patch)
treebb1023e9b4d5049a598e39e9a763a188b49e1ee7 /ipsilon/login
parent7b470b0e494a7ff5a088c3ead2e60754b67282f1 (diff)
downloadipsilon-bfa0e5d352ea0d6217d31c952f35cd527264e4fa.tar.gz
ipsilon-bfa0e5d352ea0d6217d31c952f35cd527264e4fa.tar.xz
ipsilon-bfa0e5d352ea0d6217d31c952f35cd527264e4fa.zip
Mark the service as readonly in the UI in authpam plugin
Update the Option class to take a readonly keyword argument, defaulting to False. Extend its subclasses to pass this value along. The page template will add the disabled keyword to input and textarea if a config option is marked as readonly. https://fedorahosted.org/ipsilon/ticket/6 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'ipsilon/login')
-rw-r--r--ipsilon/login/authpam.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipsilon/login/authpam.py b/ipsilon/login/authpam.py
index 1a34f8f..ed2e72b 100644
--- a/ipsilon/login/authpam.py
+++ b/ipsilon/login/authpam.py
@@ -65,7 +65,9 @@ for authentication. """
pconfig.String(
'service name',
'The name of the PAM service used to authenticate.',
- 'remote'),
+ 'remote',
+ readonly=True,
+ ),
pconfig.String(
'username text',
'Text used to ask for the username at login time.',