OUD - How to Specify Special Characters in Search Filters
(Doc ID 1549790.1)
Last updated on OCTOBER 14, 2019
Applies to:
Oracle Unified Directory - Version 11.1.1.5.0 and laterInformation in this document applies to any platform.
Goal
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
===================================================================
Solution
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
Goal |
Solution |