Bug 1489694
Summary: | crash in send_ldap_result [rhel-7.4.z] | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Oneata Mircea Teodor <toneata> |
Component: | 389-ds-base | Assignee: | mreynolds |
Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> |
Severity: | urgent | Docs Contact: | Marc Muehlfeld <mmuehlfe> |
Priority: | urgent | ||
Version: | 7.4 | CC: | gparente, mreynolds, msauton, nkinder, rmeggins, tbordaz |
Target Milestone: | rc | Keywords: | ZStream |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 389-ds-base-1.3.6.1-20.el7_4 | Doc Type: | Bug Fix |
Doc Text: |
When a Directory Server plug-in runs an internal search, it passes the base search parameter to the core server. Previously, Directory Server did not check if this parameter was valid. As a consequence, if the base search was set to NULL, the core server terminated unexpectedly. The code has been updated. As a result, Directory Server no longer terminates unexpectedly if a plug-in uses an invalid base search parameter.
|
Story Points: | --- |
Clone Of: | 1461437 | Environment: | |
Last Closed: | 2017-10-19 15:11:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1461437 | ||
Bug Blocks: |
Description
Oneata Mircea Teodor
2017-09-08 07:22:14 UTC
Build tested: 389-ds-base-1.3.6.1-20.el7_4.x86_64 slapi-nis-0.56.0-4.el7.x86_64 [1] To verify I configured slapi-nis plugin: # ldapadd -D "cn=Directory Manager" -w Secret123 dn: cn=NIS Server,cn=plugins,cn=config objectClass: top objectClass: nsSlapdPlugin objectClass: extensibleObject cn: NIS Server nsslapd-pluginPath: /usr/lib64/dirsrv/plugins/nisserver-plugin.so nsslapd-pluginInitfunc: nis_plugin_init nsslapd-pluginType: postoperation nsslapd-pluginEnabled: on nsslapd-pluginDescription: NIS Server Plugin nsslapd-pluginVendor: redhat.com nsslapd-pluginVersion: 0.56 (betxn support available and enabled by default) nsslapd-pluginId: nis-plugin nis-tcp-wrappers-name: ypserv nsslapd-pluginarg0: 541 dn: nis-domain=example.com+nis-map=groups,cn=NIS Server,cn=plugins,cn=config objectClass: extensibleObject objectClass: top nis-domain: example.com nis-map: groups nis-base: ou=Groups, dc=example, dc=com nis-filter: (objectClass=groupOfNames) nis-key-format: %{cn} nis-value-format: %merge(" ","%deref_f(\"member\",\"(objectclass=ipanisNetgroup)\",\"cn\")","(%link(\"%ifeq(\\\"hostCategory\\\",\\\"all\\\",\\\"\\\",\\\"%collect(\\\\\\\"%{externalHost}\\\\\\\",\\\\\\\"%deref(\\\\\\\\\\\\\\\"memberHost\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"fqdn\\\\\\\\\\\\\\\")\\\\\\\",\\\\\\\"%deref_r(\\\\\\\\\\\\\\\"member\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"fqdn\\\\\\\\\\\\\\\")\\\\\\\",\\\\\\\"%deref_r(\\\\\\\\\\\\\\\"memberHost\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"member\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"fqdn\\\\\\\\\\\\\\\")\\\\\\\")\\\")\",\"%ifeq(\\\"hostCategory\\\",\\\"all\\\",\\\"\\\",\\\"-\\\")\",\",\",\"%ifeq(\\\"userCategory\\\",\\\"all\\\",\\\"\\\",\\\"%collect(\\\\\\\"%deref(\\\\\\\\\\\\\\\"memberUser\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"uid\\\\\\\\\\\\\\\")\\\\\\\",\\\\\\\"%deref_r(\\\\\\\\\\\\\\\"member\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"uid\\\\\\\\\\\\\\\")\\\\\\\",\\\\\\\"%deref_r(\\\\\\\\\\\\\\\"memberUser\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"member\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"uid\\\\\\\\\\\\\\\")\\\\\\\")\\\")\",\"%ifeq(\\\"userCategory\\\",\\\"all\\\",\\\"\\\",\\\"-\\\")\"),%{nisDomainName:-})") adding new entry "cn=NIS Server,cn=plugins,cn=config" adding new entry "nis-domain=example.com+nis-map=groups,cn=NIS Server,cn=plugins,cn=config" [2] Added test entries: # ldapadd -D "cn=Directory Manager" -w Secret123 dn: cn=tuser,ou=People,dc=example,dc=com objectClass: inetOrgPerson objectClass: posixAccount objectClass: organizationalPerson objectClass: top objectClass: person cn: tuser sn: tuser uid: tuser gidNumber: 2000 homeDirectory: /home/tuser uidNumber: 2000 dn: cn=tgroup,ou=Groups,dc=example,dc=com objectClass: groupofnames objectClass: top cn: tgroup member: member: cn=tuser,ou=People,dc=example,dc=com adding new entry "cn=tuser,ou=People,dc=example,dc=com" adding new entry "cn=tgroup,ou=Groups,dc=example,dc=com" [3] Removed empty member attribute without server crashing: # ldapmodify -D "cn=Directory Manager" -w Secret123 dn: cn=tgroup,ou=Groups,dc=example,dc=com changetype: modify replace: member member: cn=tuser,ou=People,dc=example,dc=com modifying entry "cn=tgroup,ou=Groups,dc=example,dc=com" Marking as VERIFIED. 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-2017:2932 |