[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: Re: [OT] LDAP query syntax
I'm trying to filter objects in active directory based on which OU
they're in by referencing the "distinguishedName" property.
I can construct a query that successfully returns users which ARE in a
given OU, as follows:
(distinguishedName=*OU=Testing,DC=domain,DC=com)
Using the wildcard, because the distinguishedName property includes the
object name as well. - running a query using this filter correctly
returns all objects within the "Testing" OU in the AD Domain
"domain.com"
What I now want to do is put a logical NOT operator on the condition, so
that the query returns all objects that are *not* in a given OU... just
amending the filter to:
(!(distinguishedName=*OU=Testing2,DC=domain,DC=com)
Does not appear to work, - my query returns no objects when I run
this...
Any ideas?
Paul G.
-----Original Message-----
From: ukha_d@xxxxxxx [mailto:ukha_d@xxxxxxx] On Behalf
Of Paul Bendall
Sent: 16 February 2008 12:22
To: UKHA Group
Subject: [ukha_d] Re: [OT] LDAP query syntax
What you trying to do?
Paul
--- In ukha_d@xxxxxxx, "Paul Gordon" <paul@...> wrote:
>
> Any LDAP "experts" here who might be able to answer a
question for
me
> regarding a problem I'm having trying to construct a particular
query
> condition?
>
>
>
> TIA
>
>
>
> Paul G.
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
UKHA_D Main Index |
UKHA_D Thread Index |
UKHA_D Home |
Archives Home
|