summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-07-23 17:23:00 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-07-28 10:11:51 +0200
commit21bc143c2855638242e9dfe01ea66198b5883b8a (patch)
tree653fa3b89f5c512887bfbcd3478c24f30f400809 /src/config
parent022c6b90bb37851c0e8704c0e5388ebc113c6470 (diff)
downloadsssd-21bc143c2855638242e9dfe01ea66198b5883b8a.tar.gz
sssd-21bc143c2855638242e9dfe01ea66198b5883b8a.tar.xz
sssd-21bc143c2855638242e9dfe01ea66198b5883b8a.zip
NSS: Replace spaces with specified string in names.
This patch add possibility to replace whitespace in user and group names with a specified string. With string "-", sssd will return the same result as winbind enabled option "winbind normalize names" Resolves: https://fedorahosted.org/sssd/ticket/1854 Reviewed-by: Pavel Reichl <preichl@redhat.com> Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/SSSDConfig/__init__.py.in1
-rw-r--r--src/config/etc/sssd.api.conf1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/config/SSSDConfig/__init__.py.in b/src/config/SSSDConfig/__init__.py.in
index 05672d651..91f94b524 100644
--- a/src/config/SSSDConfig/__init__.py.in
+++ b/src/config/SSSDConfig/__init__.py.in
@@ -73,6 +73,7 @@ option_strings = {
'shell_fallback' : _('If a shell stored in central directory is allowed but not available, use this fallback'),
'default_shell': _('Shell to use if the provider does not list one'),
'memcache_timeout': _('How long will be in-memory cache records valid'),
+ 'override_default_whitespace': _('All white spaces in group or user names will be replaced with this string'),
# [pam]
'offline_credentials_expiration' : _('How long to allow cached logins between online logins (days)'),
diff --git a/src/config/etc/sssd.api.conf b/src/config/etc/sssd.api.conf
index 5e5a9284e..1db9e2207 100644
--- a/src/config/etc/sssd.api.conf
+++ b/src/config/etc/sssd.api.conf
@@ -44,6 +44,7 @@ shell_fallback = str, None, false
default_shell = str, None, false
get_domains_timeout = int, None, false
memcache_timeout = int, None, false
+override_default_whitespace = str, None, false
[pam]
# Authentication service