Bug 668808

Summary: CoS doesn't work with attributes that include a language tag
Product: Red Hat Enterprise Linux 7 Reporter: Deyan Stoykov <dstoykov>
Component: 389-ds-baseAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED UPSTREAM QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: andrey.ivanov, mreynolds, nkinder, rmeggins
Target Milestone: rc   
Target Release: 7.3   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-31 21:12:38 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:    
Bug Blocks: 512820, 690319    

Description Deyan Stoykov 2011-01-11 16:59:00 UTC
Description of problem:

When implementing CoS for an attribute that includes a language code (RFC2596), it's value is NOT returned during searching. When implementing CoS for the same attribute without a language code (RFC2596), the value is returned. 

How reproducible:

Always.

Steps to Reproduce:

Set up a simple CoS and a CoS template.

dn: cn=CIKO CoS,ou=CIKO,ou=People,dc=ru,dc=acad,dc=bg
cosAttribute: ou;lang-bg
cosAttribute: ou
costemplatedn: cn=CIKO Template, cn=CIKO CoS, ou=CIKO,ou=People,dc=ru,dc=acad,dc=bg
objectClass: top
objectClass: ldapsubentry
objectClass: cossuperdefinition
objectClass: cosPointerDefinition
cn: CIKO CoS

dn: cn=CIKO Template,cn=CIKO CoS,ou=CIKO,ou=People,dc=ru,dc=acad,dc=bg
cn: CIKO Template
cosPriority: 1
ou;lang-bg:: 0KbQmNCa0J4=
objectClass: top
objectClass: costemplate
objectClass: extensibleobject

Do an ldapsearch on an object, that should inherit the CoS definition.

# ldapsearch -x uid=dstoykov ou -LLL 

Actual results:

dn: uid=dstoykov,ou=CIKO,ou=People,dc=ru,dc=acad,dc=bg
ou: CIKO 

Expected results:

dn: uid=dstoykov,ou=CIKO,ou=People,dc=ru,dc=acad,dc=bg
ou: CIKO
ou;lang-bg:: 0KbQmNCa0J4=

Comment 1 Deyan Stoykov 2011-01-11 17:03:21 UTC
This was tested with centos-ds-8.1.0. Unfortunately, I can't test with an up-to-date 389-ds at this time.

Comment 2 Andrey Ivanov 2011-06-03 11:43:02 UTC
This bug is not limited to attribute language codes. Any CoS with attribute subtypes does not work (http://lists.fedoraproject.org/pipermail/389-users/2011-June/013250.html)

Comment 3 Martin Kosek 2012-01-04 13:29:03 UTC
Upstream ticket:
https://fedorahosted.org/389/ticket/69

Comment 6 Nathan Kinder 2017-08-31 21:12:38 UTC
This bug has been unresolved for a long time, and it is not a priority to fix.  This bug is being closed since there is not a pressing reason to address it, though the upstream ticket will remain open in case someone in the community is compelled to provide a patch.