Bug 954128

Summary: Cannot add case sensitive users to IPA
Product: Red Hat Enterprise Linux 6 Reporter: Gustavo Varela <gustavo.varela>
Component: sssdAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED NOTABUG QA Contact: Kaushik Banerjee <kbanerje>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4CC: arubin, dpal, grajaiya, jgalipea, lslebodn, mkosek, okos, pbrezina, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-16 17:12:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gustavo Varela 2013-04-21 03:02:55 UTC
Description of problem:
Add a user to ipa with a uppercase char. 
The user name will be transformed to lowercase.

Version-Release number of selected component (if applicable):3.0.0


How reproducible:
# ipa user-add Test --first=TesTy --last=Tester
-----------------
Added user "test"
-----------------
  User login: test
  First name: TesTy
  Last name: Tester
  Full name: TesTy Tester
  Display name: TesTy Tester
  Initials: TT
  Home directory: /home/test
  GECOS field: TesTy Tester
  Login shell: /bin/sh
  Kerberos principal: test
  Email address: test
  UID: 631800014
  GID: 631800014
  Password: False
  Kerberos keys available: False
# getent passwd Test
#

Steps to Reproduce:
1.Create a user with uppercase chars: ipa user-add Test --first=TesTy --last=Tester
2.Look for the user via sssd: getnet passwd Test
3.
  
Actual results:
Case insensitive user name

Expected results:
Case sensitive user name
POSIX user names should be case sensitive.

Additional info:

Comment 1 Rob Crittenden 2013-04-21 19:22:19 UTC
Re-assigning to sssd.

What is the setting of case_sensitive. See https://bugzilla.redhat.com/show_bug.cgi?id=735827

What version of sssd are you running?

Note that IPA always normalizes login names to lower-case.

Comment 2 Dmitri Pal 2013-04-21 19:41:56 UTC
Gustavo,

IPA does not support case sensitive users by design. The main reason is that ldap is historically case insensitive for user accounts. It is a mismatch between POSIX and LDAP standards. MSFT corrected it by doing it on the server because they control both server and the client. We put a lot of thought into this and you can dig IPA and SSSD mail archives for details however the solution we came up which seems most flexible is to enforce low case in IPA and allow SSSD to be configured to treat the source of the identity information case sensitive or case insensitive.

There are no plans to address the problem of the case sensitivity in any other way.

Comment 3 Gustavo Varela 2013-04-21 20:01:58 UTC
1 - I cannot access bug 735827
2 - sssd version is 1.9.2
3 - I'm trying to migrate users from NIS, and users are case sensitive on NIS. I think this a problem on IPA that is lowering the logins, and should not as POSIX systems are case sensitive and IPA is meant to work with them.

Comment 4 Jakub Hrozek 2013-04-22 10:05:44 UTC
As Dmitri said, I don't think this is a bug in the SSSD.

If all you care about is being able to "getent passwd CasedUser", then setting the case_sensitive flag to False shold help you -- with the obvious downside that you can't have users that only differ in case.

You should also remove the sssd cache (rm -f /var/lib/sss/db/cache_*) after toggling the case_sensitive option. I don't think we support changing this option on the fly.

Please let me know if the case_sensitive flag works for you. I'm inclined to close as NOTABUG.

Comment 5 Jakub Hrozek 2013-04-22 10:12:59 UTC
(In reply to comment #3)
> 1 - I cannot access bug 735827

I'm sorry, that bug had been marked as private because it contained sensitive customer information. Here is the public upstream clone:
https://fedorahosted.org/sssd/ticket/890

Comment 6 Dmitri Pal 2013-04-22 13:20:50 UTC
Gustavo,

This is not an IPA problem. This is a general limitation of the mismatch of the LDAP and POSIX.

The decision to low case everything makes behavior predictable and consistent.
If you have NIS accounts that differ only in case you would have to sort it out regardless whether you use IPA or any other LDAP server, this is the main point - it is not an IPA problem. In our case we just make sure that everything works for LDAP and Kerberos and low case is a good consistent choice.

Comment 7 Ann Marie Rubin 2013-05-13 20:31:19 UTC
there already is a doc bug open for this:
https://bugzilla.redhat.com/show_bug.cgi?id=905616

Comment 8 Jakub Hrozek 2013-05-16 17:12:53 UTC
(In reply to comment #7)
> there already is a doc bug open for this:
> https://bugzilla.redhat.com/show_bug.cgi?id=905616

Thank you for checking, Ann-Marie! I think we can close this bug, then.