develooper Front page | perl.ldap | Postings from October 2008

Re: Bad filter in Active Directory: (!company=mycompany)

Thread Previous | Thread Next
From:
Graham Barr
Date:
October 24, 2008 10:40
Subject:
Re: Bad filter in Active Directory: (!company=mycompany)
On Oct 23, 2008, at 9:49 AM, A. Farber wrote:
>
> If I remove "!" it works ok. If I try that filter with dsquery:
>
> dsquery * domainroot -filter "(&(objectCategory=Person)
> (objectClass=User)(!company=mycompany))
>
> - then it works too. Has anybody seen the same problem?

dsquery is being lenient here. For the filter to be cirrect the test  
you are trying to ! must also be inside ()'s

   "(&(objectCategory=Person)(objectClass=User)(!(company=mycompany)))"

Graham.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About