PEAR::DB_ldap class provides a DB compliant interface to LDAP v2 and v3 database. WWW: https://pear.php.net/package/DB_ldap2