# LDAP API reference

> API reference of the LDAP extension (yii2\extensions\ldap), generated from its PHPDoc.

[API reference](/docs/api/index.md) › LDAP

Classes, interfaces, traits and enums of `yii2\extensions\ldap`, generated from the PHPDoc of [yii2-extensions/ldap](https://github.com/yii2-extensions/ldap) at `main`. Machine-readable catalog: [ldap.json](https://yii2-framework.github.io/docs/reference/ldap.json).

## Namespaces

| Namespace | Types |
| --- | --- |
| [`yii2\extensions\ldap\exception`](/docs/extensions/ldap/reference/exception/index.md) | 1 |

## Classes

| Class | Summary |
| --- | --- |
| [`Directory`](/docs/extensions/ldap/reference/directory/index.md) | Registers named service-account connections for native LdapRecord models and explicit membership changes. |
| [`DirectoryConnection`](/docs/extensions/ldap/reference/directoryconnection/index.md) | Binds the exact supplied credentials on a LdapRecord transport without dispatching authentication events. |
| [`DirectoryUnavailableException`](/docs/extensions/ldap/reference/directoryunavailableexception/index.md) final | Signals an operational directory failure without exposing backend diagnostics or the submitted credentials. |
| [`PasswordVerifier`](/docs/extensions/ldap/reference/passwordverifier/index.md) | Verifies credentials for an existing application's directory identity without creating a Yii session. |
| [`ServiceConnection`](/docs/extensions/ldap/reference/serviceconnection/index.md) final | Opens a service-account connection only after requiring and establishing verified StartTLS. |
| [`ServiceQuery`](/docs/extensions/ldap/reference/servicequery/index.md) final | Rejects incomplete paged results so partial directory reads cannot look like a completed synchronization. |
| [`UserSynchronizer`](/docs/extensions/ldap/reference/usersynchronizer/index.md) final | Reads explicitly mapped LDAP user attributes in batches and passes them to application-owned persistence. |