Search Filters Containing Unprivileged Attributes Fail To Return Any Entries
Last updated on SEPTEMBER 29, 2014
Applies to:Oracle Directory Server Enterprise Edition - Version 184.108.40.206.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?
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms