Directory Services

Sample Code Output

The following is output from the previous code example. This result set lists all users in the coho.salmon.Fabrikam.com tree. The LDAP dialect query text used to obtain these results is as follows.

"<LDAP://coho.salmon.Fabrikam.com/cn=users,dc=coho,dc=salmon,dc=Fabrikam,dc=com>; (&(objectCategory=person)(objectClass=user); name, adspath; subtree"
User Output
Guest
LDAP://coho.salmon.Fabrikam.com/CN=Guest,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
MTS_T-MACHINEMACHINE
LDAP://coho.salmon.Fabrikam.com/CN=MTS_T-MACHINE,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
IWAM_T-MACHINEMACHINE
LDAP://coho.salmon.Fabrikam.com/CN=IWAM_T-MACHINE,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
SQLExecutiveCmdExec
LDAP://coho.salmon.Fabrikam.com/CN=SQLExecutiveCmdExec,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
SQLAgentCmdExec
LDAP://coho.salmon.Fabrikam.com/CN=SQLAgentCmdExec,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
IUSR_T-MACHINE
LDAP://coho.salmon.Fabrikam.com/CN=IUSR_T-MACHINE,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Administrator
LDAP://coho.salmon.Fabrikam.com/CN=Administrator,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Jeff Smith
LDAP://coho.salmon.Fabrikam.com/CN=Jeff Smith,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Denise Smith
LDAP://coho.salmon.Fabrikam.com/CN=Denise Smith,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Kathie Flood
LDAP://coho.salmon.Fabrikam.com/CN=Kathie Flood,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Margie Shoop
LDAP://coho.salmon.Fabrikam.com/CN=Margie Shoop,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Denise Smith
LDAP://coho.salmon.Fabrikam.com/CN=Denise Smith,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Wendy Wheeler
LDAP://coho.salmon.Fabrikam.com/CN=Wendy Wheeler,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Scott Cooper
LDAP://coho.salmon.Fabrikam.com/CN=Scott Cooper,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Carol Philips
LDAP://coho.salmon.Fabrikam.com/CN=Carol Philips,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Alice Ciccu
LDAP://coho.salmon.Fabrikam.com/CN=Alice Ciccu,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Cynthia Randall
LDAP://coho.salmon.Fabrikam.com/CN=Cynthia Randall,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com
Tamara Johnston
LDAP://coho.salmon.Fabrikam.com/CN=Tamara Johnston,CN=Users,DC=coho,DC=salmon,DC=Fabrikam,DC=com