I am setting up or kbox and i want to have labels based on what OU a device is in. I have been successful in setting this up other then one OU. The issue is that inside of this OU is another OU. The LDAP filter is including stuff from the OU inside of the OU i want results from.

Base DN is the OU i want the results from.

Advanced Search is : (CN=KBOX_COMPUTER_NAME)

Is their a way to exclude results from the Sub OU?

1 Comment   [ - ] Hide Comment


  • I am having the same problem right now. Did you get this resolved?
Please log in to comment

Answer this question or Comment on this question for clarity


Try this one:

(&(name=KBOX_COMPUTER_NAME)(memberOf=CN=Sub OU,OU=PRIMARY OU,DC=yourdomain,DC=com))
Answered 09/22/2016 by: jayrobinson
Yellow Belt

  • Weirdly this shows only computers that are in that OU that are turned off.
Please log in to comment