LDAP Filter for find all computer on a OU

Hi Guy's,
I have a problem here. I just create a LDAP filter for list all computer in the OU IT and when I run this on LDAP Browser for test all work fine, then I save it and all goes wrong.
in my test I have this:
Search Base DN:
OU=IT, OU=Computers, OU=CH, DC=qxlricardo,DC=internal
Search Filter:
then I save it and now I have all computers and servers there.
Any Idea how can I fix it???
Best regards,

0 Comments   [ + ] Show comments

Answers (2)

Posted by: jkatkace 14 years ago
Purple Belt
The way that LDAP filters work is that every time a machine checks in, the KBOX runs every search filter, looks for a positive hit when running the search, and if it gets one, the machine gets that label. The way you've written your search, results always come back, so all machines will be put into the label because every time it runs, we get a result back. You want to narrow the search so that ONLY if the machine checking in has that CN set, you get a hit. Fortunately, that should be easy to do.

If you take a look at the right-side help bar when creating the filter, there's a set of macros you can use to parameterize the search. That's the important part on KBOX: you want to put one of those macros in your search string. Here they are:



So, you want toYou might make it be something like


Here's the definitive reference on LDAP search strings. Remember that if we get a hit for a search when a machine checks in, we give it that label. Parameterizing the search with one of these KBOX macros is important.

Posted by: jkatkace 14 years ago
Purple Belt
Darn it, hit send too soon.

You should make your search string look something like:

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ