ldap_open() initializes an LDAP session and additionally opens a connection to an LDAP server before it returns to the caller. Unlike ldap_open(), ldap_init() does not open a connection to the LDAP server until an operation
is performed that requires it, for example, a search request.
The ldap_open() function is deprecated and should no longer be used. Call ldap_init() instead.
Either function takes a space-separated list of hostnames or strings in the dot-notation form that represents the IP addresses of hosts running LDAP servers to to which it can connect. Each of thse hostnames may include a port number, which is separated from the hostname with a colon (":")
character. If the port number is specified as part of the hostname, then this takes precedence over the port parameter. The functions will try these hosts in the order listed, and return the first successful connection.
|