LDAP Component |
The LDAP control is used to communicate with LDAP Directory Servers using the LDAP (Lightweight Directory Access) protocol. (NOTE: The following is a very short description. For more information, please consult the help files that come with the respective package.) |
The first step in using the control is specifying the ServerName, a DN (Distinguished Name) to bind as, and optionally a Password. Then, you can specify one or more actions for the server via the Action property. Server responses are normally received through the Result event. The only exception are search requests which result in one or more SearchResult events, followed by a final SearchComplete event.
Attributes are set and returned through attribute arrays such as AttrType and AttrValue. Other command arguments are specified through other properties. These are specified in detail in the Action property section.
Search filters are defined as strings in the SearchFilter property. The format must be a standard LDAP search string as specified in RFC 1558. Other search attributes are set in properties such as SearchScope, SearchTimeLimit, etc..
The control operates asynchronously. Server responses are retrieved only through events, and the Action property returns control immediately. This also means that you may send more than one request at a time, without waiting for previous requests to complete.
This control requires a Winsock 1.1 compliant TCP/IP stack. This means that the Winsock stack installed in the system must have a version of at least 1.1. In particular, Windows 95, 98, and NT machines with Winsock 2.0 are fully supported.
PROPERTIES |
EVENTS |