CPM: Can Windows Auto-Detection be set up to utilize an exclusive OU filter (!(OU=Test)?

CPM: Can Windows Auto-Detection be set up to utilize an exclusive OU filter (!(OU=Test)?

99
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 12:58 PM


Question


Can Windows Auto-Detection be set up to utilize an exclusive OU filter such as (!(OU=Test)?

Environment


11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)

Answer


Yes



Suppose you have something like:

+----Systems

+----- Citrix Metaframe 4 Servers

+-------Test



The auto-detection LDAP filter works in the following way:

The auto-detection gets the base context OU and does a recursive search for all the OUs that sit under the base OU while using the ADContainerQueryFilter to filter out unwanted OUs.
The result of step one is a list of OUs.
For each one of the OUs that were retrieved in step one, the auto-detection will retrieve all the machines that sit in that OU and if ADIsQueryFilterRecursive is set to Yes it will retrieve all the machines that sit in the OUs under each OU that was retrieved from the LDAP.
Accordingly:

When the Auto-Detection process queries containers with an ADBaseContext of OU=Citrix Metaframe 4 Servers,DC=<domain component>,DC=<domain component> and an ADContainerQueryFilter of (!(OU=Test), it finds two OUs (Citrix Metaframe 4 Servers and Test), and filters out the test OU.
The result of step one is the Citrix Metaframe 4 Servers OU.
Now, it performs the computers query on the Citrix Metaframe 4 Servers OU recursively, and therefore returns members of OU test as well.
In order to exclude OUs below the ADBaseContext, you must set ADIsQueryFilterRecursive to No.  Then each OU found in step 1 of the process above will be queried without using recursion.  Since the Test OU was filtered out, its members will not be queried.


Additional Information


Details

Q:

Can Windows Auto-Detection be set up to utilize an exclusive OU filter such as (!(OU=Test)?

 

A:

Yes

 

Suppose you have something like:

+----Systems

+----- Citrix Metaframe 4 Servers

+-------Test

 

The auto-detection LDAP filter works in the following way:

  1. The auto-detection gets the base context OU and does a recursive search for all the OUs that sit under the base OU while using the ADContainerQueryFilter to filter out unwanted OUs.
  2. The result of step one is a list of OUs.
  3. For each one of the OUs that were retrieved in step one, the auto-detection will retrieve all the machines that sit in that OU and if ADIsQueryFilterRecursive is set to Yes it will retrieve all the machines that sit in the OUs under each OU that was retrieved from the LDAP.

Accordingly:

  1. When the Auto-Detection process queries containers with an ADBaseContext of OU=Citrix Metaframe 4 Servers,DC=<domain component>,DC=<domain component> and an ADContainerQueryFilter of (!(OU=Test), it finds two OUs (Citrix Metaframe 4 Servers and Test), and filters out the test OU.
  2. The result of step one is the Citrix Metaframe 4 Servers OU.
  3. Now, it performs the computers query on the Citrix Metaframe 4 Servers OU recursively, and therefore returns members of OU test as well.

In order to exclude OUs below the ADBaseContext, you must set ADIsQueryFilterRecursive to No.  Then each OU found in step 1 of the process above will be queried without using recursion.  Since the Test OU was filtered out, its members will not be queried.

 

Note: At the time of this writing there is an active bug with the ADDefaultIsQueryFilterRecursive. See Solution 3656 (https://cyberark.my.salesforce.com/50150000000cc7g) for more details.




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001VzRCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail