Issue 8667 - slapcat not honoring '-g' option
Summary: slapcat not honoring '-g' option
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.44
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-05 15:11 UTC by gnoe@symas.com
Modified: 2018-12-19 17:22 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description gnoe@symas.com 2017-06-05 15:11:06 UTC
Full_Name: Gregory Noe
Version: 2.4.44
OS: Debian 8.7
URL: ftp://ftp.openldap.org/incoming/gregory-noe-170605.tar
Submission from: (NULL) (63.142.209.94)


Slapcat is not honoring the '-g' option.  The output includes entries from glued
subordinates when it shouldn't.  The attached test script
(gregory-noe-170605.tar) sets up the following DIT with inetOrgPerson entries in
each OU:

dn: dc=example,dc=com
  |- ou=NonSub00,dc=example,dc=com
  |- ou=NonSub01,dc=example,dc=com
  |- ou=NonSub02,dc=example,dc=com

glued sub: ou=Accounting,dc=example,dc=com
glued sub: ou=Administrative,dc=example,dc=com
glued sub: ou=Janitorial,dc=example,dc=com

Then the script runs 'slapcat -g -b dc=example,dc=com | grep ^dn'.  The result
contains entries from all three glued subordinates.

Tested using Symas OpenLDAP 2.4.44.5
Comment 1 Ondřej Kuzník 2018-06-25 10:27:05 UTC
On Mon, Jun 05, 2017 at 03:11:06PM +0000, gnoe@symas.com wrote:
> Slapcat is not honoring the '-g' option.  The output includes entries from glued
> subordinates when it shouldn't.  The attached test script
> (gregory-noe-170605.tar) sets up the following DIT with inetOrgPerson entries in
> each OU:
> 
> dn: dc=example,dc=com
>   |- ou=NonSub00,dc=example,dc=com
>   |- ou=NonSub01,dc=example,dc=com
>   |- ou=NonSub02,dc=example,dc=com
> 
> glued sub: ou=Accounting,dc=example,dc=com
> glued sub: ou=Administrative,dc=example,dc=com
> glued sub: ou=Janitorial,dc=example,dc=com
> 
> Then the script runs 'slapcat -g -b dc=example,dc=com | grep ^dn'.  The result
> contains entries from all three glued subordinates.

Hi Gregory,
the branch linked below has a patch to this that results in the test
script you provided produce output that's expected, let me know if it
fixes your issue:
https://github.com/mistotebe/openldap/tree/its8667

Regards,

-- 
Ondřej Kuzník
Senior Software Engineer
Symas Corporation                       http://www.symas.com
Packaged, certified, and supported LDAP solutions powered by OpenLDAP

Comment 2 Quanah Gibson-Mount 2018-07-09 16:41:53 UTC
changed notes
changed state Open to Release
moved from Incoming to Software Bugs
Comment 3 OpenLDAP project 2018-12-19 17:22:11 UTC
Fixed in master
Fixed in RE24 (2.4.47)
Comment 4 Quanah Gibson-Mount 2018-12-19 17:22:11 UTC
changed notes
changed state Release to Closed