RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 954128 - Cannot add case sensitive users to IPA
Summary: Cannot add case sensitive users to IPA
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.4
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Jakub Hrozek
QA Contact: Kaushik Banerjee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-21 03:02 UTC by Gustavo Varela
Modified: 2013-05-16 17:12 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-16 17:12:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.