Home > PHP > Function > LDAP > ldap_get_dn()

ldap_get_dn()

ldap_get_dn - Get the DN of a result entry

Syntax

string ldap_get_dn (resource $link_identifier, resource $result_entry_identifier)

Arguments

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

Description

Finds out the DN of an entry in the result.

Version

PHP 4, 5

Return value

Returns the DN of the result entry and FALSE on error.