matthew chapman's ldap code, to date. plus docs!