Updated ldap connections to be carried via their own class. Extracted connection logic to its own class. Having trouble making this new format testable.