diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-05-09 11:07:31 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-05-09 19:23:09 -0400 |
commit | f6dbb235373b122ae15643ef5dbbe821ee1307d9 (patch) | |
tree | 4372f8a2e91c05a7437a278273d4f392ed29737f /src/config | |
parent | 163a17f00c42f2405d8fb0a2af3bc9d8b7309260 (diff) | |
download | sssd-f6dbb235373b122ae15643ef5dbbe821ee1307d9.tar.gz sssd-f6dbb235373b122ae15643ef5dbbe821ee1307d9.tar.bz2 sssd-f6dbb235373b122ae15643ef5dbbe821ee1307d9.zip |
NSS: Add fallback_homedir option
This option is similar to override_homedir, except that it will
take effect only for users that do not have an explicit home
directory specified in LDAP.
https://fedorahosted.org/sssd/ticket/1250
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/SSSDConfig.py | 1 | ||||
-rwxr-xr-x | src/config/SSSDConfigTest.py | 2 | ||||
-rw-r--r-- | src/config/etc/sssd.api.conf | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/config/SSSDConfig.py b/src/config/SSSDConfig.py index aa35f9c6..894837d4 100644 --- a/src/config/SSSDConfig.py +++ b/src/config/SSSDConfig.py @@ -63,6 +63,7 @@ option_strings = { 'filter_users_in_groups' : _('Should filtered users appear in groups'), 'pwfield' : _('The value of the password field the NSS provider should return'), 'override_homedir' : _('Override homedir value from the identity provider with this value'), + 'fallback_homedir' : _('Substitute empty homedir value from the identity provider with this value'), 'allowed_shells' : _('The list of shells users are allowed to log in with'), 'vetoed_shells' : _('The list of shells that will be vetoed, and replaced with the fallback shell'), 'shell_fallback' : _('If a shell stored in central directory is allowed but not available, use this fallback'), diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py index df482666..1e1fe98e 100755 --- a/src/config/SSSDConfigTest.py +++ b/src/config/SSSDConfigTest.py @@ -493,6 +493,7 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): 'override_gid', 'case_sensitive', 'override_homedir', + 'fallback_homedir', 'pwd_expiration_warning', 'id_provider', 'auth_provider', @@ -822,6 +823,7 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): 'override_gid', 'case_sensitive', 'override_homedir', + 'fallback_homedir', 'pwd_expiration_warning', 'id_provider', 'auth_provider', diff --git a/src/config/etc/sssd.api.conf b/src/config/etc/sssd.api.conf index a5fdbffb..ca946dab 100644 --- a/src/config/etc/sssd.api.conf +++ b/src/config/etc/sssd.api.conf @@ -32,6 +32,7 @@ filter_groups = list, str, false filter_users_in_groups = bool, None, false pwfield = str, None, false override_homedir = str, None, false +fallback_homedir = str, None, false allowed_shells = list, str, false vetoed_shells = list, str, false shell_fallback = str, None, false @@ -97,6 +98,7 @@ dns_discovery_domain = str, None, false override_gid = int, None, false case_sensitive = bool, None, false override_homedir = str, None, false +fallback_homedir = str, None, false #Entry cache timeouts entry_cache_user_timeout = int, None, false |