LDAP Retrieval of Directory Service Information


A DSE (Directory Server-Specific Entry) contains information about an LDAP server's configuration and capabilities and can be queried using a base-level search with the LDAP component.

To perform a DSE Search, set the search filter to objectClass=*, the search scope to ssBaseObject, 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 can retrieve the returned attributes from the Attr arrays:

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

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