LDAP4D Directory - Access Methods

This section describes the methods which provide get/set
access to
process variables used by LDAP4D Directory.
This approach is was taken due to the scope of variables in the 4D
Component
model and that it also allows more abstraction of the variables.

LDAPD_BindCompleted

Syntax:

result := LDAPD_BindCompleted (
{bBindCompleted:Boolean} )

Description:

Get/Set whether a bind was completed successfully in this
handler. If binds are required as set by LDAPD_RequireBind,
it
will
check
the username and password sent in bind attempts.
against those set with LDAPD_BindArraysSet.

Warning:

Note:

Params:

In/Out

Parameter

Type

Example or note

->

bindCompleted

Boolean

Indicate whether successful bind was completed in the
handler.

optional

<-

bindCompleted

Boolean

Indicates whether successful bind was completed in the
handler.

Example:

$flag := LDAP_BindCompleted

LDAPD_HandlerCount

Syntax:

result := LDAP_HandlerCount ( {numhandlers:LI} )

Description:

Get/Set number of handlers used by directory.

Warning:

The number of handlers should be set before starting the
directory. If not called, the default value is 5.

Note:

Params:

In/Out

Parameter

Type

Example or note

->

numHandlers

Longint

Number of handler processes to be used.

optional

<-

result

Longint

Number of handler processes in operation

Example:

$iNumHandlers :=LDAP_HandlerCount

LDAPD_iError

Syntax:

result:= LDAPD_iError

Description:

Returns the current value of errors created by calls to LDAP4D
Directory methods.

Warning:

none

Note:

Params:

In/Out

Parameter

Type

Example or note

<-

result

Longint

Current value of internal errors.

Generally, 0 = noErr.

Example:

$err := LDAP_iError

LDAPD_NumAttributesRequested

Syntax:

iResult:= LDAPD_NumAttributesRequested

Description:

Number of attributes requested by a search.

Warning:

Only valid immediately after search request is successfully
parsed.

Note:

Params:

In/Out

Parameter

Type

Description

Example or note

None

<-

result

Longint

Count of responses returned from a search.

Example:

$iNumbAttributes := LDAPD_NumAttributesRequested

LDAPD_NumOperators

Syntax:

result := LDAPD_NumOperators

Description:

The number of operators parsed out of LDAP filter in a search
request. This is used to build the search in 4D that responds to LDAP
search requests.