Home > PHP > Function > LDAP > ldap_bind()

ldap_bind()

ldap_bind - Bind to LDAP directory

Syntax

bool ldap_bind (resource $link_identifier, string $bind_rdn, string $bind_password)

Arguments

  • link_identifier - An LDAP link identifier, returned by ldap_connect().
  • bind_rdn
  • bind_password

Description

Binds to the LDAP directory with specified RDN and password.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.