My Oracle Support Banner

OUD - Order of Attribute Subtypes Changed in Search Response (Doc ID 2026473.1)

Last updated on FEBRUARY 25, 2019

Applies to:

Oracle Unified Directory - Version 11.1.2.2.0 and later
Information in this document applies to any platform.

Symptoms

When retrieving attributes in an ldapsearch, the order of attribute subtypes changes based on how the attributes are requested.

For example, when all attributes are requested (no specific attributes are requested at the end of the ldapsearch) the attribute subtypes are displayed in one way but when specifying certain attributes to be returned at the end of an ldapsearch, the attribute subtype order displayed changes.


[Test Case]
Product:Oracle Unified Directory 11.1.2.2
OS: Linux 64-bit


STEPS
-----
1 Add an attribute with subtypes to an user entry:

 


2. Search without specifying attributes:

# ./ldapsearch -p 4389 -D "cn=directory manager" -w <PASSWORD> -b "dc=example,dc=com" "(uid=user.1)"
dn: uid=user.1,ou=People,dc=example,dc=com
postalAddress: <POSTAL_ADDRESS>
postalCode: <POSTAL_CODE>
description: <DESCRIPTION>
uid: user.1
userPassword: {SSHA512}<HASHED_PASSWORD>
employeeNumber: 377
initials: AOA
givenName: <GIVENNAME>
objectClass: person
objectClass: inetorgperson
objectClass: organizationalperson
objectClass: top
pager: <PAGER>
mobile: <MOBILE>
cn: <CN>
cn;lang-ja;phonetic:value   ***<<--- Order of subtypes are not changed.
sn: <SN>
telephoneNumber: <TELEPHONE_NUMBER>
street: <STREET>
homePhone: <HOME_PHONE>
mail: <username@domain.com>
l: <L>
st: <ST>
#

 

3. Search specifying the attribute with subtypes as a returned attributes:

# ./ldapsearch -p 4389 -D "cn=directory manager" -w <PASSWORD> -b "dc=example,dc=com" "(uid=user.1)" 'cn;lang-ja;phonetic'
dn: uid=user.1,ou=People,dc=example,dc=com
cn;phonetic;lang-ja:value    ***<<--- Here is the issue. Order of subtypes are changed.


In ODSEE, this issue did not occur.
If there is a client application that depends on the order of the attribute subtypes displayed in a search result, the application will not work.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.