comphp / auth-ldap
Authentication Driver for CommonPHP which utilizes LDAP/Active Directory
Requires
- php: ^8.5
- comphp/auth: ^0.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95
- phpunit/phpunit: ^13.1
This package is auto-updated.
Last update: 2026-05-20 18:02:52 UTC
README
Authentication driver for CommonPHP that uses LDAP as an authentication source.
Requirements
- PHP
^8.5 comphp/auth:^0.3- LDAP support through the applicable PHP extension or LDAP integration library
Installation
Once this package is available through your Composer repositories, install it with:
composer require comphp/auth-ldap
Usage
<?php // TODO: Write usage
Driver Notes
This driver is intended for applications that authenticate users against an LDAP directory such as Active Directory or another LDAP-compatible identity source.
The driver should handle LDAP-specific connection, bind, search, and credential verification behavior while exposing the common auth driver contract used by CommonPHP.
Error Handling
LDAP connection failures, bind failures, lookup failures, invalid configuration, and authentication source errors should throw CommonPHP auth driver exceptions instead of returning ambiguous false values.
Documentation
License
MIT. See LICENSE.md.