I would like to perform a complex filter within my LDAP policy, which uses the ‘AND’ construct. The filter I want to perform is this:
(&(objectClass=person)(objectClass=user))
But when I try to use this in my policy, I get this error:
Error creating object
Bundle is invalid. The entity name must immediately follow the ‘&’ in the entity reference.
I have tried the ‘&’ as-is, and escaped (& amp;), but neither works:
<SearchQuery>(&(objectClass=person)(objectClass=user))</SearchQuery>
<SearchQuery>(& amp;(objectClass=person)(objectClass=user))</SearchQuery>
(Note: I don’t really have a space between the & and amp; in my code, but I had to put that there to make it visible on this page.)
Suggestions?