OUD - Order of Attribute Subtypes Changed in Search Response

(Doc ID 2026473.1)

Last updated on JUNE 28, 2017

Applies to:

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


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
OS: Linux 64-bit

1 Add an attribute with subtypes to an user entry:


2. Search without specifying attributes:

# ./ldapsearch -p 4389 -D "cn=directory manager" -w secret12 -b "dc=example,dc=com" "(uid=user.1)"
dn: uid=user.1,ou=People,dc=example,dc=com
postalAddress: Andrei Ashraf$00069 Ridge Street$Huntington, AK  19635
postalCode: 19635
description: This is the description for Andrei Ashraf.
uid: user.1
userPassword: {SSHA512}Sq+ZDXQ5mFYEDp9cwoP33fhQNYfVKCbI+GB4eH1qJiXz+ECExLfF0w/+Q
employeeNumber: 377
initials: AOA
givenName: Andrei
objectClass: person
objectClass: inetorgperson
objectClass: organizationalperson
objectClass: top
pager: +1 046 201 0089
mobile: +1 288 607 6316
cn: Andrei Ashraf
cn;lang-ja;phonetic:value   ***<<--- Order of subtypes are not changed.
sn: Ashraf
telephoneNumber: +1 751 690 8670
street: 00069 Ridge Street
homePhone: +1 133 020 3566
mail: user.1@maildomain.net
l: Huntington
st: AK


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

# ./ldapsearch -p 4389 -D "cn=directory manager" -w secret12 -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.




Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms