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 1334619 - Attempt to fix capitalization fails with ipa: ERROR: Type or value exists:
Summary: Attempt to fix capitalization fails with ipa: ERROR: Type or value exists:
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Kaleem
URL:
Whiteboard:
Depends On:
Blocks: 1692811
TreeView+ depends on / blocked
 
Reported: 2016-05-10 07:36 UTC by Jan Pazdziora (Red Hat)
Modified: 2019-08-29 15:21 UTC (History)
9 users (show)

Fixed In Version: ipa-4.6.5-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1692811 (view as bug list)
Environment:
Last Closed: 2019-08-06 13:09:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2241 0 None None None 2019-08-06 13:09:26 UTC

Description Jan Pazdziora (Red Hat) 2016-05-10 07:36:43 UTC
Description of problem:

When admin happens to enter capitalization of user's attributes wrong, it it cumbersome to fix it.

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

ipa-server-4.2.0-15.el7.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. kinit admin
2. ipa user-add david --first=david --last=smith
3. echo Oops, the names should have caps.
4. ipa user-mod david --first=David --last=Smith

Actual results:

ipa: ERROR: Type or value exists: 

Note that it says "Type or value exists:" with colon at the end like it tried to tell us something more but nothing more is output.

Expected results:

---------------------
Modified user "david"
---------------------
  User login: david
  First name: David
  Last name: Smith
  Home directory: /home/david
  Login shell: /bin/sh
  Email address: david
  UID: 1056000007
  GID: 1056000007
  Account disabled: False
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False

Additional info:

It is possible to change the names to something else and then back to David and Smith, but it is not intuitive.

Comment 2 Petr Vobornik 2016-05-10 14:02:13 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/5879

Comment 6 Florence Blanc-Renaud 2019-03-28 14:43:04 UTC
Already backported to ipa-4-6:
https://pagure.io/freeipa/c/3cf2490ac45bd4b9028836a3daa60ccec7443682
Fixed in 4.6.5
IdM in RHEL 7.7 was rebased to 4.6.5, hence setting the BZ as MODIFIED, Fixed in 4.6.5

And ipa-4-7:
https://pagure.io/freeipa/c/9e7e9c1014c10f838b341a45436aba0840ad5b07
Fixed in 4.7.2

Comment 8 Nikhil Dehadrai 2019-06-13 08:26:30 UTC
ipa-server-4.6.5-9.el7.x86_64

Verified the bug on the basis of following observations:

[root@qe-blade-09 ~]# rpm -q ipa-server
ipa-server-4.6.5-9.el7.x86_64
[root@qe-blade-09 ~]# kinit admin
Password for admin: 
[root@qe-blade-09 ~]# ipa user-add david --first=david --last=smith
------------------
Added user "david"
------------------
  User login: david
  First name: david
  Last name: smith
  Full name: david smith
  Display name: david smith
  Initials: ds
  Home directory: /home/david
  GECOS: david smith
  Login shell: /bin/sh
  Principal name: david
  Principal alias: david
  Email address: david
  UID: 1006400001
  GID: 1006400001
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False
[root@qe-blade-09 ~]# ipa user-mod david --first=David --last=Smith
---------------------
Modified user "david"
---------------------
  User login: david
  First name: David
  Last name: Smith
  Home directory: /home/david
  Login shell: /bin/sh
  Principal name: david
  Principal alias: david
  Email address: david
  UID: 1006400001
  GID: 1006400001
  Account disabled: False
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False
[root@qe-blade-09 ~]# ipa user-mod david --first=david --last=smith
---------------------
Modified user "david"
---------------------
  User login: david
  First name: david
  Last name: smith
  Home directory: /home/david
  Login shell: /bin/sh
  Principal name: david
  Principal alias: david
  Email address: david
  UID: 1006400001
  GID: 1006400001
  Account disabled: False
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False


Since no error message is observed as mentioned in original bug, marking the status of bug to 'VERIFIED'

Comment 10 errata-xmlrpc 2019-08-06 13:09:02 UTC
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.

https://access.redhat.com/errata/RHBA-2019:2241

Comment 11 Florence Blanc-Renaud 2019-08-29 08:11:31 UTC
Test added upstream in  test_integration/test_commands.py::TestIPACommand::()::test_user_mod_change_capitalization_issue5879
Fixed upstream
master:
https://pagure.io/freeipa/c/b24359cafae6bcc37b6281b7fb431eae47e0c9cf

Comment 12 François Cami 2019-08-29 15:21:58 UTC
Fixed upstream
ipa-4-8:
https://pagure.io/freeipa/c/24b2d5893696d1c129c25c9616a42acfbeab8eba


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