How do I determine the LDAP connection string to use?

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.

1 Like

This article is helpful for understanding the pieces that make up the LDAP connection string.

https://findanyanswer.com/what-is-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:

LDAP://10.4.67.9/OU=Sales,DC=example,DC=com

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:
LDAP://10.4.67.9/OU=North,OU=Sales,DC=example,DC=com

This document provides additional options for defining the LDAP connection string, including using the fully qualified DNS server name:-

https://connecttoad.com/pages/docs-how-to-setup-the-active-directory-connection

1 Like

This is Helpful, thanks!