diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-12-10 12:16:57 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-12-10 17:20:27 -0500 |
commit | cd76c7f5f91e533e1f267067c8cadf65fec40a30 (patch) | |
tree | 92a2053ea4a5ee9139f2f83827b0f28a6aed08f7 /server | |
parent | 6730ad84968681d86ff7d82751fe886a2f138673 (diff) | |
download | sssd-cd76c7f5f91e533e1f267067c8cadf65fec40a30.tar.gz sssd-cd76c7f5f91e533e1f267067c8cadf65fec40a30.tar.xz sssd-cd76c7f5f91e533e1f267067c8cadf65fec40a30.zip |
Add 'permit' and 'deny' access providers to SSSDConfig API
Diffstat (limited to 'server')
-rw-r--r-- | server/config/SSSDConfigTest.py | 12 | ||||
-rw-r--r-- | server/config/etc/sssd.api.conf | 9 |
2 files changed, 16 insertions, 5 deletions
diff --git a/server/config/SSSDConfigTest.py b/server/config/SSSDConfigTest.py index d3e452618..d59c260f5 100644 --- a/server/config/SSSDConfigTest.py +++ b/server/config/SSSDConfigTest.py @@ -491,11 +491,13 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): domain = SSSDConfig.SSSDDomain('sssd', self.schema) control_provider_dict = { - 'ipa': ('id', 'auth', 'access', 'chpass'), - 'local': ('id', 'auth', 'access', 'chpass'), - 'ldap': ('id', 'auth', 'chpass'), - 'krb5': ('auth', 'access', 'chpass'), - 'proxy': ('id', 'auth')} + 'ipa': ['id', 'auth', 'access', 'chpass'], + 'local': ['id', 'auth', 'access', 'chpass'], + 'ldap': ['id', 'auth', 'chpass'], + 'krb5': ['auth', 'access', 'chpass'], + 'proxy': ['id', 'auth'], + 'permit': ['access'], + 'deny': ['access']} providers = domain.list_providers() diff --git a/server/config/etc/sssd.api.conf b/server/config/etc/sssd.api.conf index 91b38b638..8e37b98c7 100644 --- a/server/config/etc/sssd.api.conf +++ b/server/config/etc/sssd.api.conf @@ -52,3 +52,12 @@ store_legacy_passwords = bool, None, false use_fully_qualified_names = bool, None, false entry_cache_timeout = int, None +# Special providers +[provider/permit] + +[provider/permit/access] + +[provider/deny] + +[provider/deny/access] + |