I have a current project designed in Vb.net 2008 that fetch users stored in Active Directory. Is there any way to query those lists of users from SQL server then Populate it into Datagridview in vb.net?
You can use query Active Directory directly using the OPENQUERY command like in this article:
SELECT * FROM OpenQuery (
ADSI,
'SELECT displayName, telephoneNumber, mail, mobile, facsimileTelephoneNumber
FROM ''LDAP://DOMAIN.com/OU=Players,DC=DOMAIN,DC=com''
WHERE objectClass = ''User''
') AS tblADSI
ORDORDER BY displayname
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.