From c7d73cf51642c7f89c1f21e54b8ce1b262bef899 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 8 Nov 2010 18:25:56 +0100 Subject: Add krb5_lifetime option --- src/config/SSSDConfig.py | 1 + src/config/SSSDConfigTest.py | 9 ++++++--- src/config/etc/sssd.api.d/sssd-krb5.conf | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src/config') 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] -- cgit