Hi everyone,
We are using Exchange 2003, now with Recipient Policies i'm trying to
get both groups and users with the same attribute and am trying the
following:
(&(objectCategory=group)(objectCategory=user)(extensionAttribute1=ozpacific)(extensionAttribute1=ozpacific))
But it returns nothing, if I try to query JUST users, it returns
results like it should and the same with groups, but as soon as I try
to put them both in 1 query, like above, it returns nothing... what am
doing wrong there?
Thanks in advance,
Matthew
Al Mulnick - 21 Dec 2004 01:57 GMT
Two things come to mind:
1) the ldap query and recipient policies may not work as expected. Just an
expectation I'm setting, your mileage may vary (or in this case, kilometers
may vary, right?)
2) Your query doesn't do what you want. Allow me to translate: return all
objects that are objectcategory=group AND objectcategory=user with extension
attribute1=....etc. The issue is with the AND statement. You want an OR
vs. an AND.
Something like
(&(|(objectCategory=group)(&(objectclass=person))objectcategory=user)))
(extensionAttribute1=ozpacific))
I could be off on the parens, but I'll chalk that up to the PWI.
Cheers,
ajm
> Hi everyone,
>
[quoted text clipped - 11 lines]
> Thanks in advance,
> Matthew