Add module for ldap, and several changes.