README.TXT

Active Directory Service Interfaces 1.0, Sample C++ Query Application 

Overview:

This simple command line based program shows how to use Active Directory to
query and display objects of a Directory Service using IDirectorySearch
interface. Its usage is as follows:


For Example: adsqry /b "LDAP://ntdsdc0/O=Internet/DC=COM/DC=MICROSOFT/DC=NTDEV"
/f "objectClass=Group" /a "ADsPath, name, description" /u "CN=NTDS,CN=Users,DC
=NTDEV,DC=MICROSOFT,DC=COM,O=INTERNET" ""

For Example: adsqry /b "'LDAP://ntdsdc0/O=Internet/DC=COM/DC=MICROSOFT/DC=NTDEV'
" /f "objectClass='Group'" /a "ADsPath, name, description" /d sql /u "CN=NTDS,
CN=Users,DC=NTDEV,DC=MICROSOFT,DC=COM,O=INTERNET" ""

will dump the ADsPathName, Name and description attributes for all
the group objects found in the directory starting the query at the object
LDAP://O=Internet/DC=COM/DC=MICROSOFT/DC=NTDEV authenticating with user name
CN=NTDS,CN=Users,DC=NTDEV,DC=MICROSOFT,DC=COM,O=INTERNET and NULL password.

The second example does the same thing but specifies the search filter in the
SQL syntax.

List of files

MAIN.CXXmain program
UTIL.HXXhelper functions
MAIN.HXXmain include file
MAKEFILEmakefile