summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-11-08 18:25:56 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-12-03 10:41:28 -0500
commitc7d73cf51642c7f89c1f21e54b8ce1b262bef899 (patch)
treee4a15ef53107389a5e2f1e8db854369a9edb88dd /src/config
parentc8b8901b05da9e31dba320f305ec20301e928cfb (diff)
downloadsssd-c7d73cf51642c7f89c1f21e54b8ce1b262bef899.tar.gz
sssd-c7d73cf51642c7f89c1f21e54b8ce1b262bef899.tar.xz
sssd-c7d73cf51642c7f89c1f21e54b8ce1b262bef899.zip
Add krb5_lifetime option
Diffstat (limited to 'src/config')
-rw-r--r--src/config/SSSDConfig.py1
-rwxr-xr-xsrc/config/SSSDConfigTest.py9
-rw-r--r--src/config/etc/sssd.api.d/sssd-krb5.conf1
3 files changed, 8 insertions, 3 deletions
diff --git a/src/config/SSSDConfig.py b/src/config/SSSDConfig.py
index bb7e424e9..1286e54d9 100644
--- a/src/config/SSSDConfig.py
+++ b/src/config/SSSDConfig.py
@@ -105,6 +105,7 @@ option_strings = {
'krb5_validate' : _("Enable credential validation"),
'krb5_store_password_if_offline' : _("Store password if offline for later online authentication"),
'krb5_renewable_lifetime' : _("Renewable lifetime of the TGT"),
+ 'krb5_lifetime' : _("Lifetime of the TGT"),
# [provider/krb5/chpass]
'krb5_kpasswd' : _('Server where the change password service is running if not on the KDC'),
diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py
index b63e40b57..3d57108a3 100755
--- a/src/config/SSSDConfigTest.py
+++ b/src/config/SSSDConfigTest.py
@@ -550,7 +550,8 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase):
'krb5_validate',
'krb5_store_password_if_offline',
'krb5_auth_timeout',
- 'krb5_renewable_lifetime'])
+ 'krb5_renewable_lifetime',
+ 'krb5_lifetime'])
options = domain.list_options()
@@ -725,7 +726,8 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase):
'krb5_validate',
'krb5_store_password_if_offline',
'krb5_auth_timeout',
- 'krb5_renewable_lifetime']
+ 'krb5_renewable_lifetime',
+ 'krb5_lifetime']
self.assertTrue(type(options) == dict,
"Options should be a dictionary")
@@ -874,7 +876,8 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase):
'krb5_validate',
'krb5_store_password_if_offline',
'krb5_auth_timeout',
- 'krb5_renewable_lifetime'])
+ 'krb5_renewable_lifetime',
+ 'krb5_lifetime'])
options = domain.list_options()
diff --git a/src/config/etc/sssd.api.d/sssd-krb5.conf b/src/config/etc/sssd.api.d/sssd-krb5.conf
index c3cc5bbf8..f824cfbed 100644
--- a/src/config/etc/sssd.api.d/sssd-krb5.conf
+++ b/src/config/etc/sssd.api.d/sssd-krb5.conf
@@ -12,6 +12,7 @@ krb5_keytab = str, None, false
krb5_validate = bool, None, false
krb5_store_password_if_offline = bool, None, false
krb5_renewable_lifetime = str, None, false
+krb5_lifetime = str, None, false
[provider/krb5/chpass]