More tests for LdapPlugin.

Reworked LdapDetails for chaining.
WIP: Cache test.

LdapDetails chaining.

Test for group memberships and custom group search base.

Removed unused import.