Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Cause: An LDAP object migrated via migrate-ds command may contain multi-valued RDN attribute. However, migrate-ds process just picks the first value of the RDN attribute and does not respect the value that was present in the DN in the migrated LDAP object
Consequence: Migrated LDAP object may contain invalid RDN. If there is another LDAP object with the same RDN value, migrate-ds process reports error and fails to migrate these objects
Fix: Do not pick the first value of multi-valued RDN but use the value that is used in original LDAP object DN
Result: LDAP objects with multi-valued RDN attribute are migrated without error
Created attachment 525238[details]
This is a dump of the entire group ou to migrate
Description of problem:
Starting with a configured DS server containing a group ou of ou=Groups,dc=bos,dc=redhat,dc=com, When you add a new group to that ou, I expect that the group will get migrated along with the other groups in that ou.
migrate-ds seems to only migrate some of the groups.
Version-Release number of selected component (if applicable):
ipa-server-2.0.0-23.el6.x86_64
How reproducible:
always
Steps to Reproduce:
1. create ds setup containing the group ou of ou=Groups,dc=bos,dc=redhat,dc=com
2. add the user specified in the attached user-to-add.ldif
3. run "ipa migrate-ds" to migrate from that server.
4. search for that user in the new IPA
Actual results:
[root@ipaqa64vmb ds-migration]# ipa group-find group1000
----------------
0 groups matched
----------------
----------------------------
Number of entries returned 0
----------------------------
Expected results:
Additional info:
Error logs look good during the migration, my speculation is that the ldap query isn't picking up all of the groups to migrate.
What groups migrated? Do you have the output of the migration command (or can you duplicate it)? It should list the groups that aren't migrated and a reason.
The groups that are migrated are: accounting managers, hr managers, pd managers, qa managers
The output from the migrate command is as follows:
-----------
migrate-ds:
-----------
Migrated:
user: user2000, user1000, user2009
group: accounting managers, hr managers, qa managers, pd managers
Failed user:
Failed group:
----------
Passwords have been migrated in pre-hashed format.
IPA is unable to generate Kerberos keys unless provided
with clear text passwords. All migrated users need to
login at https://your.domain/ipa/migration/ before they
can use their Kerberos accounts.
The problem here is that migrated groups contained multivalued CN used in group's RDN. Migrate process just took the first RDN attribute value and since it was already migrated ("pd managers") it didn't add it.
My plan is to take the attribute value used in the DN and not just the first one.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Cause: An LDAP object migrated via migrate-ds command may contain multi-valued RDN attribute. However, migrate-ds process just picks the first value of the RDN attribute and does not respect the value that was present in the DN in the migrated LDAP object
Consequence: Migrated LDAP object may contain invalid RDN. If there is another LDAP object with the same RDN value, migrate-ds process reports error and fails to migrate these objects
Fix: Do not pick the first value of multi-valued RDN but use the value that is used in original LDAP object DN
Result: LDAP objects with multi-valued RDN attribute are migrated without error
Verified against ipa-server-2.1.3-8.el6.x86_64
Used the same test that I used when I created this bug report.
Output of the test containing the groups that I am expecting.
:: [ PASS ] :: enabling migration
-----------
migrate-ds:
-----------
Migrated:
group: group1000, group2000
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.
http://rhn.redhat.com/errata/RHSA-2011-1533.html
Created attachment 525238 [details] This is a dump of the entire group ou to migrate Description of problem: Starting with a configured DS server containing a group ou of ou=Groups,dc=bos,dc=redhat,dc=com, When you add a new group to that ou, I expect that the group will get migrated along with the other groups in that ou. migrate-ds seems to only migrate some of the groups. Version-Release number of selected component (if applicable): ipa-server-2.0.0-23.el6.x86_64 How reproducible: always Steps to Reproduce: 1. create ds setup containing the group ou of ou=Groups,dc=bos,dc=redhat,dc=com 2. add the user specified in the attached user-to-add.ldif 3. run "ipa migrate-ds" to migrate from that server. 4. search for that user in the new IPA Actual results: [root@ipaqa64vmb ds-migration]# ipa group-find group1000 ---------------- 0 groups matched ---------------- ---------------------------- Number of entries returned 0 ---------------------------- Expected results: Additional info: Error logs look good during the migration, my speculation is that the ldap query isn't picking up all of the groups to migrate.