ldap_open

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).

result = ldap_open (ServerName [,port]);
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.
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, please see the following: