# Unit ldapsend

Description | uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables

## Description

LDAP client

Used RFC: RFC-2251, RFC-2254, RFC-2829, RFC-2830

## uses

- SysUtils
- Classes
- blcksock
- synautil
- asn1util
- synacode

## Overview

### Classes, Interfaces, Objects and Records

Name | Description
--- | ---
Class `TLDAPAttribute` | LDAP attribute with list of their values
Class `TLDAPAttributeList` | List of TLDAPAttribute
Class `TLDAPResult` | LDAP result object
Class `TLDAPResultList` | List of LDAP result objects
Class `TLDAPSend` | Implementation of LDAP client

### Functions and Procedures

`function LDAPResultDump(const Value: TLDAPResultList): AnsiString;`

### Types

`TLDAPModifyOp = (...);`
`TLDAPSearchScope = (...);`
`TLDAPSearchAliases = (...);`

### Constants

`cLDAPProtocol = '389';`
`LDAP_ASN1_BIND_REQUEST = $60;`
`LDAP_ASN1_BIND_RESPONSE = $61;`
`LDAP_ASN1_UNBIND_REQUEST = $42;`
`LDAP_ASN1_SEARCH_REQUEST = $63;`
`LDAP_ASN1_SEARCH_ENTRY = $64;`
`LDAP_ASN1_SEARCH_DONE = $65;`
`LDAP_ASN1_SEARCH_REFERENCE = $73;`
`LDAP_ASN1_MODIFY_REQUEST = $66;`
`LDAP_ASN1_MODIFY_RESPONSE = $67;`
`LDAP_ASN1_ADD_REQUEST = $68;`
`LDAP_ASN1_ADD_RESPONSE = $69;`
`LDAP_ASN1_DEL_REQUEST = $4A;`
`LDAP_ASN1_DEL_RESPONSE = $6B;`
`LDAP_ASN1_MODIFYDN_REQUEST = $6C;`
`LDAP_ASN1_MODIFYDN_RESPONSE = $6D;`
`LDAP_ASN1_COMPARE_REQUEST = $6E;`
`LDAP_ASN1_COMPARE_RESPONSE = $6F;`
`LDAP_ASN1_ABANDON_REQUEST = $70;`
`LDAP_ASN1_EXT_REQUEST = $77;`
`LDAP_ASN1_EXT_RESPONSE = $78;`

## Description

### Functions and Procedures

`function LDAPResultDump(const Value: TLDAPResultList): AnsiString;`

Dump result of LDAP SEARCH into human readable form. Good for debugging.

### Types

`TLDAPModifyOp = (...);`

Define possible operations for LDAP MODIFY operations.

- MO_Add:
- MO_Delete:
- MO_Replace:

`TLDAPSearchScope = (...);`

Specify possible values for search scope.

- SS_BaseObject:
- SS_SingleLevel:
- SS_WholeSubtree:

`TLDAPSearchAliases = (...);`

Specify possible values about alias dereferencing.

- SA_NeverDeref:
- SA_InSearching:
- SA_FindingBaseObj:
- SA_Always:

### Constants

`cLDAPProtocol = '389';`

`LDAP_ASN1_BIND_REQUEST = $60;`

`LDAP_ASN1_BIND_RESPONSE = $61;`

`LDAP_ASN1_UNBIND_REQUEST = $42;`

`LDAP_ASN1_SEARCH_REQUEST = $63;`

`LDAP_ASN1_SEARCH_ENTRY = $64;`

`LDAP_ASN1_SEARCH_DONE = $65;`

`LDAP_ASN1_SEARCH_REFERENCE = $73;`

`LDAP_ASN1_MODIFY_REQUEST = $66;`

`LDAP_ASN1_MODIFY_RESPONSE = $67;`

`LDAP_ASN1_ADD_REQUEST = $68;`

`LDAP_ASN1_ADD_RESPONSE = $69;`

`LDAP_ASN1_DEL_REQUEST = $4A;`

`LDAP_ASN1_DEL_RESPONSE = $6B;`

`LDAP_ASN1_MODIFYDN_REQUEST = $6C;`

`LDAP_ASN1_MODIFYDN_RESPONSE = $6D;`

`LDAP_ASN1_COMPARE_REQUEST = $6E;`

`LDAP_ASN1_COMPARE_RESPONSE = $6F;`

`LDAP_ASN1_ABANDON_REQUEST = $70;`

`LDAP_ASN1_EXT_REQUEST = $77;`

`LDAP_ASN1_EXT_RESPONSE = $78;`

Generated by PasDoc 0.9.0 on 2012-04-23 21:38:51