Can anyone help with an LDAP filter to search and find all computers associated

with a particular OU in active directory. In other words all computers found in that OU.

I think I am doing something wrong cos I am not getting any entries with my filters.



.....and yes.... connection to the ldap server was successful and I can view my active directory tree

from the ldap viewer in the K1000.

I know that the OU name will be part of the "distinguished name"in the computer's attributes..... so I

want to create an ldap label to find all entries of computers that have that OU's name in its Attrribute

Thanks guys.

0 Comments   [ + ] Show Comments


Please log in to comment


Here is the Advanced Search that I have for one of my LDAP Labels:
(&(name=KBOX_COMPUTER_NAME)(distinguishedName=CN=KBOX_COMPUTER_NAME,OU=User Services,OU=Library and Information Services,OU=Departments,OU=GPO Exceptions,DC=FAS,DC=LCL))

Note that you need to recreate the entire OU structure in the search. KACE will replace KBOX_COMPUTER_NAME with the machine name when performing the search to see if it matches. You also need to have the Base DN set correctly. In my case that is DC=fas,DC=lcl.

Answered 10/28/2015 by: chucksteel
Red Belt

Please log in to comment
You do not need to filter based off distinguishedName if they are already segregated by OU.

Set your "Base DN" to the OU


Then your Search would simply be:

Answered 10/29/2015 by: jleitsch
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity