ldap_compare

PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8
ldap_compare - Compare value of attribute found in entry specified with DN
Manual
Code Examples

Example #1 Complete example of password check

PHP Version: