On 23/1/03 7:47 pm, Paul Harwood <ha...@ny...> wrote:
> I am writing a script using the following LDAP search filter:
[...]
> filter => "(objectclass=msexchExchangeServer)",
[...]
> This works fine.
[...]
> I want to exclude the objectlass=msexchExchangeServerPolicy. I am trying
> the following with no success:
[...]
> filter =>
> "(objectclass=msexchExchangeServer)(!objectclass=msexchExchangeServerPol
> icy)",
>
> filter =>
> "(|(objectclass=msexchExchangeServer)(!objectclass=msexchExchangeServerP
> olicy))",
The last filter seems close, but you want AND instead of OR, and NOT
requires parens around the term being inverted.
(&(objectclass=msexchExchangeServer)(!(objectclass=msexchExchangeServerPolic
y)))
Cheers,
Chris
|