Reworked LdapDetails for chaining.
WIP: Cache test.