# ldap_get_dn

(PHP 4, PHP 5, PHP 7, PHP 8)

ldap_get_dn — Get the DN of a result entry

### Descripción

ldap_get_dn(resource `$link_identifier`, resource `$result_entry_identifier`): string

Finds out the DN of an entry in the result.

### Parámetros

`link_identifier`

  An LDAP link identifier, returned by ldap_connect().

`result_entry_identifier`

### Valores devueltos

Returns the DN of the result entry and `false` on error.