ldap_connect

(PHP3 , PHP4 )

ldap_connect -- Connect to an LDAP server

Description

int ldap_connect ([string hostname [, int port]])

Returns a positive LDAP link identifier on success, or false on error.

ldap_connect() establishes a connection to a LDAP server on a specified hostname and port. Both the arguments are optional. If no arguments are specified then the link identifier of the already opened link will be returned. If only hostname is specified, then the port defaults to 389.