summaryrefslogtreecommitdiffstats
path: root/src/man
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-08-25 10:36:46 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-09-01 16:48:09 +0200
commit92d19f76449817dfb125da9510d478a30eed37bc (patch)
treee247bab5d63f5452c1f4877d0807899fa1556bb5 /src/man
parent0253df73a348344fc0ae4a9302374feefa6c9452 (diff)
downloadsssd-92d19f76449817dfb125da9510d478a30eed37bc.tar.gz
sssd-92d19f76449817dfb125da9510d478a30eed37bc.tar.xz
sssd-92d19f76449817dfb125da9510d478a30eed37bc.zip
Replace space: add some checks
This patch adds some additional checks if the option for replacing spaces in user and group names is used. When replacing space with the replacement character it is checked if the name already contains the replacement character. If it does the unmodified name is returned because in this case a revers operation would not be possible. For the reverse operation is it checked if the input contains both a space and the replacement character. If this is true the unmodified name is returned as well, because we have to assume that it is the original name because otherwise it wouldn't contain both characters. Additionally a shortcut if the replacement characters is a space and tests for the new checks are added. The man page is updated accordingly. Related to https://fedorahosted.org/sssd/ticket/1854 and https://fedorahosted.org/sssd/ticket/2397 . Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/man')
-rw-r--r--src/man/sssd.conf.5.xml8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/man/sssd.conf.5.xml b/src/man/sssd.conf.5.xml
index 81a46eda9..ad01f37f1 100644
--- a/src/man/sssd.conf.5.xml
+++ b/src/man/sssd.conf.5.xml
@@ -334,9 +334,11 @@
</para>
<para>
Please note it is a configuration error to use
- a replacement character that might be used by
- another LDAP object. In that case, result of
- a lookup is undefined.
+ a replacement character that might be used in
+ user or group names. If a name contains the
+ replacement character SSSD tries to return the
+ unmodified name but in general the result of a
+ lookup is undefined.
</para>
<para>
Default: not set (spaces will not be replaced)