#7074 IPA shouldn't allow objectclass if not all in lower case
Closed: fixed Opened by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1463186

Description of problem:
Customer said that they migrated users from the older version of IPA that had
"objectclass=posixAccount" rather than "objectclass=posixaccount, which is
problematic when comes to using "ipa idoverrideuser-add"
Version-Release number of selected component (if applicable):
ipa-server-4.4.0-14.el7_3.7.x86_64
389-ds-base-1.3.5.10-20.el7_3.x86_64
How reproducible:
Steps to Reproduce:
1. Create two users in IPA using a ldif file, one with
""objectclass=posixAccount" and the other with "objectclass=posixAccount"
2. Load the users to the IPA
3. Then run:
ipa idview-add testview
ipa idoverrideuser-add testview <username> --homeDirectory=/var/tmp
Actual results:
user with "objectClass: posixAccount"
# ipa idoverrideuser-add testview cgoodwin --homedir=/home/cgoodwin
ipa: ERROR: invalid 'IPA object': system IPA objects (e.g system groups, user
private groups) cannot be overridden
user with "objectClass: posixaccount
# ipa idoverrideuser-add testview bgoodwin --homedir=/home/mygoodwin
---------------------------------
Added User ID override "bgoodwin"
---------------------------------
  Anchor to override: bgoodwin
  Home directory: /home/mygoodwin
Expected results:
Additional info:
The workaround is to replace "objectclass=posixAccount" with
"objectclass=posixaccount

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1463186

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1463186

https://github.com/freeipa/freeipa/pull/877

Metadata Update from @fbarreto:
- Issue assigned to fbarreto

Metadata Update from @fbarreto:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/950

PR https://github.com/freeipa/freeipa/pull/950

master:

  • 286bbb2ab77559f63d10c8c5c4923520cb7d3d0f Changing idoverrideuser-* to treat objectClass case insensitively

ipa-4-6:

  • a5e8f52801f5f6c59ac9bfcf2a14b002584c560a Changing idoverrideuser-* to treat objectClass case insensitively

Still needs manual backport for ipa-4-5

Backported to ipa-4-5 in https://github.com/freeipa/freeipa/pull/1076

ipa-4-5:

  • 61e8b4936f1fd73f8d4c359348cf83f37da35fef Changing idoverrideuser-* to treat objectClass case insensitively

Metadata Update from @stlaz:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata