Zend Framework 2 Basic LDAP Authentication Module.  Built in authentication form with callback to your own function to store ldap data.