I am following this article below:
Querying Active Directory Data from SQL Server
and for me to get it right I need the following information below.
Querying Active Directory Once the linked server is created we can now setup our query to return the information we need.
First, you'll need to ask your Network/Systems Administrator for your LDAP info then we can continue to the query.
Here is how the LDAP connection is broken down:
For our example it looks like this:
LDAP://DOMAIN.com/OU=Players,
DC=DOMAIN,DC=com LDAP://Domain.com - is the name of a domain controller /OU=Players - this is the Organization Unit, in our case (Players) ,
DC - this is the Domain Name broken up by domain and extension name
So....LDAP://DomainControllerName.com/OU=OrganizationalUnit,DC=DOMAIN,DC=NAME
Considering that I have all the required permissions, how would I find all these required information stated above?
It could be through using powershell or any other way.
My preferred ways would be through scripting though.