Search Filters Containing Unprivileged Attributes Fail To Return Any Entries
(Doc ID 1917825.1)
Last updated on SEPTEMBER 29, 2014
Applies to:Oracle Directory Server Enterprise Edition - Version 220.127.116.11.1 and later
Information in this document applies to any platform.
Customer has constructed a search filter that includes an attribute that the binding DN does not have access privileges to. When this is the case, no entries get returned even if the search filter components are all joined by the OR operator such that some of the search components do match entries within the database.
Here is a simple example to illustrate the behavior...
The following search will return an entry since the binding DN of anonymous has read privileges to the uid and cn attributes...
# ./ldapsearch -b "dc=example,dc=com" "(|(uid=ckent)(cn=superman))"
cn: Clark Kent
However, if the filter uses an attribute that the binding DN does not have privileges to, then no result is returned even if one of the filter components has matching entries. In the example below, anonymous does not have any privileges to the attribute alterEgo...
# ./ldapsearch -b "dc=example,dc=com" "(|(uid=ckent)(alterEgo=superman))"
Shouldn't the second search have returned the same entry since one of the search components in the OR search filter (uid=ckent) does match the entry?
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