My Oracle Support Banner

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

Last updated on APRIL 26, 2021

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 LDAP_PORT -D "cn=DS_ADMIN" -w <PASSWORD> -b "dc=SUFFIX_DN" "(uid=USER.1)"
dn: uid=USER.1,ou=People,dc=SUFFIX_DN
postalAddress: <POSTAL_ADDRESS>
postalCode: <POSTAL_CODE>
description: <DESCRIPTION>
uid: USER.1
userPassword: {SSHA512}<HASHED_PASSWORD>
givenName: <GIVENNAME>
objectClass: person
objectClass: inetorgperson
objectClass: organizationalperson
objectClass: top
cn: <CN>
cn;lang-ja;phonetic:value   ***<<--- Order of subtypes are not changed.
sn: <SN>
#

 

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

# ./ldapsearch -p LDAP_PORT -D "cn=DS_ADMIN" -w <PASSWORD> -b "dc=SUFFIX_DN" "(uid=USER.1)" 'cn;lang-ja;phonetic'
dn: uid=USER.1,ou=People,dc=SUFFIX_DN
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.

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
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.