From 9e80079370ff3b943832adc3c5ef430e64be0a0c Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 3 Jan 2012 21:32:30 +0100 Subject: AUTOFS: responder --- src/config/SSSDConfig.py | 4 ++++ src/config/SSSDConfigTest.py | 14 ++++++++++---- src/config/etc/sssd.api.conf | 6 ++++++ 3 files changed, 20 insertions(+), 4 deletions(-) (limited to 'src/config') diff --git a/src/config/SSSDConfig.py b/src/config/SSSDConfig.py index dfad410c..740ab27f 100644 --- a/src/config/SSSDConfig.py +++ b/src/config/SSSDConfig.py @@ -77,6 +77,9 @@ option_strings = { 'sudo_timed' : _('Whether to evaluate the time-based attributes in sudo rules'), 'sudo_cache_timeout' : _('How many seconds to keep sudorules cached before asking the provider again'), + # [autofs] + 'autofs_negative_timeout' : _('Negative cache timeout length (seconds)'), + # [provider] 'id_provider' : _('Identity provider'), 'auth_provider' : _('Authentication provider'), @@ -103,6 +106,7 @@ option_strings = { 'entry_cache_group_timeout' : _('Entry cache timeout length (seconds)'), 'entry_cache_netgroup_timeout' : _('Entry cache timeout length (seconds)'), 'entry_cache_service_timeout' : _('Entry cache timeout length (seconds)'), + 'entry_cache_autofs_timeout' : _('Entry cache timeout length (seconds)'), # [provider/ipa] 'ipa_domain' : _('IPA domain'), diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py index 66b3f9c7..2d6fa5ad 100755 --- a/src/config/SSSDConfigTest.py +++ b/src/config/SSSDConfigTest.py @@ -483,6 +483,7 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): 'entry_cache_group_timeout', 'entry_cache_netgroup_timeout', 'entry_cache_service_timeout', + 'entry_cache_autofs_timeout', 'lookup_family_order', 'account_cache_expiration', 'dns_resolver_timeout', @@ -494,7 +495,8 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): 'auth_provider', 'access_provider', 'chpass_provider', - 'sudo_provider'] + 'sudo_provider', + 'autofs_provider' ] self.assertTrue(type(options) == dict, "Options should be a dictionary") @@ -806,6 +808,7 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): 'entry_cache_group_timeout', 'entry_cache_netgroup_timeout', 'entry_cache_service_timeout', + 'entry_cache_autofs_timeout', 'account_cache_expiration', 'lookup_family_order', 'dns_resolver_timeout', @@ -817,7 +820,8 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): 'auth_provider', 'access_provider', 'chpass_provider', - 'sudo_provider'] + 'sudo_provider', + 'autofs_provider'] self.assertTrue(type(options) == dict, "Options should be a dictionary") @@ -1146,7 +1150,8 @@ class SSSDConfigTestSSSDConfig(unittest.TestCase): 'sssd', 'nss', 'pam', - 'sudo'] + 'sudo', + 'autofs'] for section in control_list: self.assertTrue(sssdconfig.has_section(section), "Section [%s] missing" % @@ -1188,7 +1193,8 @@ class SSSDConfigTestSSSDConfig(unittest.TestCase): 'sssd', 'pam', 'nss', - 'sudo'] + 'sudo', + 'autofs' ] service_list = sssdconfig.list_services() for service in control_list: self.assertTrue(service in service_list, diff --git a/src/config/etc/sssd.api.conf b/src/config/etc/sssd.api.conf index 6eb08a5d..446bf950 100644 --- a/src/config/etc/sssd.api.conf +++ b/src/config/etc/sssd.api.conf @@ -48,6 +48,10 @@ pam_pwd_expiration_warning = int, None, false sudo_timed = bool, None, false sudo_cache_timeout = int, None, false +[autofs] +# autofs service +autofs_negative_timeout = int, None, false + [provider] #Available provider types id_provider = str, None, true @@ -55,6 +59,7 @@ auth_provider = str, None, false access_provider = str, None, false chpass_provider = str, None, false sudo_provider = str, None, false +autofs_provider = str, None, false [domain] # Options available to all domains @@ -86,6 +91,7 @@ entry_cache_user_timeout = int, None, false entry_cache_group_timeout = int, None, false entry_cache_netgroup_timeout = int, None, false entry_cache_service_timeout = int, None, false +entry_cache_autofs_timeout = int, None, false # Special providers [provider/permit] -- cgit