SAS 9.1.3 Integration Technologies » Developer's Guide


LDAP CALL Routine Interface
LDAPS_ADD
LDAPS_ATTRNAME
LDAPS_ATTRVALUE
LDAPS_CLOSE
LDAPS_DELETE
LDAPS_ENTRY
LDAPS_FREE
LDAPS_MODIFY
LDAPS_OPEN
LDAPS_SETOPTIONS
LDAPS_SEARCH
Coding Examples
Adding a Directory Entry to an LDAP Server
Searching an LDAP Directory
Directory Services

LDAPS_CLOSE

Closes a connection to an LDAP server.

Syntax

CALL LDAPS_CLOSE(lHandle, rc);

lHandle
Numeric, input.
Specifies the connection handle returned by the LDAPS_OPEN CALL routine.

rc
Numeric, output.
Receives a return code that specifies success or failure.

Details

When invoked, the LDAPS_CLOSE CALL routine closes the connection to the LDAP server. All resources associated with the connection are freed; therefore, any valid search handles associated with this connection will no longer be valid.

Example

The following example closes an open connection to an LDAP server.

call ldaps_close(lHandle, rc);