# ldap_exop_whoami

(PHP 7 >= 7.2.0, PHP 8)

ldap_exop_whoami — WHOAMI extended operation helper

### Descripción

ldap_exop_whoami(LDAP\Connection `$ldap`): string|false

Performs a WHOAMI extended operation and returns the data.

### Parámetros

`ldap`

  An LDAP\Connection instance, returned by ldap_connect().

### Valores devueltos

The data returned by the server, or `false` on error.

### Historial de cambios

Versión | Descripción
--- | ---
8.1.0 | The `ldap` parameter expects an LDAP\Connection instance now; previously, a valid `ldap link` recurso was expected.

### Ver también

- ldap_exop() - Performs an extended operation