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 1892793 - Authentication and login times are over several seconds due to unindexed ipaExternalMember [rhel-7.9.z]
Summary: Authentication and login times are over several seconds due to unindexed ipaE...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.9
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Florence Blanc-Renaud
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-29 16:22 UTC by Sandi Wallendahl
Modified: 2024-03-25 16:51 UTC (History)
7 users (show)

Fixed In Version: ipa-4.6.8-5.el7_9.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-16 13:56:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
TestSystem-Logs (3.37 MB, application/gzip)
2021-03-01 10:50 UTC, Sudhir Menon
no flags Details

Description Sandi Wallendahl 2020-10-29 16:22:06 UTC
Description of problem:
High login times are encountered for user accounts that are fetched from AD using the trust between IPA and AD realms, when the AD realm has lots (e.g. thousands) of user accounts.


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


How reproducible:
Always


Steps to Reproduce:
1. Install and configure IPA server, use default configuration
2. Install and configure IPA client, use default configuration
3. Have a Microsoft Active Directory instance with a high amount (e.g. thousands) of users
3. Create a trust between IPA and AD and set up AD users to be able to login through the trust
4. Try to login with an AD user account


Actual results:
Login over ssh takes 5-10 seconds


Expected results:
Login should not take this long, expected login time is about one second


Additional info:
The issue is caused by ipaExternalMember entry being unindexed and can be mitigated on the IPA server-side with the following:

Create a file: 90-index-ipaExternalMember.update
--------------------------------------------------------------------------------------------
dn: cn=ipaExternalMember,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
default: cn: ipaExternalMember
default: objectClass: top
default: objectClass: nsIndex
default: nsSystemIndex: false
default: nsIndexType: eq
--------------------------------------------------------------------------------------------

Apply it by running the following as root on all of IPA servers:
  # ipa-ldap-updater ./90-index-ipaExternalMember.update

Since the version 4.6.5 of IPA there's an auto-indexing feature. So after this schema-update is put in place, IPA automatically creates a task for itself to index ipaExternalMember entries.

/var/log/ipaupgrade.log can be followed to verify the task has started:

  <timestamp> DEBUG Creating task cn=indextask_<taskid>,cn=index,cn=tasks,cn=config to index attributes: ipaExternalMember


This issue has been fixed in upstream with: https://github.com/freeipa/freeipa/commit/9f0ec27e9f13ed40b8e58162d99bf9b0e8b4afd5

Comment 4 François Cami 2021-01-22 19:21:21 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/8677

Comment 5 Florence Blanc-Renaud 2021-01-26 09:15:39 UTC
Fixed upstream
ipa-4-6:
https://pagure.io/freeipa/c/2c802ab10479342e6d0e7e6d1589f0d31a608c1b

Comment 9 Sudhir Menon 2021-03-01 10:50:07 UTC
Created attachment 1759933 [details]
TestSystem-Logs

Comment 13 errata-xmlrpc 2021-03-16 13:56:37 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 (Moderate: ipa security and bug fix update), 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/RHSA-2021:0860


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