ldap_connect

ldap_connect

(PHP 4, PHP 5, PHP 7)

ldap_connectConnect to an LDAP server

Description

resource ldap_connect ([ string $host = NULL [, int $port = 389 ]] )

Creates an LDAP link identifier and checks whether the given host and port are plausible.

Note: This function does not open a connection. It checks whether the given parameters are plausible and can be used to open a connection as soon as one is needed.