ldap_get_dn

Get the DN of a result entry (PHP 3, PHP 4, PHP 5)
string ldap_get_dn ( resource link_identifier, resource result_entry_identifier )

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

ldap_get_dn() function is used to find out the DN of an entry in the result.