I intend to target a specific OU in my domain, I do not want to update or change any of the other OU’s in my domain.
How can I define my host or LDAP connection string so that it targets a specific OU.
The domain is example.com and the OU is on the root and it is named Sales.
This article is helpful for understanding the pieces that make up the LDAP connection string.
However, if you intend to target a specific domain, then you want to scope the connection string so that it includes the path to the OU that you are targeting.
So for example if you want to target the OU called Sales in the domain example.com, then your string would look like this:
If you want to target the OU called North that exists inside of the Sales OU in the domain example.com, then your string would look like this:
This document provides additional options for defining the LDAP connection string, including using the fully qualified DNS server name:-