Platform SDK: Active Directory, ADSI, and Directory Services

Sample Code Output

Following is the output from the previous sample code. This result set lists all the users in the coho.salmon.Microsoft.com tree. The LDAP dialect query text used to obtain these results is:

"<LDAP://coho.salmon.Microsoft.com/cn=users,dc=coho,dc=salmon,dc=Microsoft,dc=com>; (&(objectCategory=person)(objectClass=user); name, adspath; subtree"
 
Guest
LDAP://coho.salmon.Microsoft.com/CN=Guest,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
MTS_T-MACHINEMACHINE
LDAP://coho.salmon.Microsoft.com/CN=MTS_T-MACHINE,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
IWAM_T-MACHINEMACHINE
LDAP://coho.salmon.Microsoft.com/CN=IWAM_T-MACHINE,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
SQLExecutiveCmdExec
LDAP://coho.salmon.Microsoft.com/CN=SQLExecutiveCmdExec,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
SQLAgentCmdExec
LDAP://coho.salmon.Microsoft.com/CN=SQLAgentCmdExec,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
IUSR_T-MACHINE
LDAP://coho.salmon.Microsoft.com/CN=IUSR_T-MACHINE,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Administrator
LDAP://coho.salmon.Microsoft.com/CN=Administrator,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
James Smith
LDAP://coho.salmon.Microsoft.com/CN=James Smith,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Neil Smith
LDAP://coho.salmon.Microsoft.com/CN=Neil Smith,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Suzan Fine
LDAP://coho.salmon.Microsoft.com/CN=Suzan Fine,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Jenny Sax
LDAP://coho.salmon.Microsoft.com/CN=Jenny Sax,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Amy Egert
LDAP://coho.salmon.Microsoft.com/CN=Amy Egert,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Suki White
LDAP://coho.salmon.Microsoft.com/CN=Suki White,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Scott Cooper
LDAP://coho.salmon.Microsoft.com/CN=Scott Cooper,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Meng Phua
LDAP://coho.salmon.Microsoft.com/CN=Meng Phua,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Lani Ota Carpenter
LDAP://coho.salmon.Microsoft.com/CN=Lani Ota Carpenter,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Tristan Randall
LDAP://coho.salmon.Microsoft.com/CN=Tristan Randall,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com
Tom Johnston
LDAP://coho.salmon.Microsoft.com/CN=Tom Johnston,CN=Users,DC=coho,DC=salmon,DC=Microsoft,DC=com