My Oracle Support Banner

OUD - How to Specify Special Characters in Search Filters (Doc ID 1549790.1)

Last updated on SEPTEMBER 14, 2021

Applies to:

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


Let's suppose the following:

1 - There is an end-user application which lets users create their profile in an OUD backend.

2 - This application doesn't prevent the use of special characters.

3 - The following Common Name (CN) gets created:
cn: <Special\>CharacterExample>

4 - The LDAP Administrator wants to delete the entry with the CN above.

5 - When attempting to run a search with the asterisk character,  there were too many entries returned for the filter "cn=<Special*CharacterExample>".

6 - Using the special characters in the search filter triggers an error message:
$ ./ldapsearch -h <HOST> -p <PORT> -b "dc=<SUFFIX_DN>" "cn=<Special\>CharacterExample>" cn givenName displayName
The provided search filter "cn=<Special\>CharacterExample>" had an invalid escaped byte value at position 11.  A backslash in a value must be followed by two
hexadecimal characters that define the byte that has been encoded


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

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