Conexão LDAP - como consultar o diretório ativo e obter essas informações?

2

Estou seguindo este artigo abaixo:

Consultando dados do Active Directory do SQL Server

e para eu acertar, eu preciso das seguintes informações abaixo.

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

Considerando que tenho todas as permissões necessárias, como posso encontrar todas essas informações necessárias mencionadas acima?

Pode ser através do uso do PowerShell ou de qualquer outra forma.

As minhas formas preferidas seriam através de scripts.

    
por marcello miorelli 17.06.2017 / 21:48

0 respostas