#49721 Tagged attributes are returned multiple times
Closed: wontfix by mreynolds. Opened by cheimes.

Issue Description

389-DS returns tagged attributes two times if the query's attribute list contains * and the attribute name. Example:

ldapsearch -vv -H ldap://$(hostname) -D "cn=Directory Manager" -w password -b krbprincipalname=aservice/master.ipa.example@IPA.EXAMPLE,cn=services,cn=accounts,dc=ipa,dc=example \* ipaallowedtoperform

returns

# extended LDIF
#
# LDAPv3
# base <krbprincipalname=aservice/master.ipa.example@IPA.EXAMPLE,cn=services,cn=accounts,dc=ipa,dc=example> with scope subtree
# filter: (objectclass=*)
# requesting: * ipaallowedtoperform 
#
# aservice/master.ipa.example@IPA.EXAMPLE, services, accounts, dom-023.abc.idm.lab.eng.brq.redhat.com
dn: krbprincipalname=aservice/master.ipa.example@IPA.EXAMPLE,cn=services,cn=accounts,dc=ipa,dc=example
ipaAllowedToPerform;write_keys: uid=tuser,cn=users,cn=accounts,dc=ipa,dc=example
ipaAllowedToPerform;write_keys: uid=admin,cn=users,cn=accounts,dc=ipa,dc=example
krbCanonicalName: aservice/master.ipa.example@IPA.EXAMPLE
objectClass: krbprincipal
objectClass: krbprincipalaux
objectClass: krbticketpolicyaux
objectClass: ipaobject
objectClass: ipaservice
objectClass: pkiuser
objectClass: ipakrbprincipal
objectClass: top
objectClass: ipaallowedoperations
managedBy: fqdn=master.ipa.example,cn=computers,cn=accounts,dc=ipa,dc=example
ipaKrbPrincipalAlias: aservice/master.ipa.example@IPA.EXAMPLE
krbPrincipalName: aservice/master.ipa.example@IPA.EXAMPLE
ipaUniqueID: 9a24241e-5f65-11e8-9368-001a4a2314fd
krbPwdPolicyReference: cn=Default Service Password Policy,cn=services,cn=accounts,dc=ipa,dc=example
ipaAllowedToPerform;write_keys: uid=tuser,cn=users,cn=accounts,dc=ipa,dc=example
ipaAllowedToPerform;write_keys: uid=admin,cn=users,cn=accounts,dc=ipa,dc=example

The tagged ipaAllowedToPerform;write_keys entries are returned two times. The first time right in the beginning as part of the * attribute, a second time at the end of the result.

Package Version and Platform

Fedora 28, 389-ds-base-1.4.0.9-2.fc28.x86_64

Steps to reproduce

See https://pagure.io/freeipa/issue/7324


Metadata Update from @mreynolds:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Custom field type adjusted to None
- Custom field version adjusted to None
- Issue set to the milestone: 1.4.0

Metadata Update from @mreynolds:
- Issue set to the milestone: 1.3.8 (was: 1.4.0)

Metadata Update from @mreynolds:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2780

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: fixed)

Metadata