ldap authentication module (partial commit)