Add support for LDAP URIs.

Fixes #46.