How do I perform a DSE (Directory Specific Entries) search with the LDAP component?

Date Entered: 6/5/2002    Last Updated: 6/5/2002

To perform a DSE Search, set the search filter to Objectclass=*, the search scope to base object, and perform your search. This will return a list of attributes specific to your server. For example:

LDAP1.DN = ""
LDAP1.SearchScope = ssBaseObject
LDAP1.Search "objectClass=*"

After the search is complete (SearchComplete event has fired), you'll be able to retrieve the attributes in the Attr arrays.

For i = 0 To LDAP.AttrCount - 1
 debug.print "ATTR: " + ldap.AttrType(i) + " = "
 debug.print ldap.AttrValue(i) + vbcrlf

We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.