ldap_open

Description

The ldap_open() function establishes a connection to the LDAP server that is specified in ServerName. The connection is made through the port number in port (if specified).

Not supported in Endpoint Privilege Management for Linux (EPM-L).

Syntax

result = ldap_open (ServerName [,port]);

Arguments

ServerName Required. Character string that contains the host name of an LDAP server.
port Optional. Integer that contains a port number. The default port number is 389.

Return Values

LDAP_Connection If the open operation is successful, an LDAP server connection is returned in result.
result = ldap_open ("mycompany.ldap.server1", 200);

In this example, if the open operation is successful, result contains an LDAP server connection ID for mycompany.ldap.server1 on port 200. If the connection is not successful, result contains a null string.

For more information, see the following: