Adldap2 is a PHP package that provides LDAP authentication and directory management tools. The project has just released version 10.2.2, which appears to reset the authentication status of a connection when it is established or closed, as well as adding support for custom password encoding.