Description of problem:
When SSSD new feature "override_default_whitespace" is set, it replaces white space from usernames/groupnames with the configured character, lets say _(underscore). So upon lookup user "Harry Potter" becomes "Harry_Potter". In this case, user login fails when auth is conducted without spaces, ie username is "Harry_Potter, however auth works fine with space, ie when username is "Harry Potter".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create an ldap user name with space, say "Harry Potter".
2. Set override_default_whitespace = _ in sssd.conf
3. Login with and without space in user name, you will see that auth fails when username is "Harry_Potter".
Auth should succeed.
With SSSD Version sssd-1.11.6-24.el6.x86_64, the automation runs FAIL for override_default_whitespace test suite. See the beaker output below:-
:: [ LOG ] :: override_default_whitespace_2: Set override_default_whitespace = _ in nss section and run user lookup
:: [ BEGIN ] :: Lookup should return name without space. :: actually running 'getent passwd -s sss "Test User"'
Test User:*:10011:10011:Example TestUser:/home/Testuser:/bin/bash
:: [ PASS ] :: Lookup should return name without space. (Expected 0, got 0)
:: [ BEGIN ] :: Lookup should return name without space. :: actually running 'getent passwd -s sss Test_User'
:: [ FAIL ] :: Lookup should return name without space. (Expected 0, got 2)
As a result of this ticket, we had a discussion in upstream and we decidet to change name of this option.
Currently, you should use option override_space.
-> SPECIAL SECTIONS
-> The [sssd] section
-> override_space (string)
Sorry for troubles. We should have mentioned it in this BZ earlier.
Verified the bug on SSSD Version ; sssd-1.11.6-24.el6.x86_64
I made changes to automation code as per Comment #6 and the beaker run looks great now. See the output below:
================ final pass/fail report =================
Test Date: Mon Aug 25 13:34:09 EDT 2014
Total : 
Abort : 
[ PASS ] Setup
[ PASS ] override_space_1 Default behaviour when override_space is not set in sssd.conf
[ PASS ] override_space_2 Set override_space = _ in sssd section and run user lookup
[ PASS ] override_space_3 Set override_space = _ and run user auth
[ PASS ] override_space_4 Set override_space = _ and run user id and groups
[ PASS ] override_space_5 Behaviour while running chown and chgrp commands
[ PASS ] Cleanup
[ PASS ] unknown
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.