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 918705 - [RFE] allow turning off vattr lookup in search entry return
Summary: [RFE] allow turning off vattr lookup in search entry return
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: Sankar Ramalingam
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-06 18:15 UTC by Nathan Kinder
Modified: 2020-09-13 20:19 UTC (History)
5 users (show)

Fixed In Version: 389-ds-base-1.3.1.2-1.el7
Doc Type: Enhancement
Doc Text:
Cause: Improving search performance. Consequence: Poor search performance. Change: All searches are checked for the presence of virtual attributes. This impacts performance. If virtual attributer are not being used, then this virutal attribute lookup can be disabled Result: If virtual attribute lookups are disabled, search performance improves.
Clone Of:
Environment:
Last Closed: 2014-06-13 12:20:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 511 0 None None None 2020-09-13 20:19:40 UTC

Description Nathan Kinder 2013-03-06 18:15:26 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/511

systemtap and callgrind analysis show a lot of time spent in vattr_map_namespace_sp_getlist and slapi_vattr_namespace_values_get_sp - every time a search entry is compared against a search filter, and then again when the entry is sent to the client, to see if there are any virtual attributes to add - if a user does not want or care about virtual attributes at all, there should be a way to turn off this vattr checking using a config attribute

Comment 1 Rich Megginson 2013-10-01 23:24:19 UTC
moving all ON_QA bugs to MODIFIED in order to add them to the errata (can't add bugs in the ON_QA state to an errata).  When the errata is created, the bugs should be automatically moved back to ON_QA.

Comment 5 Jenny Severance 2014-02-20 17:04:39 UTC
There is a way to turn off vattr checking now ... please add steps to do this and indicate how to verify.

Comment 6 mreynolds 2014-02-20 17:12:21 UTC
(In reply to Jenny Galipeau from comment #5)
> There is a way to turn off vattr checking now ... please add steps to do
> this and indicate how to verify.

nsslapd-ignore-virtual-attrs: on|off

Setting:

ldapmodify -D "cn=directory manager" -w password
dn: cn=config
changetype: modify
replace: nsslapd-ignore-virtual-attrs
nsslapd-ignore-virtual-attrs: on


Checking:

ldapsearch -D "cn=directory manager" -w password -b cn=config -s base objectlcass=top dn nsslapd-ignore-virtual-attrs

If the attribute is not present, then the default is off.  Otherwise the value is as indicated in the attribute value.

Comment 7 Amita Sharma 2014-02-21 09:03:08 UTC
[root@dhcp201-149 ~]# ldapsearch -x -h localhost -D "cn=Directory Manager" -w Secret123 -p 389 -b cn=config | grep -i "nsslapd-ignore-virtual-attrs"
nsslapd-ignore-virtual-attrs: off

[root@dhcp201-149 ~]# ldapmodify -x -h localhost -D "cn=Directory Manager" -w Secret123 -p 389 << EOF
dn: cn=config
changetype: modify
replace: nsslapd-ignore-virtual-attrs
nsslapd-ignore-virtual-attrs: on 
EOF

modifying entry "cn=config"

[root@dhcp201-149 ~]# ldapsearch -x -h localhost -D "cn=Directory Manager" -w Secret123 -p 389 -b cn=config | grep -i "nsslapd-ignore-virtual-attrs"
nsslapd-ignore-virtual-attrs: on

Marking bug as VERIFIED, Sanity Only.

Comment 8 Ludek Smid 2014-06-13 12:20:10 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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