Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LDAP queries
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Titre:
Divers
Thread ID:
01251477
Message ID:
01251511
Vues:
13
This message has been marked as the solution to the initial question of the thread.
Rollin,
Here's the query that does what you are looking for (you will need to change the domain info). There's some free downloads on the internet that will let you browse the AD database but I don't have access to the one I normally use.
SELECT * 
   FROM OPENROWSET('ADsDSOObject','Active Directory Provider',
      'SELECT displayName, sAMAccountName, mail
         FROM ''LDAP://dc=buediamond,dc=com'' WHERE objectCategory = ''User''')
Kurt

>I need to do LDAP queries against Active Directory to pull user login names and email addresses. I have not done LDAP queries before. How would I do this??
>
>I have tried to find info on LDAP query format and syntax, but have not found a good source.
>
>All help is greatly appreciated.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform