Class TLDAPSend

DescriptionHierarchyFieldsMethodsProperties

Unit

ldapsend

Declaration

type TLDAPSend = class(TSynaClient)

Description

Implementation of LDAP client

(version 2 and 3)

Note: Are you missing properties for setting Username and Password? Look to parent TSynaClient object!

Are you missing properties for specify server address and port? Look to parent TSynaClient too!

Hierarchy

TLDAPSend > TSynaClient > TObject

Methods

Overview

Public constructor Create;
Public destructor Destroy; override;
Public function Add(obj: string; const Value: TLDAPAttributeList): Boolean;
Public function Bind: Boolean;
Public function BindSasl: Boolean;
Public function Compare(obj, AttributeValue: string): Boolean;
Public function Delete(obj: string): Boolean;
Public function Extended(const Name, Value: string): Boolean;
Public function Login: Boolean;
Public function Logout: Boolean;
Public function Modify(obj: string; Op: TLDAPModifyOp; const Value: TLDAPAttribute): Boolean;
Public function ModifyDN(obj, newRDN, newSuperior: string; DeleteoldRDN: Boolean): Boolean;
Public function Search(obj: string; TypesOnly: Boolean; Filter: string; const Attributes: TStrings): Boolean;
Public function StartTLS: Boolean;

Description

Public function Add(obj: string; const Value: TLDAPAttributeList): Boolean;

Add list of attributes to specified object.

Public function Bind: Boolean;

Try to bind to LDAP server with UserName and Password. If this is empty strings, then it do annonymous Bind. When you not call Bind on LDAPv3, then is automaticly used anonymous mode.

This method using plaintext transport of password! It is not secure!

Public function BindSasl: Boolean;

Try to bind to LDAP server with UserName and Password. If this is empty strings, then it do annonymous Bind. When you not call Bind on LDAPv3, then is automaticly used anonymous mode.

This method using SASL with DIGEST-MD5 method for secure transfer of your password.

Public function Compare(obj, AttributeValue: string): Boolean;

Try to compare Attribute value with this LDAP object.

Public constructor Create;

 

Public function Delete(obj: string): Boolean;

Delete this LDAP object from server.

Public destructor Destroy; override;

 

Public function Extended(const Name, Value: string): Boolean;

Call any LDAPv3 extended command.

Public function Login: Boolean;

Try to connect to LDAP server and start secure channel, when it is required.

Public function Logout: Boolean;

Close connection to LDAP server.

Public function Modify(obj: string; Op: TLDAPModifyOp; const Value: TLDAPAttribute): Boolean;

Modify content of LDAP attribute on this object.

Public function ModifyDN(obj, newRDN, newSuperior: string; DeleteoldRDN: Boolean): Boolean;

Modify object name of this LDAP object.

Public function Search(obj: string; TypesOnly: Boolean; Filter: string; const Attributes: TStrings): Boolean;

Search LDAP base for LDAP objects by Filter.

Public function StartTLS: Boolean;

Try to start SSL/TLS connection to LDAP server.

Properties

Overview

Published property AutoTLS: Boolean;
Published property ExtName: string;
Published property ExtValue: string;
Published property FullResult: string;
Published property FullSSL: Boolean;
Published property Referals: TStringList;
Published property ResultCode: Integer;
Published property ResultString: string;
Published property SearchAliases: TLDAPSearchAliases;
Published property SearchResult: TLDAPResultList;
Published property SearchScope: TLDAPSearchScope;
Published property SearchSizeLimit: integer;
Published property SearchTimeLimit: integer;
Published property Seq: integer;
Published property Sock: TTCPBlockSocket;
Published property Version: integer;

Description

Published property AutoTLS: Boolean;

If True, then try to start TSL mode in Login procedure.

Published property ExtName: string;

When you call Extended operation, then here is result Name returned by server.

Published property ExtValue: string;

When you call Extended operation, then here is result Value returned by server.

Published property FullResult: string;

Binary string with full last response of LDAP server. This string is encoded by ASN.1 BER encoding! You need this only for debugging.

Published property FullSSL: Boolean;

If True, then use connection to LDAP server through SSL/TLS tunnel.

Published property Referals: TStringList;

On each LDAP operation can LDAP server return some referals URLs. Here is their list.

Published property ResultCode: Integer;

Result code of last LDAP operation.

Published property ResultString: string;

Human readable description of result code of last LDAP operation.

Published property SearchAliases: TLDAPSearchAliases;

Specify how to handle aliases in search command.

Published property SearchResult: TLDAPResultList;

Here is result of search command.

Published property SearchScope: TLDAPSearchScope;

Specify what search scope is used in search command.

Published property SearchSizeLimit: integer;

Specify result size limit in search command. Value 0 means without limit.

Published property SearchTimeLimit: integer;

Specify search time limit in search command (seconds). Value 0 means without limit.

Published property Seq: integer;

Sequence number of last LDAp command. It is incremented by any LDAP command.

Published property Sock: TTCPBlockSocket;

TCP socket used by all LDAP operations.

Published property Version: integer;

Specify version of used LDAP protocol. Default value is 3.


Generated by PasDoc 0.8.8.2 on 2005-01-19 20:01:18